Skip to content

Commit 10bb4ad

Browse files
authored
Merge pull request #21 from Clonkk/devel_051
Devel 051
2 parents 5c67405 + 6333313 commit 10bb4ad

24 files changed

Lines changed: 1113 additions & 331 deletions

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
bin/
33
testfull
44
testleak
5-
teststacktrace
5+
indexingtests
6+
legacy
67

78
testresults/
89
nimcache/
910

1011
install/
1112
third_party/
1213

13-
sugar_example
14-
sugar_example.nim
15-
1614
memgraph.png

changelog.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Changelog for Nimjl. Date in format YYYY_MM_DD
22

3-
Release v0.5.0 - 2021_05_XX
3+
Release v0.5.1 - 2021_05_21
4+
===========================
5+
* Added some operators
6+
* Added support for iterators
7+
* Added toJlValue as an alias to toJlVal for consistency
8+
* Added indexing syntax
9+
* Added swapMemoryOrder for col major vs row major
10+
11+
Release v0.5.0 - 2021_05_19
412
===========================
513
* Add Nim interop syntax
614
* Started work on indexing Julia Arrays natively

nimjl.nim

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,27 @@
11
import nimjl/arrays
22
export arrays
33

4-
import nimjl/coretypes
5-
export coretypes
4+
import nimjl/cores
5+
export cores
66

7-
import nimjl/boxunbox
8-
export boxunbox
9-
10-
import nimjl/config
11-
# export config
12-
13-
import nimjl/converttypes
14-
export converttypes
15-
16-
import nimjl/dicttuples
17-
export dicttuples
7+
import nimjl/types
8+
export types
189

1910
import nimjl/gc
2011
export gc
2112

22-
import nimjl/modfuncs
23-
export modfuncs
13+
import nimjl/functions
14+
export functions
15+
16+
import nimjl/glucose
17+
export glucose
2418

25-
import nimjl/interop
26-
export interop
19+
import nimjl/sugar/converttypes
20+
export converttypes
2721

28-
# Uncomment for debugging
29-
# once:
30-
# echo "Nimjl> Using Julia install: ", JuliaPath
31-
# static:
32-
# echo "JuliaIncludesPath> ", JuliaIncludesPath
33-
# echo "JuliaLibPath> ", JuliaLibPath
34-
# echo "JuliaLibName> ", JuliaLibName
22+
import nimjl/sugar/valindexing
23+
export valindexing
3524

25+
import nimjl/config
26+
static:
27+
debugEcho "Nimjl> Using Julia install: ", JuliaPath

nimjl.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Nimjl
22
# Licensed and distributed under MIT license (license terms in the root directory or at http://opensource.org/licenses/MIT).
3-
version = "0.5.0"
3+
version = "0.5.1"
44
author = "Regis Caillaud"
55
description = "Nim Julia bridge"
66
license = "MIT"

nimjl/arrays.nim

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import ./coretypes
1+
import ./types
22
import ./private/jlcores
33
import ./private/jlarrays
4-
import ./modfuncs
4+
import ./functions
55

66
import arraymancer
77

88
import std/typetraits
99
import std/sequtils
1010

11-
1211
proc toJlArray*[T](x: JlValue): JlArray[T] {.inline.} =
1312
result = cast[ptr jl_array](x)
1413

@@ -61,5 +60,9 @@ proc allocJlArray*(dims: openArray[int], T: typedesc): JlValue =
6160
## Create a Julia Array managed by Julia GC
6261
result = cast[JlValue](julia_alloc_array(dims, T))
6362

64-
# import arrays/indexing
65-
# export indexing
63+
import ./arrays/interop
64+
export interop
65+
66+
import ./arrays/indexing
67+
export indexing
68+

0 commit comments

Comments
 (0)