00:13:11 | * | NimBot joined #nim |
00:24:51 | * | Jehan_ quit (Quit: Leaving) |
00:28:49 | * | Jehan_ joined #nim |
00:40:11 | * | BitPuffin|osx joined #nim |
00:58:27 | * | jaco60 quit (Ping timeout: 246 seconds) |
01:02:00 | * | Jehan_ quit (Read error: Connection reset by peer) |
01:49:19 | * | Jehan_ joined #nim |
01:51:45 | * | chemist69 joined #nim |
01:55:00 | * | chemist69_ quit (Ping timeout: 264 seconds) |
01:59:15 | * | keyle joined #nim |
02:05:37 | * | Toad_ joined #nim |
02:14:02 | * | huonw_ joined #nim |
02:14:04 | * | titanomachy_ joined #nim |
02:14:05 | * | rinukkusu_ joined #nim |
02:15:25 | * | strcmp1 quit (*.net *.split) |
02:15:25 | * | CryptoToad quit (*.net *.split) |
02:15:25 | * | titanomachy quit (*.net *.split) |
02:15:26 | * | nchambers quit (*.net *.split) |
02:15:27 | * | huonw quit (*.net *.split) |
02:15:27 | * | lyro quit (*.net *.split) |
02:15:28 | * | minus quit (*.net *.split) |
02:15:28 | * | someplace quit (*.net *.split) |
02:15:29 | * | rinukkusu quit (*.net *.split) |
02:15:29 | * | Amun_Ra quit (*.net *.split) |
02:18:20 | * | umurgdk joined #nim |
02:18:24 | * | minus joined #nim |
02:20:41 | * | nchambers joined #nim |
02:21:56 | * | lyro joined #nim |
02:21:56 | * | strcmp1 joined #nim |
02:21:59 | * | someplace joined #nim |
02:22:37 | * | umurgdk quit (Ping timeout: 246 seconds) |
02:22:38 | * | Amun_Ra joined #nim |
02:24:43 | * | Jehan_ quit (Read error: Connection reset by peer) |
02:34:41 | * | fold quit (Ping timeout: 272 seconds) |
02:34:41 | * | Jesin quit (Ping timeout: 272 seconds) |
02:36:01 | * | fold1 joined #nim |
02:38:05 | * | Jesin joined #nim |
02:50:59 | * | yomiel_ joined #nim |
02:57:28 | * | yomiel quit (*.net *.split) |
02:57:28 | * | Xaseron quit (*.net *.split) |
02:57:28 | * | r-ku quit (*.net *.split) |
03:02:21 | * | Xaseron joined #nim |
03:02:21 | * | r-ku joined #nim |
03:06:02 | * | Jehan_ joined #nim |
03:07:31 | * | lokulin quit (Ping timeout: 265 seconds) |
03:08:30 | * | vegai quit (Ping timeout: 265 seconds) |
03:08:31 | * | rektide_ quit (Ping timeout: 265 seconds) |
03:09:49 | * | rektide joined #nim |
03:10:08 | * | vegai joined #nim |
03:10:40 | * | Jehan_ quit (Client Quit) |
03:11:35 | * | Jehan_ joined #nim |
03:27:40 | * | lokulin joined #nim |
03:33:19 | * | Jehan_ quit (Read error: Connection reset by peer) |
03:37:42 | * | FedeOmoto joined #nim |
03:42:41 | * | vega_nsk joined #nim |
03:50:28 | * | Jehan_ joined #nim |
04:05:42 | * | NimBot joined #nim |
04:27:07 | * | NimBot joined #nim |
04:34:11 | * | Jehan_ quit (Quit: Leaving) |
04:35:38 | * | Jehan_ joined #nim |
04:45:56 | * | darkf joined #nim |
05:09:35 | * | Jehan_ quit (Quit: Leaving) |
05:12:13 | * | Jehan_ joined #nim |
05:18:37 | * | NimBot joined #nim |
05:20:57 | * | Jehan_ quit (Quit: Leaving) |
05:22:39 | * | xificurC joined #nim |
05:22:42 | * | Jehan_ joined #nim |
05:23:00 | * | xificurC quit (Client Quit) |
05:29:03 | * | kilon quit (Read error: Connection reset by peer) |
05:29:49 | * | kilon joined #nim |
05:35:17 | * | keyle quit (Quit: http://twitter.com/keyle/) |
05:49:05 | * | jszymanski joined #nim |
06:05:44 | * | yglukhov joined #nim |
06:08:03 | * | vendethiel joined #nim |
06:08:54 | * | yglukhov quit (Remote host closed the connection) |
06:10:07 | * | yglukhov joined #nim |
06:14:51 | * | yglukhov quit (Remote host closed the connection) |
06:20:20 | * | xcombelle joined #nim |
06:22:30 | * | yglukhov joined #nim |
06:23:10 | * | jackv quit (Ping timeout: 240 seconds) |
06:24:03 | * | jackv joined #nim |
06:29:38 | * | FedeOmoto quit (Ping timeout: 260 seconds) |
06:30:51 | * | umurgdk joined #nim |
06:31:14 | * | yglukhov quit (Remote host closed the connection) |
06:32:53 | * | vendethiel quit (Ping timeout: 244 seconds) |
06:38:30 | * | gokr joined #nim |
06:39:35 | * | Jehan` joined #nim |
06:39:53 | gokr | Good morning Nimsters! |
06:40:24 | * | Jehan_ quit (Ping timeout: 246 seconds) |
06:41:06 | strcmp1 | morning :) |
06:41:22 | reactormonk | All hail Nim |
06:43:51 | * | umurgdk quit (Remote host closed the connection) |
07:00:00 | * | Jehan` quit (Quit: Leaving) |
07:01:16 | * | Jehan_ joined #nim |
07:06:18 | * | ofo quit (Ping timeout: 246 seconds) |
07:07:34 | * | Ven joined #nim |
07:15:36 | * | Jehan_ quit (Quit: Leaving) |
07:17:47 | * | Toad_ is now known as Cryptotoad |
07:26:58 | * | vegansk quit (Remote host closed the connection) |
07:26:58 | * | vega_nsk quit (Remote host closed the connection) |
07:30:29 | * | NimBot joined #nim |
07:31:16 | * | umurgdk joined #nim |
07:31:34 | * | chemist69 quit (Quit: WeeChat 1.3) |
07:33:04 | * | chemist69 joined #nim |
07:33:24 | * | irrequietus joined #nim |
07:33:51 | * | xcombelle quit (Ping timeout: 244 seconds) |
07:35:31 | * | umurgdk quit (Ping timeout: 246 seconds) |
07:38:09 | * | Kingsquee quit (Quit: http://i.imgur.com/EsXzoum.png) |
07:50:27 | * | umurgdk joined #nim |
07:51:06 | * | umurgdk quit (Remote host closed the connection) |
07:51:19 | * | umurgdk joined #nim |
07:52:46 | * | Ven quit (Read error: Connection reset by peer) |
08:04:17 | * | umurgdk quit (Remote host closed the connection) |
08:04:57 | * | yglukhov joined #nim |
08:05:00 | * | umurgdk joined #nim |
08:05:25 | * | yglukhov quit (Remote host closed the connection) |
08:11:45 | * | tja joined #nim |
08:12:14 | tja | Hello, anyone on? |
08:19:33 | * | yglukhov joined #nim |
08:27:32 | Araq | hi tja |
08:28:04 | Araq | dom96: any thoughts on my Nimble PR? |
08:28:18 | dom96 | hello tja and Araq |
08:28:30 | dom96 | Araq: I don't like that you renamed all 'options' to 'opt' |
08:28:36 | dom96 | Haven't got much further than that in the review |
08:28:44 | dom96 | I'll review the rest tonight |
08:28:46 | * | umurgdk quit (Remote host closed the connection) |
08:29:07 | * | Trustable joined #nim |
08:29:10 | Araq | one thing that really sucks IMHO is the inconsistent command line handling between Nim and Nimble |
08:29:18 | Araq | nim build # fails |
08:29:21 | Araq | nimble build # works |
08:29:28 | Araq | nim build project.nim # works |
08:29:35 | Araq | nimble build project.nim # fails |
08:29:38 | dom96 | what? |
08:29:42 | dom96 | There is no such thing as 'nim build' |
08:30:05 | Araq | surely there is if your nims file has a "build" task |
08:30:38 | * | Trustable quit (Remote host closed the connection) |
08:30:57 | tja | Hi |
08:31:26 | * | Trustable joined #nim |
08:31:31 | tja | I was wondering if it would be possible to ask someone to give a presentation on the technical aspects of Nim. |
08:31:46 | tja | To a tech audience. |
08:32:09 | tja | For context: I work in a software lab. |
08:32:14 | gokr | tja: Where? |
08:32:31 | tja | Belgium: Leuven. The institute is called Imec (www.imec.be) |
08:32:43 | tja | Via teleconf is also possible |
08:32:56 | tja | Wasn't sure where to ask, hence on IRC :-P |
08:33:46 | dom96 | Araq: If it does then it will work on Nim too |
08:33:56 | dom96 | because Nim will do the same thing Nimble will do |
08:34:01 | tja | We're an odd bunch, but some of us are pretty interested in Nim. |
08:34:03 | gokr | tja: You can also post on the forum, but most Nimmers do hang here. |
08:37:16 | Araq | tja: I guess I can do that ;-) |
08:37:30 | tja | araq: Bingo :-) |
08:38:25 | Araq | dom96: cannot follow |
08:40:58 | dom96 | The build task will in most cases just be defined as: nimble.buildMe() |
08:41:20 | dom96 | so the nims file will import nimble's module |
08:43:29 | r-ku | Araq you forgot |
08:43:39 | gokr | dom96: Off topic, I was reading up on the "latest" web stuff, ReactJS in particular. Have you done anything like that with Jester as backend? |
08:43:49 | gokr | r-ku: Hehe |
08:45:41 | * | Ven joined #nim |
08:47:16 | * | jaco60 joined #nim |
08:49:05 | * | BitPuffin|osx quit (Ping timeout: 240 seconds) |
08:49:12 | Araq | dom96: er ... I don't think this is realistic with the current NimScript API |
08:49:34 | Araq | nor is it desirable really, would start a process (nimble) |
08:49:45 | Araq | that then calls the compiler again |
08:50:22 | dom96 | gokr: nope, haven't gotten into this new wave of JS frameworks yet :) |
08:50:22 | * | umurgdk joined #nim |
08:50:40 | dom96 | Araq: It wouldn't start a process. |
08:51:00 | gokr | dom96: I just skimmed some articles comparing a bunch of them - and ReactJS looks quite nice. Reminds me a fair bit of Seaside actually, nested components etc. |
08:51:01 | dom96 | At least not the nimble process |
08:51:12 | dom96 | It would execute the build instructions in the same way that Nimble would |
08:53:07 | Araq | nim build -?-> nimble.buildMe() # how does that work? we have a nimble module that works with NimScript? |
08:53:24 | dom96 | I guess we'll get one |
08:53:31 | dom96 | how else do you expect nims to work? |
08:56:37 | Araq | like it's done in my PR |
08:56:56 | Araq | I'm quite happy with it once we unified command line handling |
08:58:08 | dom96 | how does it work in your PR/ |
08:58:11 | dom96 | ? |
08:58:47 | Araq | it executes the project.nims file rather than processing a project.nimble file |
08:59:14 | dom96 | yeah |
08:59:17 | Araq | the project.nims file sets author, deps etc and nimble retrieves these values with the compiler's API |
08:59:51 | dom96 | So what if I want to define my own 'build' command? |
09:00:09 | Araq | it overrides nimble's build command, I think |
09:00:11 | dom96 | I obviously program it in the nims file |
09:00:31 | dom96 | So why not have the default implemented in nims too? |
09:01:02 | Araq | sure thing |
09:01:24 | Araq | we can do that |
09:01:45 | Araq | that means "Nimble" doesn't know about a "build" command at all |
09:01:55 | * | yglukhov quit (Remote host closed the connection) |
09:05:57 | dom96 | yeah |
09:06:06 | dom96 | well, it can have some idea |
09:06:18 | dom96 | if there is no build command defined then it will give a meaningful error |
09:12:50 | * | X67r joined #nim |
09:22:27 | * | yglukhov joined #nim |
09:26:45 | * | yglukhov quit (Ping timeout: 240 seconds) |
09:28:18 | * | vegai left #nim (#nim) |
09:37:28 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
09:55:07 | * | coffeepot joined #nim |
09:56:34 | * | NimBot joined #nim |
10:04:09 | * | yglukhov joined #nim |
10:04:28 | * | NimBot joined #nim |
10:04:43 | Araq | yglukhov: can you check what the .base annoation requirement caused to your codebase? |
10:06:33 | * | vegansk joined #nim |
10:09:07 | * | umurgdk quit (Remote host closed the connection) |
10:09:10 | * | yglukhov quit (Ping timeout: 268 seconds) |
10:13:02 | * | Ven joined #nim |
10:13:41 | * | jszymanski quit (Quit: computer sleeps...) |
10:15:39 | * | tja quit (Ping timeout: 246 seconds) |
10:18:09 | * | umurgdk joined #nim |
10:26:27 | * | yglukhov joined #nim |
10:32:48 | yglukhov | Araq: about that nimvm transformation. Nimvm gets constfolded in generic code. And consfold of nimvm is an invalid operation in my code. Preventing constfold of nimvm will require explicit handling of nkWhen generic transformations. Would that be the correct approach? |
10:32:57 | NimBot | nim-lang/Nim devel adf3408 Araq [+1 ±5 -0]: documented NimScript |
10:32:57 | NimBot | nim-lang/Nim devel a480beb Araq [+0 ±2 -0]: Nimscript: documented; 'exec' now produces output immediately |
10:33:18 | Araq | yglukhov: don't make it a 'const'. |
10:33:25 | Araq | then it's not folded |
10:33:27 | Araq | bbl |
10:37:06 | * | Demon_Fox quit (Quit: Leaving) |
10:41:11 | * | umurgdk quit (Remote host closed the connection) |
10:46:06 | * | Cryptotoad quit (Ping timeout: 246 seconds) |
10:47:47 | * | umurgdk joined #nim |
10:52:36 | * | umurgdk quit (Ping timeout: 264 seconds) |
11:05:12 | * | NimBot joined #nim |
11:05:36 | * | rollo joined #nim |
11:06:00 | * | wuehlmaus quit (Quit: Lost terminal) |
11:06:20 | * | wuehlmaus joined #nim |
11:07:18 | * | yglukhov quit (Remote host closed the connection) |
11:11:34 | * | Ven quit (Read error: Connection reset by peer) |
11:16:25 | * | yglukhov joined #nim |
11:16:32 | * | Ven joined #nim |
11:19:32 | yglukhov | Can't find a decent test on arith and bit operations in nim tests. Does anyone know where to find it? |
11:23:53 | * | umurgdk joined #nim |
11:28:10 | * | yglukhov quit (Remote host closed the connection) |
11:28:36 | * | umurgdk quit (Ping timeout: 264 seconds) |
11:28:48 | * | Jehan_ joined #nim |
11:31:48 | * | umurgdk joined #nim |
11:35:12 | * | tja joined #nim |
11:35:46 | * | tja quit (Client Quit) |
11:37:02 | * | yglukhov joined #nim |
11:37:05 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
11:38:11 | reactormonk | yglukhov, are they defined in system? Then somewhere in the tests dir. |
11:38:47 | yglukhov | reactormonk, "somewhere in tests dir" - that's helpul =) |
11:39:01 | reactormonk | yglukhov, that's about as much as I know. git grep might help. |
11:41:00 | yglukhov | ok, found some in misc/tints.nim |
11:44:26 | * | NimBot joined #nim |
11:45:33 | reactormonk | Feel free to rename/clean up |
11:50:07 | * | Snowie quit (Quit: Page closed) |
11:51:14 | * | Ven joined #nim |
11:59:24 | * | vegansk quit (Quit: Ухожу я от вас (xchat 2.4.5 или старше)) |
12:01:42 | * | jaco60 quit (Quit: Leaving) |
12:02:07 | * | jaco60 joined #nim |
12:07:50 | * | yglukhov_ joined #nim |
12:11:35 | * | yglukhov quit (Ping timeout: 264 seconds) |
12:12:38 | * | yglukhov_ quit (Ping timeout: 260 seconds) |
12:18:07 | * | BitPuffin joined #nim |
12:18:21 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
12:18:23 | * | boopsiesisaway is now known as boopsies |
12:32:43 | * | NimBot joined #nim |
12:45:45 | * | Ven joined #nim |
12:53:11 | * | boopsies is now known as boopsiesisaway |
12:58:00 | * | yglukhov joined #nim |
12:58:47 | * | yglukhov quit (Remote host closed the connection) |
13:04:37 | * | jszymanski joined #nim |
13:06:43 | * | yglukhov joined #nim |
13:12:19 | Araq | yglukhov: indeed they are all in misc/ |
13:12:56 | Araq | feel free to move them to basics/ instead or whatever |
13:13:50 | yglukhov | I don't really care where they are now that i've found them ;) |
13:16:50 | * | strcmp1 quit (Ping timeout: 240 seconds) |
13:19:30 | * | strcmp1 joined #nim |
13:20:12 | reactormonk | yglukhov, someone else might look for them |
13:20:18 | reactormonk | Araq, shouldn't they go into system/ ? |
13:21:02 | Araq | system/ is also fine I guess |
13:24:30 | * | strcmp1 quit (Ping timeout: 260 seconds) |
13:24:47 | * | FedeOmoto joined #nim |
13:32:40 | * | johnsoft quit (Read error: Connection reset by peer) |
13:34:07 | * | umurgdk quit (Remote host closed the connection) |
13:36:47 | * | strcmp1 joined #nim |
13:41:50 | * | umurgdk joined #nim |
13:41:56 | * | strcmp1 quit (Ping timeout: 272 seconds) |
13:43:01 | * | strcmp1 joined #nim |
13:47:14 | * | strcmp1 quit (Ping timeout: 250 seconds) |
13:48:53 | * | FedeOmoto_ joined #nim |
13:50:48 | * | FedeOmoto quit (Ping timeout: 255 seconds) |
13:51:11 | * | FedeOmoto joined #nim |
13:54:55 | * | FedeOmoto_ quit (Ping timeout: 246 seconds) |
13:56:05 | * | Cryptotoad joined #nim |
13:59:50 | * | mal`` quit (Ping timeout: 240 seconds) |
14:05:43 | * | mal`` joined #nim |
14:07:16 | OnO | Araq: one Q about .base annotation, what if we have 3 level hierarchy, should 1, 2 lvl be annotated as base or only 1 |
14:07:30 | OnO | does .base solution prevent problems with 3 lvl hierarchy too? |
14:08:31 | Araq | only 1 |
14:10:12 | Araq | also it turned out to not prevent any problem really. I fixed the real problem dfferently |
14:10:59 | Araq | however it still makes things more obvious, especially the interactions with the effect system. So I want to leave .base in the language. |
14:15:50 | * | Ven quit (Ping timeout: 244 seconds) |
14:19:38 | * | yglukhov quit (Remote host closed the connection) |
14:20:19 | NimBot | nim-lang/Nim devel 4ef4ad3 Yuriy Glukhov [+0 ±3 -0]: Fixed nimvm in generics. |
14:20:19 | NimBot | nim-lang/Nim devel 0b51d6d Andreas Rumpf [+0 ±3 -0]: Merge pull request #3291 from yglukhov/nimvm-generic-fix... 2 more lines |
14:24:04 | * | umurgdk quit (Remote host closed the connection) |
14:28:02 | * | umurgdk joined #nim |
14:35:55 | NimBot | nim-lang/Nim devel 167acf4 Adam Strzelecki [+0 ±1 -0]: typeToString: Fix shared/not nil on complex types... 3 more lines |
14:35:55 | NimBot | nim-lang/Nim devel 5e5d5b6 Andreas Rumpf [+0 ±1 -0]: Merge pull request #3295 from nanoant/patch/fix-type-to-string-flags... 2 more lines |
14:36:48 | NimBot | nim-lang/Nim devel caf0cd9 Matt Sullivan [+0 ±1 -0]: Replace incorrect warning string. |
14:36:48 | NimBot | nim-lang/Nim devel 217a30a Andreas Rumpf [+0 ±1 -0]: Merge pull request #3293 from Matt14916/usebase-msg-fix... 2 more lines |
14:40:11 | * | yglukhov joined #nim |
14:40:24 | * | yglukhov quit (Remote host closed the connection) |
14:40:37 | * | yglukhov joined #nim |
14:45:27 | Araq | Jehan_: OpenMP can create threads behind our back. For Nim's GC we have setupForeignThreadGc, what does Boehm offer? |
14:50:30 | yglukhov | Araq: i suspect i'll break bootstrap if i use nimvm in seq.insert. |
14:51:01 | Araq | why? it defaults to 'false' |
14:51:14 | yglukhov | it is 'let', not const |
14:51:23 | Araq | ah bah |
14:51:34 | Araq | when defined(booting): |
14:51:41 | Araq | const nimvm = false |
14:51:43 | Araq | else: |
14:52:08 | Araq | let nimvm {.magic: "nimvm".} = false |
14:52:20 | yglukhov | ah... ill do it in the same pr, ok? |
14:52:27 | Araq | sure |
14:52:33 | Araq | but please test it well |
14:57:24 | Araq | more robust is this: |
14:57:43 | Araq | when defined(nimKnowsNimVm): |
14:57:55 | Araq | let nimvm {.magic: "nimvm".} = false |
14:57:56 | Araq | else: |
14:57:57 | * | yglukhov quit (Remote host closed the connection) |
14:58:02 | Araq | const nimvm = false |
14:58:04 | Jehan_ | Araq: You can use GC_allow_register_threads() and then GC_register_my_thread()/GC_unregister_my_thread() using GC_call_with_stackbase() in a wrapper. |
14:58:20 | Araq | and then in condsysm.nim, add defineSymbol"nimKnowsnimVm" |
14:58:41 | * | yglukhov joined #nim |
14:59:11 | Jehan_ | I'd have to look at the existing thread code to figure out how much hacking is necessary to put the wrapper in. |
14:59:12 | Araq | or maybe we can make 'defined' check for known magics |
15:05:01 | * | Jehan_ quit (Quit: Leaving) |
15:16:47 | * | yglukhov quit (Ping timeout: 244 seconds) |
15:19:50 | Araq | somebody should write a Nim wrapper for this: http://mathgl.sourceforge.net/doc_en/Main.html |
15:33:49 | * | Pisuke joined #nim |
15:35:33 | * | MyMind quit (Ping timeout: 252 seconds) |
15:54:36 | * | jszymanski quit (Quit: computer sleeps...) |
15:55:23 | * | cyraxjoe joined #nim |
15:55:43 | * | Pisuke quit (Read error: Connection reset by peer) |
15:58:17 | Amrykid | Araq, would there be any prolems with me updating my name in some of the files? A couple of libs (such as sequtils) don't have my full name on it. |
16:02:47 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
16:04:21 | Amrykid | not mission critical or anything |
16:07:16 | * | umurgdk quit () |
16:07:45 | r-ku | Araq regarding wrapping of cpp classes.. have you considered something like pragma on type to make it emit actual c++ class? you know.. so virtual methods can be overridden. |
16:11:11 | onionhammer | yep cpp backend is still failing for me |
16:11:36 | onionhammer | sigsegv |
16:12:06 | onionhammer | im gonna try to get this to reproduce w/ a smaller example and submit an issue |
16:18:26 | * | Kingsquee joined #nim |
16:24:38 | onionhammer | https://github.com/nim-lang/Nim/issues/3299 |
16:25:02 | * | Ven joined #nim |
16:28:05 | * | yglukhov joined #nim |
16:30:06 | * | yglukhov quit (Remote host closed the connection) |
16:30:26 | * | yglukhov joined #nim |
16:44:09 | * | yglukhov quit (Remote host closed the connection) |
16:44:51 | * | yglukhov joined #nim |
16:45:24 | * | jszymanski joined #nim |
16:54:31 | * | darkf quit (Quit: Leaving) |
16:56:43 | * | yglukhov quit (Remote host closed the connection) |
16:58:38 | * | boopsiesisaway is now known as boopsies |
17:03:51 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
17:06:42 | * | yglukhov joined #nim |
17:14:54 | * | yglukhov quit (Remote host closed the connection) |
17:17:59 | * | Ven joined #nim |
17:20:41 | * | yglukhov joined #nim |
17:25:22 | * | yglukhov quit (Remote host closed the connection) |
17:41:14 | * | bendiken joined #nim |
17:42:29 | * | Miruya joined #nim |
17:48:10 | * | BitPuffin quit (Ping timeout: 240 seconds) |
17:54:53 | * | tankfeeder joined #nim |
17:59:34 | * | yglukhov joined #nim |
18:03:32 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
18:06:12 | * | BitPuffin joined #nim |
18:13:01 | * | gokr_ joined #nim |
18:13:19 | * | yglukhov quit (Remote host closed the connection) |
18:24:02 | * | yglukhov joined #nim |
18:25:43 | * | kilon quit (Read error: Connection reset by peer) |
18:26:13 | * | kilon joined #nim |
18:29:43 | * | yglukhov quit (Remote host closed the connection) |
18:31:19 | * | vendethiel joined #nim |
18:41:30 | * | gsingh93_ joined #nim |
19:05:14 | * | Mat4 joined #nim |
19:07:39 | * | BitPuffin quit (Ping timeout: 246 seconds) |
19:14:19 | * | HaCk3D joined #nim |
19:14:30 | HaCk3D | ping |
19:15:46 | HaCk3D | how can i represent an int in a binary format? |
19:15:48 | * | Varriount joined #nim |
19:16:09 | Mat4 | what binary format ? |
19:16:14 | HaCk3D | 00101 |
19:16:39 | HaCk3D | should i code my own proc it has a built-in one? |
19:18:47 | Mat4 | it's some time I had take a look at the documentation, however left to right shifting and outmasking would all be needed |
19:22:01 | FedeOmoto | HaCk3D: import strutils and use toBin() |
19:26:29 | * | rollo quit (Ping timeout: 256 seconds) |
19:28:54 | HaCk3D | FedeOmoto: thnx a lot |
19:29:00 | * | NimrodBot joined #nim |
19:29:03 | * | HaCk3D left #nim (#nim) |
19:29:13 | * | NimrodBot quit (Remote host closed the connection) |
19:37:08 | FedeOmoto | np |
19:41:56 | * | Jehan_ joined #nim |
19:42:26 | * | Jehan_ quit (Client Quit) |
19:49:02 | * | Matthias247 joined #nim |
19:54:14 | * | Jesin quit (Quit: Leaving) |
19:56:06 | * | Jehan_ joined #nim |
19:56:42 | * | Jehan_ quit (Client Quit) |
19:57:15 | * | Jesin joined #nim |
19:58:09 | * | tankfeeder quit (Quit: Leaving) |
19:58:37 | * | Jehan_ joined #nim |
20:00:32 | * | Jehan_ quit (Client Quit) |
20:02:45 | * | Demos joined #nim |
20:04:56 | * | unclechu joined #nim |
20:13:49 | * | chemist69 quit (Quit: WeeChat 1.3) |
20:18:32 | * | BitPuffin|osx joined #nim |
20:19:00 | * | Jehan_ joined #nim |
20:20:14 | * | Jehan_ quit (Client Quit) |
20:32:10 | * | yomiel_ is now known as yomiel |
20:41:34 | * | yglukhov joined #nim |
20:44:46 | federico3 | Can nimscripts be turn into proper executable scripts using a shebang? |
20:46:23 | * | yglukhov quit (Ping timeout: 264 seconds) |
20:46:54 | * | unclechu quit (Quit: Leaving.) |
20:52:44 | * | Jehan_ joined #nim |
20:54:15 | * | Jehan` joined #nim |
20:54:15 | * | Jehan_ quit (Read error: Connection reset by peer) |
21:02:39 | * | NimBot joined #nim |
21:04:04 | * | redwyn joined #nim |
21:04:34 | redwyn | hi. is adding to a seq O(1)? |
21:07:04 | * | chernozem joined #nim |
21:07:19 | chernozem | hi people |
21:07:58 | chernozem | var s: seq[seq[int]]; s.add(@[]): SIGSEGV: Illegal storage access. (Attempt to read from nil?) |
21:07:59 | redwyn | i'm solving ODEs numerically and i'm wondering wether using a seq accumulate the resulting values is sensible |
21:08:10 | chernozem | is this a bug? |
21:11:28 | baabelfish | redwyn: adding to the end of a seq is yeah |
21:11:44 | baabelfish | redwyn: it will map to c++ std::vector in the future |
21:12:16 | dom96 | chernozem: hello. You need to initialise the sequence. |
21:12:30 | dom96 | var s: seq[seq[int]] = @[] |
21:12:58 | * | enamex joined #nim |
21:13:00 | redwyn | baabelfish: so would there be another reason to use arrays instead, performance wise |
21:13:13 | chernozem | oh, thank you! |
21:13:50 | dom96 | redwyn: arrays are stored on the stack and cannot grow |
21:13:58 | dom96 | sequences are stored on the heap and can grow |
21:16:14 | redwyn | yes but it's possible to know how large an array i'd need beforehand. so i could use it. but theres now real benefit when adding to seqs is already O(1), right? |
21:16:22 | * | Jehan_ joined #nim |
21:16:28 | redwyn | i dont understand about heap/stack stuff :/ |
21:20:58 | * | Jehan_ quit (Ping timeout: 260 seconds) |
21:22:58 | baabelfish | redwyn: everything depends on the operations and it's all about tradeoffs |
21:23:32 | baabelfish | redwyn: yeah when adding/removing to/from the end |
21:23:50 | baabelfish | and if you don't care about the order you can use those and swap to do that in the middle |
21:24:09 | * | enamex quit (Ping timeout: 246 seconds) |
21:24:19 | * | gsingh93_ quit (Quit: Connection closed for inactivity) |
21:24:46 | * | boopsies is now known as boopsiesisaway |
21:26:39 | * | Mat4 quit (Quit: Konversation terminated!) |
21:27:23 | redwyn | baabelfish: alright. thanks! |
21:30:47 | baabelfish | redwyn: https://en.wikipedia.org/wiki/Data_structure didn't read but I think the basics are covered here and in the linked examples |
21:36:07 | * | redwyn left #nim (#nim) |
21:39:27 | Araq | Amrykid: just make a PR |
21:40:21 | Araq | federico3: not yet, we need to use a different syntax for source code filters asap |
21:40:52 | Araq | OnO: PRs welcome but we need a deprecation path for this |
21:46:58 | chernozem | i think compiler should warn about use of uninitialized variable in that case. |
21:47:39 | Araq | chernozem: yeah it's a very common gotcha |
21:47:53 | onionhammer | araq, nim-templates :P |
21:47:58 | Araq | there is work ongoing to fix exactly that |
21:48:10 | Araq | onionhammer: lexim :P |
21:48:20 | onionhammer | https://github.com/onionhammer/nim-templates |
21:48:35 | Araq | oh now I get it :P |
21:49:10 | Araq | I still love my source code filters and I don't want to rewrite my perfectly fine code |
21:49:39 | Araq | replacing #! with #? is acceptable, rewriting it to use your nim-templates is not |
21:50:11 | onionhammer | syntax filters ugly :P |
21:50:19 | dom96 | Agreed |
21:50:25 | dom96 | syntax filters need to be prettier |
21:50:34 | dom96 | Time to paint that bikeshed pink! ;) |
21:51:45 | Araq | dom96: reviewed my nimble pr? |
21:51:48 | Araq | :P |
21:51:56 | dom96 | I've got bigger fish to fry |
21:52:15 | * | gmpreussner|work joined #nim |
21:56:00 | Araq | well i can always merge it on my own |
21:56:23 | dom96 | No, you can't. |
21:56:35 | dom96 | Because I will be angry if you do. |
21:56:39 | * | Sembei joined #nim |
21:58:39 | Araq | the nimscript-nimble interaction has already been documented |
21:59:52 | * | chernozem quit (Quit: Page closed) |
22:03:51 | * | Sembei quit (Ping timeout: 252 seconds) |
22:04:26 | * | FedeOmoto quit (Quit: Leaving) |
22:25:29 | Amrykid | Araq, already working on it. thank you |
22:25:52 | NimBot | nim-lang/Nim devel f405876 Andrey Sobolev [+0 ±1 -0]: add text modification proc |
22:25:52 | NimBot | nim-lang/Nim devel a534434 Andrey Sobolev [+0 ±1 -0]: allow to delete xmlnode childs |
22:25:52 | NimBot | nim-lang/Nim devel 4e57ea9 Andrey Sobolev [+1 ±12 -0]: Merge remote-tracking branch 'upstream/devel' into improve-xmltree |
22:25:52 | NimBot | nim-lang/Nim devel 7ff87df Dominik Picheta [+0 ±1 -0]: Merge pull request #3298 from haiodo/improve-xmltree... 2 more lines |
22:26:12 | dom96 | hey Amrykid |
22:26:17 | dom96 | You back in Nim land? |
22:33:16 | Amrykid | dom96, I lurk |
22:33:30 | Amrykid | watch from the shadows |
22:33:49 | Varriount | Araq, dom96: I think syntax filters are fine they way they are. |
22:34:40 | Varriount | It's familier to the ones I've encountered in Python, anyway (not that I've encountered a huge number) |
22:41:30 | * | vendethiel quit (Ping timeout: 240 seconds) |
22:43:23 | Araq | Varriount: it's just about replacing #! by #? so that unix guys can continue to think they matter ;-) |
22:43:59 | * | Demon_Fox joined #nim |
22:44:48 | Varriount | Araq: Well, if we're going to make minor syntactic changes, I vote for changing the pragma syntax to `[/pragmas/]` |
22:44:59 | dom96 | I don't like the usage of # |
22:44:59 | Varriount | That way I don't have to push the shift key. |
22:46:14 | Araq | Varriount: [/ /] is much harder to type on german keyboards |
22:46:42 | Varriount | Oh? |
22:47:18 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:47:21 | Varriount | dom96: Would you prefer '<% code %>'? |
22:47:55 | dom96 | just something that isn't # |
22:48:01 | Varriount | dom96: https://wiki.python.org/moin/Cheetah |
22:58:17 | Varriount | Araq: Ever considered using something xpath-like for term-rewriting macros? |
22:59:06 | * | keyle joined #nim |
23:01:04 | Araq | Varriount: not really. "xpath-like" screams "slow" |
23:02:37 | * | bendiken quit () |
23:08:54 | Araq | but thinking about it #! is fine, it's a nim shebang unless a / follows, then it's a unix shebang |
23:17:34 | * | gokr_ quit (Quit: IRC for Sailfish 0.9) |
23:18:06 | * | rollo joined #nim |
23:23:12 | * | Varriount quit (Ping timeout: 264 seconds) |
23:31:41 | * | jaco60 quit (Quit: Leaving) |
23:34:09 | keyle | Morning |
23:42:09 | * | yglukhov joined #nim |
23:46:32 | * | yglukhov quit (Ping timeout: 250 seconds) |
23:50:47 | * | X67r quit (Quit: leaving) |
23:54:13 | * | Varriount joined #nim |
23:57:00 | * | keyle quit (Quit: http://twitter.com/keyle/) |
23:58:35 | * | irrequietus quit () |