00:14:47 | shashlick | @rayman22201 right now nimterop does just ptr but I plan on adding var as an option |
00:15:07 | rayman22201 | ah ok |
00:19:48 | shashlick | Lots of ideas for nimterop |
00:20:04 | shashlick | Time time time |
00:23:49 | rayman22201 | indeed |
00:30:47 | * | Snircle quit (Read error: Connection reset by peer) |
00:31:16 | * | Snircle joined #nim |
01:03:02 | * | kapilp quit (Quit: Connection closed for inactivity) |
01:04:49 | * | laaron quit (Remote host closed the connection) |
01:06:10 | * | laaron joined #nim |
01:09:20 | * | laaron quit (Remote host closed the connection) |
01:12:44 | * | laaron joined #nim |
01:13:06 | * | abm quit (Quit: Leaving) |
01:25:29 | * | Tyresc quit (Quit: WeeChat 2.5-dev) |
02:00:01 | * | vivus quit (Remote host closed the connection) |
02:00:50 | * | laaron quit (Remote host closed the connection) |
02:03:46 | * | laaron joined #nim |
02:31:35 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
02:42:13 | * | laaron quit (Remote host closed the connection) |
02:45:55 | * | laaron joined #nim |
02:49:54 | * | laaron quit (Remote host closed the connection) |
02:53:26 | * | laaron joined #nim |
03:27:30 | shashlick | my 64-bit exe built on travis just hangs on startup taking up 100% CPU, any suggestions on how to debug |
03:35:14 | * | dddddd quit (Remote host closed the connection) |
03:58:03 | * | laaron quit (Remote host closed the connection) |
03:59:03 | * | I_Right_I quit (Remote host closed the connection) |
03:59:51 | * | laaron joined #nim |
04:10:53 | leorize | rebuild it with debug info then plug it into a debugger |
04:10:56 | * | laaron quit (Remote host closed the connection) |
04:14:54 | * | laaron joined #nim |
04:19:20 | shashlick | it just hangs, nothing shows up besides the threads gdb sees |
04:20:12 | leorize | well, interrupt the exe |
04:21:03 | shashlick | compiling locally in 64-bit, getting a totally different seq when I do toSeq(table.keys()) |
04:21:06 | leorize | on *nix I tend to use Ctrl-z, but it's doesn't seem to be the same on windows |
04:21:18 | shashlick | tables are totally borked for me since 0.20.0 |
04:24:36 | shashlick | Just so many issues, probably because I used boehm to share memory across threads |
04:25:18 | leorize | there's sharedtables in the stdlib |
04:25:21 | shashlick | Have to clean up and hope things get better |
04:25:37 | shashlick | I don't need to share this particular table |
04:25:57 | shashlick | But still getting some corruption, or some other random data |
04:26:09 | shashlick | And then the hang with my Travis binaries |
04:51:34 | * | Jjp137 quit (Read error: Connection reset by peer) |
04:53:06 | * | laaron quit (Remote host closed the connection) |
04:53:36 | * | Jjp137 joined #nim |
04:55:13 | * | laaron joined #nim |
05:13:32 | * | theelous3 quit (Ping timeout: 244 seconds) |
05:18:01 | * | laaron quit (Remote host closed the connection) |
05:19:49 | * | laaron joined #nim |
05:20:50 | * | laaron quit (Remote host closed the connection) |
05:22:38 | * | laaron joined #nim |
05:29:00 | * | nsf joined #nim |
05:32:37 | * | laaron quit (Remote host closed the connection) |
05:36:24 | * | laaron joined #nim |
05:41:53 | * | laaron quit (Remote host closed the connection) |
05:45:04 | * | laaron joined #nim |
05:55:16 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
05:56:27 | * | laaron joined #nim |
06:22:16 | * | laaron quit (Remote host closed the connection) |
06:27:17 | * | laaron joined #nim |
06:27:26 | * | rayman22201 quit (*.net *.split) |
06:27:27 | * | planetis[m] quit (*.net *.split) |
06:27:27 | * | k0mpjut0r quit (*.net *.split) |
06:27:27 | * | snowolf_ quit (*.net *.split) |
06:27:27 | * | oprypin quit (*.net *.split) |
06:27:27 | * | enthus1ast quit (*.net *.split) |
06:27:27 | * | oz quit (*.net *.split) |
06:27:27 | * | Miguelngel[m] quit (*.net *.split) |
06:27:27 | * | gh0st[m] quit (*.net *.split) |
06:27:27 | * | beatmox quit (*.net *.split) |
06:27:40 | * | gmpreussner quit (*.net *.split) |
06:27:40 | * | drewr quit (*.net *.split) |
06:27:41 | * | vegax87 quit (*.net *.split) |
06:27:41 | * | pydsigner quit (*.net *.split) |
06:28:55 | * | laaron quit (Remote host closed the connection) |
06:32:31 | * | laaron joined #nim |
06:35:49 | * | solitudesf joined #nim |
06:37:51 | * | rayman22201 joined #nim |
06:37:51 | * | planetis[m] joined #nim |
06:37:51 | * | k0mpjut0r joined #nim |
06:37:51 | * | snowolf_ joined #nim |
06:37:51 | * | oprypin joined #nim |
06:37:51 | * | enthus1ast joined #nim |
06:37:51 | * | oz joined #nim |
06:37:51 | * | Miguelngel[m] joined #nim |
06:37:51 | * | gh0st[m] joined #nim |
06:37:51 | * | beatmox joined #nim |
06:38:18 | * | gmpreussner joined #nim |
06:38:18 | * | drewr joined #nim |
06:38:18 | * | vegax87 joined #nim |
06:38:18 | * | pydsigner joined #nim |
06:40:24 | * | Cthalupa quit (Ping timeout: 272 seconds) |
06:41:04 | * | jken quit (Ping timeout: 248 seconds) |
06:41:32 | * | jken joined #nim |
06:42:48 | * | Cthalupa joined #nim |
06:51:00 | * | Summertime quit (Quit: Sunsetting.) |
06:55:28 | * | dGtlc3 quit (Ping timeout: 248 seconds) |
06:56:00 | * | Summertime joined #nim |
06:56:40 | * | dGtlc3 joined #nim |
07:00:00 | * | gmpreussner quit (Quit: kthxbye) |
07:04:34 | * | gmpreussner joined #nim |
07:06:17 | * | vlad1777d quit (Ping timeout: 245 seconds) |
07:10:26 | * | nsf quit (Quit: WeeChat 2.4) |
07:15:06 | * | rayman22201 quit (Ping timeout: 252 seconds) |
07:16:10 | * | rayman22201 joined #nim |
07:27:55 | * | dwdv joined #nim |
07:32:52 | * | def- quit (Quit: -) |
07:33:05 | * | def- joined #nim |
07:37:04 | * | go|dfish quit (Ping timeout: 248 seconds) |
07:44:41 | * | go|dfish joined #nim |
07:51:23 | * | go|dfish quit (Ping timeout: 248 seconds) |
07:57:58 | * | go|dfish joined #nim |
07:59:07 | FromGitter | <kayabaNerve> I remember discussing this months ago, but what are everyones' thoughts on an operator to supply a project path? |
07:59:27 | FromGitter | <kayabaNerve> ```code paste, see link``` ⏎ ⏎ This is actual code in my project :/ [https://gitter.im/nim-lang/Nim?at=5d04a55fa8d9871b328e9a9d] |
08:00:27 | FromGitter | <kayabaNerve> I think the biggest problem wasn't even with the suggested operator (~); it was with requiring Nim to be run from a certain directory so code would work. |
08:00:38 | FromGitter | <kayabaNerve> That said, it could be a Nimscript setting. |
08:01:40 | FromGitter | <kayabaNerve> I'm also attentive towards any hacks that will allow me to accomplish this without submitting an RFC or maintaining a fork |
08:03:00 | * | laaron quit (Remote host closed the connection) |
08:08:22 | * | laaron joined #nim |
08:17:45 | * | leorize quit (Ping timeout: 256 seconds) |
08:19:55 | * | laaron quit (Remote host closed the connection) |
08:22:00 | * | laaron joined #nim |
08:30:42 | * | neceve joined #nim |
08:48:08 | * | leorize joined #nim |
08:54:34 | * | go|dfish quit (Ping timeout: 246 seconds) |
08:58:43 | lqdev[m] | can't it be done using --path? |
08:58:54 | * | EastByte_ quit (Ping timeout: 252 seconds) |
09:00:32 | * | EastByte_ joined #nim |
09:08:15 | * | go|dfish joined #nim |
09:09:05 | Araq | just use fewer nested paths |
09:09:39 | Araq | directories kill productivity. |
09:11:28 | lqdev[m] | not always, they allow you to organize your project better, especially with a library where the end user might not need every single one of its features |
09:19:49 | * | stefanos82 joined #nim |
09:44:59 | * | go|dfish quit (Ping timeout: 248 seconds) |
09:48:46 | * | nsf joined #nim |
09:49:27 | * | uvegbot joined #nim |
09:50:45 | * | go|dfish joined #nim |
10:20:14 | * | Acid147 joined #nim |
10:28:47 | * | enthus1ast quit (Quit: WeeChat 1.6) |
10:28:56 | * | sealmove joined #nim |
10:31:12 | * | couven92 joined #nim |
10:52:25 | * | lf-araujo joined #nim |
11:01:07 | * | Trustable joined #nim |
11:05:02 | * | xet7 quit (Remote host closed the connection) |
11:07:31 | * | lf-araujo quit (Ping timeout: 258 seconds) |
11:15:54 | * | sealmove quit (Quit: WeeChat 2.5) |
11:16:34 | * | laaron quit (Remote host closed the connection) |
11:18:39 | * | laaron joined #nim |
11:20:45 | * | laaron quit (Client Quit) |
11:21:02 | * | laaron joined #nim |
11:22:11 | * | laaron quit (Remote host closed the connection) |
11:25:18 | * | laaron joined #nim |
11:29:29 | * | dddddd joined #nim |
11:35:48 | * | vlad1777d joined #nim |
11:45:10 | * | kapilp joined #nim |
11:47:44 | livcd | anyone trying to make an android app in Nim ? |
11:48:00 | livcd | I think I'd like to make a launcher |
12:15:44 | * | Snircle joined #nim |
12:19:06 | * | lritter joined #nim |
12:26:45 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
12:27:21 | * | laaron joined #nim |
12:28:35 | FromDiscord_ | <CrowbarKZ> Hi everyone, is there a channel specifically for questions or just general |
12:30:50 | Zevv | ask awat |
12:30:52 | Zevv | away |
12:32:48 | FromDiscord_ | <CrowbarKZ> I am trying to run Jester with multiple threads, i compile it like `nim c --threads:on server.nim`. Still see `Running 1 threads`, what am I doing wrong? (my laptop has more than 1 core for sure) |
12:34:10 | Zevv | hm that's funny |
12:35:30 | Zevv | !eval import osproc ; echo countProcessors() |
12:35:34 | NimBot | 1 |
12:35:50 | Zevv | Can you compile and run this snippet? http://p.zevv.nl/?d7b9 |
12:36:08 | * | Vladar joined #nim |
12:37:59 | FromDiscord_ | <CrowbarKZ> yep, I get 8. |
12:38:51 | FromDiscord_ | <CrowbarKZ> ok I found the problem it's between chair and keyboard, i was running a wrong binary 🤦 . Thanks for help and sorry to have bothered 😃 |
12:38:57 | Zevv | ha :) |
12:54:13 | * | enthus1ast joined #nim |
12:54:32 | enthus1ast | how can i assert on exceptions again? |
13:00:44 | * | laaron quit (Remote host closed the connection) |
13:02:10 | * | lqdev[m] sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/joiJxwtcKIPecfGEJqQLnaLI > |
13:02:24 | enthus1ast | ah got it doAssertRaises |
13:03:00 | lqdev[m] | btw, I always forget it's `newException` not `new` |
13:03:17 | enthus1ast | yeah lqdev[m] this was i first thought of but then i remembered there was a shorter version |
13:07:08 | * | laaron joined #nim |
13:13:01 | * | theelous3 joined #nim |
13:14:38 | lqdev[m] | is there a way of finding out the MIME type of a file? |
13:14:39 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
13:15:47 | enthus1ast | you mean like `file` unix command? |
13:16:44 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
13:17:06 | * | laaron joined #nim |
13:20:03 | * | nsf quit (Quit: WeeChat 2.4) |
13:21:32 | enthus1ast | there is afaik no nim module that has the same "magic" like `file` but if its enough for you, you could search for the file excension with the mimetypes.nim |
13:21:42 | enthus1ast | extension |
13:27:56 | * | NimBot joined #nim |
13:32:04 | FromGitter | <arnetheduck> is do notation gone from the language? can't find in manual.. |
13:34:42 | * | laaron quit (Remote host closed the connection) |
13:37:21 | enthus1ast | ^ https://nim-lang.org/docs/manual_experimental.html |
13:38:44 | * | laaron joined #nim |
13:41:59 | * | laaron quit (Client Quit) |
13:42:25 | * | laaron joined #nim |
13:45:31 | FromGitter | <arnetheduck> right, can always hope it doesn't make it out of experimental :) it's the kind of syntax that always has to be looked up and could be made easier |
13:51:00 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
13:51:21 | * | laaron joined #nim |
13:51:39 | lqdev[m] | enthus1ast: I was hoping to eliminate the use of extensions by analyzing a file's MIME type, but if that doesn't exist I'll use extensions. |
13:51:57 | enthus1ast | there is no thing like a "file's MIME type" |
13:52:36 | enthus1ast | some files are so kind and store some magic bytes at the start or at the end |
13:52:42 | enthus1ast | for example zip (pk) |
13:52:52 | enthus1ast | or windows executable (mz) |
13:55:16 | enthus1ast | but how would you distinguish between lets say ini, nim or sql files |
13:56:37 | lqdev[m] | UNIX file can do that, so I thought there might be some C library for that |
13:58:07 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
13:59:35 | * | laaron joined #nim |
14:00:42 | enthus1ast | ah maybe this works https://github.com/xmonader/nim-magic |
14:03:39 | * | lritter quit (Ping timeout: 248 seconds) |
14:08:18 | * | lritter joined #nim |
14:08:31 | * | natrys joined #nim |
14:09:10 | Araq | enthus1ast: do the world a favor and stick to file extensions, they are like a (primitive) type system for files and a good idea, even though DOS had them too |
14:09:46 | Araq | arnetheduck: we couldn't deprecate 'do' before our new 'quote do' is ready and it isn't ;-) |
14:11:40 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
14:12:38 | * | laaron joined #nim |
14:13:29 | * | abm joined #nim |
14:24:03 | FromGitter | <arnetheduck> a question: I can ignore some tuple unpacking results with `_` in a `let`, but not outside.. any tips? ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ ideas? [https://gitter.im/nim-lang/Nim?at=5d04ff8326477710bbb57726] |
14:24:52 | enthus1ast | Araq: this was my first suggestion, but i can understand that on *ix it is sometimes neccessary |
14:28:41 | * | laaron quit (Remote host closed the connection) |
14:31:22 | * | laaron joined #nim |
14:32:51 | * | abm quit (Quit: Leaving) |
14:50:40 | * | ftsf quit (Ping timeout: 248 seconds) |
14:55:24 | * | Calinou quit (Quit: No Ping reply in 180 seconds.) |
15:02:16 | * | Calinou joined #nim |
15:15:19 | FromGitter | <JasperJenkins> @arnetheduck Tuple assignments aren't very strict, so you can discard the last items implicitly by assigning to a shorter tuple. See PR https://github.com/nim-lang/Nim/pull/11348 (which would change this behavior) for examples. |
15:17:43 | FromGitter | <arnetheduck> @JasperJenkins interesting, though it's the kind of trick to avoid it seems - it also wouldn't cover `(a, _, b)`? |
15:21:29 | FromGitter | <JasperJenkins> Yeah. Just assigning to a temp var like the compiler does seems the best option. |
15:26:09 | * | nsf joined #nim |
15:35:37 | Araq | so ... closures are beginning to compile with --newruntime. Unfortunately they crash at runtime :P |
15:37:59 | FromGitter | <arnetheduck> are all nil dereferences supposed to be raised as nim exceptions (with checks:on)? I'm getting `Illegal storage access. (Attempt to read from nil?)` in a debug build |
15:41:15 | Araq | nah, hardly any nil checks are emitted |
15:42:06 | Araq | I tried to use ' -fsanitize=null -fsanitize-undefined-trap-on-error' to make the C compiler do it for us but my programs then die |
15:42:18 | Araq | probably I misunderstand what these switches do. |
15:49:37 | * | nsf quit (Quit: WeeChat 2.4) |
15:49:52 | FromGitter | <arnetheduck> so.. why are.. any nil checks emitted? ie it gives a false kind of security.. specially to the exception loving crowd that might expect to be able to catch them |
16:01:46 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
16:02:10 | FromGitter | <arnetheduck> don't think sanitizers are as good as a language-driven approach due to how C is.. flexible |
16:02:18 | * | laaron joined #nim |
16:04:05 | * | Vladar quit (Remote host closed the connection) |
16:11:48 | * | Vladar joined #nim |
16:25:47 | enthus1ast | what gives the new runtime (in laymans terms) to us? The compiler generates codes that cleans up the garbage, so that no garbage collector is necessary any more? |
16:40:15 | * | laaron quit (Remote host closed the connection) |
16:41:31 | * | laaron joined #nim |
16:46:42 | FromGitter | <alehander42> didnt you need to import nilcheck |
16:46:44 | FromGitter | <alehander42> or is that old |
16:47:04 | FromGitter | <alehander42> @arnetheduck how would you make it easier `do` |
16:47:07 | FromGitter | <alehander42> not disagreeing |
16:47:14 | FromGitter | <alehander42> just wondering because a lot of code uses it already |
16:47:22 | FromGitter | <alehander42> and it needs to have an obvious migration path |
16:48:01 | * | laaron quit (Remote host closed the connection) |
16:55:10 | * | laaron joined #nim |
16:58:55 | Acid147 | Is it currently possible to include assembly files in the build process? I found no compiler option for that and executing something before the build process with nimble doesn't seem to work (https://github.com/nim-lang/nimble/issues/606) |
17:09:52 | Zevv | I guess you could {.emit.} asm blocks |
17:13:24 | * | hoijui joined #nim |
17:14:19 | Zevv | Acid147: http://ix.io/1LRY |
17:14:22 | Zevv | fwiw |
17:19:35 | Acid147 | Thanks. Not the option I hoped for, because I would have to include the code in Nim files. But I'll try it if I don't find another solution |
17:20:22 | Zevv | well, to be honest, I wouldn't do it like this |
17:20:30 | Zevv | I'd make a little helper lib from the asm code |
17:20:37 | Zevv | and link that when compiling nim code |
17:21:41 | Acid147 | That would mean that I need to build the assembly code seperately from my Nim project, right? |
17:22:12 | Zevv | indeed. Nim does not know anything about assembly, so it wouldn't know how to invoke your assembler |
17:23:44 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
17:24:08 | * | laaron joined #nim |
17:25:40 | Acid147 | That's why something like the linked issue would be nice. I think I'll do it with a helper lib until that issue is fixed |
17:26:49 | Zevv | Yeah, if you're into nimble that would be nice. I always call nim directly, or just encapsulate all in good'ole makefiles |
17:27:44 | * | laaron quit (Client Quit) |
17:28:09 | * | laaron joined #nim |
17:28:58 | Acid147 | Right, that would be another option |
17:30:30 | * | neceve quit (Remote host closed the connection) |
17:31:44 | leorize | certain C compilers can compile asm, so `{.compile.}` would work for those |
17:31:54 | leorize | I think gcc/clang could do it |
17:33:03 | * | hoijui quit (Ping timeout: 250 seconds) |
17:33:39 | * | laaron quit (Remote host closed the connection) |
17:35:06 | * | Trustable quit (Remote host closed the connection) |
17:35:56 | * | Trustable joined #nim |
17:36:39 | * | laaron joined #nim |
17:36:58 | Acid147 | {.compile.} seems to work, thanks :D |
17:49:17 | * | nsf joined #nim |
17:52:32 | * | vlad1777d quit (Ping timeout: 245 seconds) |
17:58:43 | * | laaron quit (Remote host closed the connection) |
18:12:52 | * | Trustable quit (Remote host closed the connection) |
18:14:03 | * | Trustable joined #nim |
18:15:12 | * | rockcavera quit (Remote host closed the connection) |
18:19:37 | * | hoijui joined #nim |
18:22:34 | Araq | enthus1ast: I consider Nim+newruntime a Nim with a better threading model. |
18:30:20 | * | narimiran joined #nim |
18:33:20 | * | Jesin quit (Quit: Leaving) |
18:44:46 | * | Jesin joined #nim |
19:06:42 | * | theelous3 quit (Ping timeout: 245 seconds) |
19:09:29 | * | envoyt joined #nim |
19:45:04 | * | LyndsySimon quit (Ping timeout: 264 seconds) |
19:47:01 | * | LyndsySimon joined #nim |
20:00:21 | * | hoijui quit (Quit: Leaving) |
20:18:28 | * | Jesin quit (Quit: Leaving) |
20:21:34 | * | Jesin joined #nim |
20:28:08 | * | narimiran quit (Ping timeout: 268 seconds) |
20:36:03 | * | nsf quit (Quit: WeeChat 2.4) |
21:03:31 | * | jjido joined #nim |
21:38:23 | * | stefanos82 quit (Quit: Quitting for now...) |
21:41:56 | * | lf-araujo joined #nim |
21:50:31 | * | Trustable quit (Remote host closed the connection) |
21:54:13 | * | ldlework quit (Quit: co'o ro do) |
21:55:44 | * | ldlework joined #nim |
22:06:28 | * | lf-araujo quit (Ping timeout: 258 seconds) |
22:16:20 | * | lritter quit (Quit: Leaving) |
22:18:30 | FromGitter | <kayabaNerve> Could you emit a staticRead? zevv Acid147 |
22:18:53 | FromGitter | <kayabaNerve> Oh. You already got a solution :thinking: |
22:30:47 | * | lf-araujo joined #nim |
22:34:45 | * | natrys quit (Quit: natrys) |
22:39:29 | * | solitudesf quit (Ping timeout: 268 seconds) |
22:40:18 | * | lf-araujo quit (Quit: lf-araujo) |
22:40:40 | * | lf-araujo joined #nim |
22:43:57 | * | Vladar quit (Remote host closed the connection) |
22:50:33 | * | lf-araujo quit (Ping timeout: 258 seconds) |
22:51:45 | dom96 | Araq, how will newruntime give us a better threading model? |
22:52:28 | dom96 | We already have a limitation on how memory can be shared between threads, with new runtime we'll just have restrictions on how memory can be transferred/shared everywhere :/ |
23:13:04 | * | ldlework quit (Quit: co'o ro do) |
23:15:49 | * | ldlework joined #nim |
23:18:57 | * | Acid147 quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) |
23:20:46 | * | couven92 quit (Ping timeout: 258 seconds) |
23:36:41 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
23:38:47 | * | dwdv quit (Ping timeout: 258 seconds) |
23:43:48 | * | vlad1777d joined #nim |