00:01:08 | * | yglukhov quit (Remote host closed the connection) |
00:08:40 | * | PMunch quit (Quit: leaving) |
00:08:47 | * | PMunch joined #nim |
00:15:22 | * | Matthias247 quit (Read error: Connection reset by peer) |
00:25:52 | * | reactormonk quit (Quit: WeeChat 1.1.1) |
00:50:40 | * | brson quit (Ping timeout: 255 seconds) |
01:03:28 | * | gokr quit (Quit: Leaving.) |
01:03:28 | * | pregressive joined #nim |
01:07:27 | * | brson joined #nim |
01:21:02 | * | satbyy_ joined #nim |
01:26:08 | * | jaco60 quit (Ping timeout: 250 seconds) |
01:32:11 | * | Jesin quit (Quit: Leaving) |
01:32:49 | * | nande joined #nim |
01:39:49 | * | yglukhov joined #nim |
01:43:59 | * | yglukhov quit (Ping timeout: 240 seconds) |
01:55:29 | * | brson quit (Ping timeout: 240 seconds) |
01:56:29 | * | darkf quit (Ping timeout: 240 seconds) |
02:00:12 | * | darkf joined #nim |
02:22:48 | * | PMunch quit (Ping timeout: 276 seconds) |
02:57:56 | * | pregressive quit (Remote host closed the connection) |
02:59:58 | * | lokien_ quit (Quit: Connection closed for inactivity) |
03:04:37 | ldlework | Araq: did you ever reason what was going on with the VM? |
03:09:00 | * | brson joined #nim |
03:21:51 | * | pilne quit (Quit: Quitting!) |
04:03:49 | * | endragor joined #nim |
04:07:03 | * | darkf quit (Ping timeout: 240 seconds) |
04:10:49 | * | darkf joined #nim |
04:13:28 | * | endragor quit (Remote host closed the connection) |
04:30:38 | * | brson quit (Quit: leaving) |
04:36:56 | * | endragor joined #nim |
04:43:44 | * | lompik quit (Ping timeout: 250 seconds) |
05:21:57 | * | darkf quit (Ping timeout: 244 seconds) |
05:22:29 | * | darkf joined #nim |
05:26:28 | awsteele | this is a silly question, but what's the appropriate way to resolve "type mistach: got (BiggestInt) but expected 'int'"? |
05:26:49 | * | darkf_ joined #nim |
05:27:07 | * | darkf quit (Ping timeout: 244 seconds) |
05:31:32 | * | darkf_ is now known as darkf |
05:36:18 | * | wuehlmaus quit (Quit: Lost terminal) |
05:37:56 | gmpreussner | awsteele: sounds like you're passing a BiggestInt to an int. you could cast to int (With possible loss of data) |
05:38:54 | awsteele | i'm happy with loss of data (because it's json that will only contain values < 100), but i wasn't sure how nicely it would play with truncating |
05:40:34 | gmpreussner | just cast to int then |
05:40:40 | awsteele | thanks :) |
05:40:42 | gmpreussner | are you running on 32-bit? |
05:40:47 | awsteele | 64 |
05:40:57 | gmpreussner | Bigint = int then, so no loss of data |
05:41:42 | gmpreussner | but who knows, maybe BiggestInt changes to 128bit in the future :) |
05:41:57 | awsteele | gotta future proof! |
05:42:10 | gmpreussner | you know, when we have those 1000 core cpus that were promised to us years ago |
05:42:58 | gmpreussner | int64 ought to be enough for anyone though (TM) |
05:43:12 | awsteele | not enough for ipv6! |
05:43:25 | endragor | I wish Nim didn't have those platform-dependent types... they're annoying, and trying to avoid them is also annoying, because you have to cast to int whenever you use anything from stdlib |
05:56:05 | * | darkf_ joined #nim |
05:56:16 | * | darkf quit (Disconnected by services) |
05:56:18 | * | darkf_ is now known as darkf |
06:11:21 | * | Demon_Fox quit (Quit: Leaving) |
06:14:43 | * | nande quit (Remote host closed the connection) |
07:10:43 | * | Demon_Fox joined #nim |
07:46:37 | * | gokr joined #nim |
07:51:42 | * | toaoMgeorge quit (Ping timeout: 276 seconds) |
08:02:48 | * | yglukhov joined #nim |
08:08:29 | * | yglukhov quit (Ping timeout: 240 seconds) |
08:11:39 | * | yglukhov joined #nim |
08:23:06 | * | filcuc joined #nim |
08:45:49 | * | filcuc_ joined #nim |
08:48:35 | * | filcuc quit (Ping timeout: 240 seconds) |
09:04:13 | * | satbyy_ is now known as satbyy |
09:04:38 | * | satbyy left #nim ("Kumbhakarna mode . . . zzZZ") |
09:07:42 | * | wuehlmaus joined #nim |
09:13:31 | wuehlmaus | hi, all. can somebody confirm that the lazy nim package is broken right now? |
09:13:32 | * | Arrrr joined #nim |
09:14:20 | * | nsf joined #nim |
09:20:17 | * | reactormonk joined #nim |
09:24:28 | * | gokr quit (Quit: Leaving.) |
09:26:28 | Araq | wuehlmaus: no idea. |
09:29:16 | wuehlmaus | i don't get it running here on two systems, throwing different errors at me |
09:47:24 | * | lokien_ joined #nim |
10:11:34 | * | krux02 joined #nim |
10:11:44 | * | jaco60 joined #nim |
10:12:43 | krux02 | I am programming with macros, and at the moment the error I get is "SIGSEGV: Illegal storage access. (Attempt to read from nil?)" without any additional information. Why doesn't it show some information where it failed? |
10:15:55 | flyx | krux02: because it's a segfault, i.e. the compiler runs into a non-recoverable error. you can try and compile your code with ./koch temp c yourcode.nim |
10:18:31 | endragor | @krux02 that typically happens when your macro outputs invalid AST. put `echo treeRepr result` at the end of the macro code and try to determine what's wrong with it. Another typical reason is dereferencing nil in your macro code. |
10:27:28 | * | Trustable joined #nim |
10:32:55 | Araq | "typically happens"? |
10:33:07 | Araq | how about you create some bug reports? |
10:37:54 | * | toaoMgeorge joined #nim |
10:47:03 | * | Demon_Fox quit (Quit: Leaving) |
10:57:00 | endragor | Araq: oh so there are some checks in the compiler actually :) I previously got those SIGSEGVs quite often when implementing big macros. Here is one report: https://github.com/nim-lang/Nim/issues/3883 Will create more when I get back to implementing macros |
10:57:21 | Araq | there are LOTS and lots of checks -.- |
10:57:49 | Araq | and I did run thousands of lines of code at compile-time without any problems |
10:58:12 | Araq | except compilation speed, so I did things differently via staticExec |
11:56:07 | Araq | endragor: thanks. fixed. |
11:56:47 | * | darkf quit (Quit: Leaving) |
12:05:22 | * | gokr joined #nim |
12:37:11 | * | lokien joined #nim |
12:38:30 | * | mountaingoat quit (Quit: WeeChat 1.3) |
12:39:03 | * | toaoMgeorge quit (Ping timeout: 240 seconds) |
12:41:32 | * | gokr quit (Quit: Leaving.) |
12:47:17 | * | BitPuffin joined #nim |
13:07:04 | * | lokien quit (Remote host closed the connection) |
13:29:58 | * | lokien_ quit (Quit: Connection closed for inactivity) |
13:30:48 | * | boopsies joined #nim |
13:40:45 | * | yglukhov quit (Ping timeout: 276 seconds) |
13:51:20 | * | arnetheduck joined #nim |
13:58:44 | * | mat4 joined #nim |
14:08:11 | * | lokien_ joined #nim |
14:17:25 | * | lompik joined #nim |
14:19:15 | * | yglukhov joined #nim |
14:32:42 | * | yglukhov quit (Ping timeout: 244 seconds) |
15:00:51 | * | Johz joined #nim |
15:02:09 | Johz | Heya, I'm working on the unlikely/likely issue atm, and I just wanted to check that using templates isn't going to upset anything. |
15:06:32 | Araq | Johz: don't make them .immediate and it should be fine |
15:06:47 | Araq | thanks for working on it :-) |
15:09:57 | Johz | Great, that's what I've got. And it's easier for me to fix something easy like this than to hold up development on something more interesting... :P |
15:14:07 | * | yglukhov joined #nim |
15:20:30 | * | mat4 quit (Quit: Leaving) |
15:26:18 | * | gokr joined #nim |
15:43:51 | Johz | Araq: I'm trying to run a specific set of tests, but ./koch test doesn't seem to be using the version of the compiler that I've just modified and built |
15:44:28 | Araq | if you mean "koch temp" by "just modified and built" |
15:44:32 | Araq | then yeah. |
15:44:41 | Araq | "koch temp" produces nim_temp |
15:44:49 | Araq | do 'koch boot -d:release' |
15:44:55 | Araq | and then the tests use the new nim |
15:45:27 | Johz | Will having another nim on the path confuse things at all? |
15:45:40 | Johz | Because I'm using koch boot, albeit not in release mode |
15:46:51 | Johz | bin/nim c -r test/... works, it's just when using koch to run testament that things seem to be breaking |
15:52:03 | * | CcxCZ quit (Ping timeout: 276 seconds) |
15:53:22 | Johz | Yeah, it was a path problem, should be fixed now. I should have pull request ready soon |
15:55:19 | * | gokr quit (Quit: Leaving.) |
16:11:12 | Johz | Araq, pull request sent |
16:15:27 | * | arnetheduck quit (Ping timeout: 276 seconds) |
16:16:52 | * | CcxCZ joined #nim |
16:28:00 | * | satbyy joined #nim |
16:28:53 | * | satbyy left #nim ("Kumbhakarna mode ... zzzZ") |
16:39:18 | * | yglukhov quit (Ping timeout: 244 seconds) |
16:48:24 | * | toaoMgeorge joined #nim |
16:49:58 | * | lokien_ quit (Quit: Connection closed for inactivity) |
16:54:23 | * | mahasamoot joined #nim |
17:26:12 | * | filcuc_ quit (Read error: Connection reset by peer) |
17:26:45 | * | yglukhov joined #nim |
17:27:54 | flyx | is it possible at compile time to check whether an object type has a discriminator, i.e. is a variant object? |
17:31:15 | * | yglukhov quit (Ping timeout: 248 seconds) |
17:33:20 | * | [CBR]Unspoken quit (Ping timeout: 250 seconds) |
17:34:37 | * | boopsies is now known as boopsiesisaway |
17:34:50 | * | gokr joined #nim |
17:37:48 | * | [CBR]Unspoken joined #nim |
17:42:43 | * | brson joined #nim |
17:46:01 | * | tdc joined #nim |
17:46:34 | * | tdc quit (Client Quit) |
17:57:44 | * | yglukhov joined #nim |
18:03:35 | * | PMunch joined #nim |
18:08:42 | * | yglukhov quit (Read error: Connection reset by peer) |
18:09:05 | * | yglukhov joined #nim |
18:10:46 | * | pilne joined #nim |
18:10:46 | * | yglukhov quit (Read error: Connection reset by peer) |
18:18:50 | Araq | flyx: yeah via macros.getType() |
18:19:54 | flyx | Araq: nice, thanks |
18:25:55 | * | NimBot joined #nim |
18:26:15 | * | BlaXpirit joined #nim |
18:27:08 | * | fold3 joined #nim |
18:27:25 | * | SirCmpwn quit (*.net *.split) |
18:27:25 | * | r-ku quit (*.net *.split) |
18:27:26 | * | Gonzih quit (*.net *.split) |
18:27:26 | * | so quit (*.net *.split) |
18:27:26 | * | dom96 quit (*.net *.split) |
18:27:26 | * | gmpreussner quit (*.net *.split) |
18:27:38 | * | so joined #nim |
18:27:38 | * | SirCmpwn joined #nim |
18:27:38 | * | r-ku joined #nim |
18:27:41 | * | dom96 joined #nim |
18:27:45 | * | gmpreussner joined #nim |
18:27:45 | * | Gonzih joined #nim |
18:30:11 | * | krux02 quit (Quit: Page closed) |
18:31:13 | * | yglukhov joined #nim |
18:35:49 | * | yglukhov quit (Ping timeout: 255 seconds) |
18:44:51 | * | mahasamoot quit (Ping timeout: 250 seconds) |
18:46:14 | * | Sembei joined #nim |
18:47:33 | * | PMunch quit (Ping timeout: 276 seconds) |
18:48:31 | * | Jesin joined #nim |
18:52:27 | * | exebook quit (Quit: Leaving) |
18:52:49 | * | mahasamoot joined #nim |
18:53:42 | * | Matthias247 joined #nim |
19:02:39 | * | lokien_ joined #nim |
19:08:32 | * | ics joined #nim |
19:40:34 | * | yglukhov joined #nim |
19:51:08 | * | brson quit (Ping timeout: 250 seconds) |
19:52:35 | * | yglukhov quit (Remote host closed the connection) |
19:53:43 | * | brson joined #nim |
19:54:59 | * | Johz quit (Quit: Page closed) |
20:00:51 | * | dorei joined #nim |
20:00:55 | dorei | hello |
20:01:00 | dorei | where do I start? :) |
20:03:26 | * | nsf quit (Quit: WeeChat 1.4) |
20:05:02 | Arrrr | To learn nim? |
20:06:48 | dorei | yeap |
20:07:10 | Arrrr | Well, there are many resources, have a look at this page http://nim-lang.org/learn.html |
20:07:46 | dorei | thanx a lot :) |
20:08:05 | Arrrr | You are welcome my friend |
20:11:15 | * | BitPuffin quit (Ping timeout: 248 seconds) |
20:13:39 | * | endragor_ joined #nim |
20:14:56 | lokien_ | hey guys. when nim 1.0 is released, but you'll find some nasty bug/very very ugly syntax, but changing this would break backwards compatibility.. would you break it? |
20:15:36 | lokien_ | s/backwards/backward |
20:17:04 | * | endragor quit (Ping timeout: 240 seconds) |
20:17:58 | * | endragor_ quit (Ping timeout: 255 seconds) |
20:19:16 | Arrrr | Nah, nasty bugs deservers to live |
20:22:29 | lokien_ | :( |
20:22:49 | lokien_ | that's nasty |
20:24:42 | dorei | that's the art of software engineering ;-) |
20:28:57 | Arrrr | I have to go, good luck with your learning dorei |
20:29:00 | * | Arrrr quit (Quit: WeeChat 1.2) |
20:29:04 | lokien_ | art, or engineering? :D |
20:29:17 | lokien_ | we can learn together dorei |
20:29:25 | lokien_ | 'cause it's my first day |
20:31:49 | dorei | Arrrrr pointed me to http://nim-lang.org/learn.html |
20:31:54 | dorei | now i'm installing nim |
20:32:09 | dorei | and i'm thinking of installing https://github.com/wheineman/nrpl too |
20:32:22 | lokien_ | I'm reading that. and I'll install it in 15 mins or so |
20:32:23 | dorei | so as to check pieces from the tutorial at a repl :) |
20:32:53 | lokien_ | are you coming from clojure? |
20:34:04 | dorei | nop, ruby and C, ruby mainly |
20:34:16 | dorei | i think i've got parenthesophobia :( |
20:36:19 | lokien_ | why not crystal then? :D |
20:36:25 | lokien_ | it's c with ruby syntax |
20:39:57 | dorei | hmm |
20:40:59 | dorei | w0w, crystal has no int type, only int8, int16, int32 and int64 |
20:41:16 | dorei | i hope that nim's int will give me no trouble |
20:41:44 | lokien_ | :D |
20:41:58 | lokien_ | it doesn't have that crown without a reason |
20:45:23 | * | lokien joined #nim |
20:45:32 | * | aziz joined #nim |
20:45:49 | dorei | if i install nim from github, is there anything else to do after compilation other than adding the path/to/cloned_repo/bin to my $PATH ? |
20:48:47 | lokien | I'll just go with nim 0.11, since it's in ubuntu |
20:52:53 | dorei | https://github.com/def-/nrpl |
20:53:07 | dorei | this is a more compatible fork with latest ver of nim |
20:54:33 | lokien | why would you want repl, besides running examples? |
20:56:26 | dorei | well, running examples seems to be a fine way to start learning, no? |
20:56:46 | * | [CBR]Unspoken quit (Remote host closed the connection) |
20:57:01 | lokien | it is a fine way :D |
20:58:30 | * | Demon_Fox joined #nim |
21:05:02 | awsteele | that nim repl looks great! |
21:05:39 | * | dthrvr quit (Ping timeout: 248 seconds) |
21:08:19 | * | Kingsquee joined #nim |
21:08:59 | lokien | awsteele: have you ever seen utop? |
21:09:15 | awsteele | nope, what is it? |
21:09:48 | lokien | ocaml's repl |
21:09:56 | lokien | prettiest repl in the world |
21:10:29 | awsteele | ah ok. i've never played with ocaml. although i'm quite partial to the "pry" repl for ruby. MUCH better than the standard irb |
21:10:46 | lokien | http://i.stack.imgur.com/xnQjZ.png that's utop |
21:11:01 | awsteele | very colourful :) |
21:11:16 | lokien | and shows time! :D |
21:13:15 | awsteele | anyone have experience with travis-ci and nim projects? i'm having issues wherein it can't load libpcre. this is supposed a fix, but it didn't work for me: https://github.com/docopt/docopt.nim/commit/2323fd956c8a22b1ce3e4c00ce34437f6cca75b5 |
21:18:15 | * | dthrvr joined #nim |
21:24:01 | awsteele | seems i needed to add "sudo: required" in order to activate the newer ubuntu, now it works |
21:32:57 | * | BitPuffin|osx joined #nim |
21:36:00 | ldlework | lokien: how's your nim learning going |
21:36:24 | lokien | ldlework: struggling to install vim with python support on my new ubuntu :I |
21:36:42 | lokien | if I fail now, I'll just install howl/sublime |
21:37:46 | dorei | python support for vim? why? |
21:37:58 | lokien | for nim vim plugin |
21:38:07 | dorei | oh, i see |
21:38:44 | * | nsf joined #nim |
21:39:34 | dom96 | ooh new Nim people. Hello guys. |
21:39:37 | dorei | oh, python2 for my vim :) |
21:39:45 | dorei | i hope nim.vim doesn't need python3 |
21:39:56 | lokien | hello dom96, old nim human |
21:40:08 | dom96 | hello lokien :) |
21:40:15 | dorei | hi dom96 |
21:40:53 | dom96 | If you guys haven't seen it already, i'm writing a book which teaches you Nim: https://manning.com/books/nim-in-action?a_aid=niminaction&a_bid=78a27e81 |
21:41:17 | dorei | no pirated copy yet however :p |
21:42:28 | lokien | can you ship to poland? |
21:42:33 | dom96 | I would upload it to TPB myself but I don't think my publisher would be too happy about that :P |
21:42:56 | dorei | i guess when it's finished it'll find its way into libgen |
21:43:26 | lokien | hm, it's not printed yet :( |
21:44:29 | lokien | maybe we'll write a fun book? like brave clojure? or c# yellow book? |
21:45:32 | dom96 | lokien: I would be surprised if that was a problem. Ale ja jestem Polakiem, więc jak będzię z tym problem to może przywioze ci personalnie ;) |
21:45:44 | lokien | dom96: o panie :D |
21:47:35 | dom96 | dorei: The first chapter is free in any case. |
21:47:50 | lokien | I'm enjoying it right now |
21:49:05 | * | BitPuffin joined #nim |
21:50:49 | * | BitPuffin quit (Read error: Connection reset by peer) |
21:51:33 | dom96 | lokien: yay, please let me know what you think, or if you have any questions. If i'm not around here or you want to do post it somewhere more permanent then you can do so on the Nim forum (http://forum.nim-lang.org/t/1978) or the Manning forum (https://forums.manning.com/forums/nim-in-action). |
21:51:42 | dom96 | *to post |
21:52:33 | dorei | dom96: it's pretty cool, the only minus i've found is that you dont expand on nim weakness and makes it look a little bit unbalanced |
21:52:54 | dom96 | dorei: That's because Nim is perfect :P |
21:53:33 | dom96 | heh, in all seriousness it's a bit hard to do. I don't want to sound too negative about Nim in the book, since it is a book that is meant to encourage you to learn Nim. |
21:53:43 | lokien | dom96: ha, I love it so far :D maybe I'll buy it for my bday! (I haven't bought any programming book ever) |
21:54:28 | lokien | dom96: but you can sound negative here. tell us about its weaknesses! |
21:54:58 | dom96 | I pretty much covered the biggest weakness in the book. |
21:55:40 | dom96 | The biggest problem is that it's not as mature as other languages, but that will improve with time. |
21:56:50 | lokien | immaturity is the biggest flaw? |
21:57:15 | dom96 | lokien: that would be awesome! It would be a big honour if you bought Nim in Action as your first ever programming book :) |
21:57:33 | dom96 | lokien: pretty much. |
22:00:00 | lokien | dom96: and the only issue with the book is the awkward syntax in longer sentences :D |
22:00:23 | lokien | uh, or it's a typo |
22:00:39 | dom96 | hrm, which part? |
22:00:40 | lokien | you forgot to put a word here. so, a wordo |
22:01:00 | lokien | "is necessary when interfacing with |
22:01:00 | lokien | C libraries and supporting these unsafe features makes Nim a powerful systems programming language." |
22:01:14 | lokien | shouldn't it be "which makes Nim a powerful..."? |
22:01:19 | * | filwit joined #nim |
22:01:36 | lokien | or I'm just weird, I don't know :D |
22:01:49 | lokien | (page 6) |
22:05:29 | dom96 | Hmm. I think it makes sense. |
22:07:03 | lokien | my proposition, or your sentence? |
22:09:48 | dom96 | My sentence |
22:10:47 | lokien | I didn't say it doesn't make sense, it was just a bit funky. maybe that's because I'm sleepy, sorry :) |
22:11:19 | awsteele | I just bought the book. It's the first programming book I've bought too. Well, except TAOCP, but that's just to look pretty on my shelf :) |
22:13:04 | dom96 | lokien: I'm sleepy too so I could be wrong too. It's also hard to say, because I wrote it so it makes sense to me. Will look at it in the morning again. |
22:13:26 | dom96 | awsteele: Awesome. Thank you! |
22:15:40 | lokien | dom96: chat application in chapter 3? with gui, connections and all that stuff? |
22:16:26 | dom96 | lokien: CLI but yes :) |
22:16:55 | dom96 | It's nowhere near as complex as IRC of course |
22:17:11 | lokien | dom96: I'm so hyped right now :D |
22:17:44 | dom96 | lokien: Brilliant. Exactly what I was going for :D |
22:18:07 | dom96 | Currently working on Chapter 7 which will involve the development of a simple Twitter clone. |
22:18:14 | dom96 | Should be pretty fun too |
22:19:57 | lokien | but there are still only 3 chapters available? |
22:20:43 | awsteele | does nim's dynlib loading respect LD_LIBRARY_PATH? |
22:20:58 | dom96 | The others still need to be reviewed by my editor, then I need to make corrections based on his feedback, and once the editor is happy they will be released. |
22:21:56 | lokien | oh, okay. good luck with that book, it's really well-written :) |
22:21:59 | filwit | is there anyways to make a ``type CArray{.unchecked.}[T] = ptr array[1,T]`` (note the `ptr`) ? |
22:21:59 | dom96 | awsteele: IIRC it uses dlopen which respects LD_LIBRARY_PATH. |
22:22:46 | filwit | i mean making an unchecked ptr array[] in the same type (it's easy to do with using 2 types).. just wondering |
22:27:24 | dom96 | lokien: Glad you think so! :D |
22:28:03 | dom96 | filwit: Don't think so |
22:28:33 | filwit | dom96: k, thanks |
22:34:01 | * | jeffc joined #nim |
22:35:27 | * | PMunch joined #nim |
22:35:39 | * | jeffc_ joined #nim |
22:35:46 | * | jeffc quit (Client Quit) |
22:36:02 | * | jeffc_ left #nim (#nim) |
22:36:14 | awsteele | I have libpcre.so in a dir in my LD_LIBRARY_PATH, but I'm still getting "could not import: pcre_free_study" :( |
22:36:52 | * | jeffc joined #nim |
22:39:06 | lokien | hey, guys, how do you structure your code? do you put it in modules, namespaces? or just separate files? |
22:39:06 | def- | awsteele: wrong version of pcre maybe? |
22:39:17 | awsteele | ~/libpcre/lib# nm libpcre.so | grep pcre_free_study |
22:39:17 | awsteele | 0000000000016aa0 T pcre_free_study |
22:39:59 | def- | awsteele: and no 32/64 bit issue either I guess, hm |
22:40:36 | awsteele | oh, maybe? i just did the standard "./configure --prefix=..; make; make install" so i would think not |
22:40:58 | def- | lokien: each file is automatically a module with its own namespace |
22:41:12 | filwit | lokien: in Nim a file *is* a 'module' when it's 'imported' (and you can use 'include' to split modules across multiple files). There are no "namespaces" exactly (although you can use _:typedesc[T] as a first-parameter to associate a proc with a specific type.. which is somewhat similar) |
22:41:22 | def- | awsteele: I think there would be a different error in that case |
22:41:28 | dom96 | awsteele: maybe it's loading a libpcre.so.3 or libpcre.so.1? https://github.com/nim-lang/Nim/blob/devel/lib/wrappers/pcre.nim#L322 |
22:42:04 | awsteele | there is also a libpcre.so.1 in the dir, but it has the same symbols |
22:42:13 | awsteele | no libpcre.so.3 though.. |
22:42:15 | def- | filwit: why are there no namespaces? |
22:42:46 | lokien | thanks def- filwit |
22:42:57 | def- | awsteele: you could try running it with strace and check which library is actually opened |
22:43:03 | filwit | i misspoke, dom said it better, each 'imported' module is it's own "namespace" |
22:43:45 | def- | filwit: alright. I'm not dom though, even though people call me that rather often |
22:44:10 | filwit | def-: i know.. i was referring to dom's response right above mine |
22:44:54 | * | darkf joined #nim |
22:45:08 | awsteele | great idea, def-! i'll try that |
22:46:06 | filwit | def-: about the namespaces thing though.. "namespaces" in Nim do work differently than in C++/C#/Java/etc where each Class provides a namespace around it's methods (and therefor can be included/excluded individually.. unlike Nim which is a procedural language where procs are namespaced by the module only) |
22:46:39 | filwit | def-: unless you use the _:typedesc[T] trick... which is why I mentioned it as well |
22:48:07 | filwit | err.. included/excluded as a package by type-name I mean.. eg, you can "using System.Console" where Console is a Class and you only want to work with it's methods, not the everything from System |
22:49:28 | filwit | that's not really possible in Nim... not that's a practical problem or anything, since it's rare you actually don't just want to include the entire module anyways (that's why you packaged it as a module in the first place) |
22:55:31 | * | PMunch quit (Ping timeout: 248 seconds) |
22:59:58 | * | lokien_ quit (Quit: Connection closed for inactivity) |
23:04:42 | * | saml quit (Quit: Leaving) |
23:11:18 | * | lokien quit (Quit: Leaving) |
23:27:23 | * | aziz quit (Remote host closed the connection) |
23:35:39 | * | mahasamoot quit (Remote host closed the connection) |
23:36:29 | awsteele | How does this line work for loading a dynlib? https://github.com/nim-lang/Nim/blob/devel/lib/wrappers/pcre.nim#L322 It looks like it's some kind of regex - is it? I see the stdlib_pcre.c file ends up with the three possible filenames as string literals |
23:39:09 | awsteele | Ah it's in the manual |
23:47:51 | * | gokr quit (Ping timeout: 276 seconds) |
23:57:01 | * | lokien_ joined #nim |
23:58:42 | * | Kingsquee quit (Read error: Connection reset by peer) |
23:59:50 | * | Kingsquee joined #nim |