<< 07-07-2014 >>

00:01:09*boydgreenfield joined #nimrod
00:01:12*ics quit (Read error: Connection reset by peer)
00:01:58*ics joined #nimrod
00:08:52*lorxu joined #nimrod
00:09:13*brson quit (Ping timeout: 272 seconds)
00:10:22*brson joined #nimrod
00:24:42*boydgreenfield quit (Quit: boydgreenfield)
00:38:46*Swammy joined #nimrod
00:59:18*boydgreenfield joined #nimrod
01:15:58*brson quit (Quit: leaving)
01:19:26*ARCADIVS quit (Quit: WeeChat 0.4.3)
01:23:45*gsingh93_ joined #nimrod
01:25:55*xenagi joined #nimrod
01:28:26*boydgreenfield quit (Quit: boydgreenfield)
01:29:46*lorxu quit (Remote host closed the connection)
01:31:33*q66 quit (Quit: Leaving)
01:37:08*krusipo_ quit (Ping timeout: 240 seconds)
01:41:21*Varriount|Mobile quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
01:42:08*boydgreenfield joined #nimrod
01:43:53*xtagon joined #nimrod
01:53:29*superfunc joined #nimrod
01:54:46*lorxu joined #nimrod
01:58:03*boydgreenfield quit (Quit: boydgreenfield)
02:15:27*saml_ quit (Ping timeout: 255 seconds)
02:21:44*ics quit (Ping timeout: 252 seconds)
02:23:07*ics joined #nimrod
02:27:55*saml_ joined #nimrod
02:45:04*xenagi quit (Quit: Leaving)
03:05:57*saml_ quit (Ping timeout: 248 seconds)
03:13:41*ics quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
03:40:33*superfunc quit (Ping timeout: 240 seconds)
03:53:06*Varriount|Mobile joined #nimrod
03:54:53Varriount|Mobiledom96: The forum is down
04:22:06*ARCADIVS joined #nimrod
04:27:16*superfunc joined #nimrod
04:32:20Swammyright?
04:35:33*gkoller1 quit (Ping timeout: 248 seconds)
04:55:29*superfunc quit (Ping timeout: 272 seconds)
05:01:32*BitPuffin quit (Ping timeout: 264 seconds)
05:05:24*ARCADIVS quit (Ping timeout: 260 seconds)
05:15:35*boydgreenfield joined #nimrod
05:18:30*superfunc joined #nimrod
05:32:29*MrVagabond joined #nimrod
05:37:28*ARCADIVS joined #nimrod
05:46:32*xtagon quit (Ping timeout: 264 seconds)
05:49:36*BitPuffin joined #nimrod
05:59:47*gkoller joined #nimrod
06:03:03*MrVagabond quit (Quit: WeeChat 0.4.3)
06:05:08*Varriount|Mobile quit (Ping timeout: 264 seconds)
06:05:28*kshlm joined #nimrod
06:06:08*flaviu quit (Ping timeout: 252 seconds)
06:20:45*Skrylar joined #nimrod
06:28:58*boydgreenfield quit (Quit: boydgreenfield)
06:42:20*superfunc quit (Ping timeout: 264 seconds)
06:55:11*dom96_ios joined #nimrod
06:56:03dom96_iosWell i restarted the forum, it feels a bit slow though
06:56:20dom96_iosI'm in a train though so i can't do much about that.
06:56:37*dom96_ios quit (Client Quit)
07:55:48*gkoller quit (Quit: gkoller)
07:56:12*gkoller joined #nimrod
08:04:26flyxfowl: are there people who *want* to be a “master of tests”?
08:10:47*gkoller left #nimrod (#nimrod)
08:11:16*feuloren joined #nimrod
08:41:33*feuloren quit (Ping timeout: 240 seconds)
08:59:33*gsingh93_ quit (Quit: Connection closed for inactivity)
09:03:09*BitPuffin quit (Ping timeout: 255 seconds)
09:10:52*kunev joined #nimrod
09:16:27*BitPuffin joined #nimrod
09:28:27*Swammy quit (Ping timeout: 272 seconds)
09:57:49*utkan joined #nimrod
10:20:54*Trustable joined #nimrod
10:24:53*utkan quit (Ping timeout: 248 seconds)
10:57:21*Ven joined #nimrod
10:58:54*Ven is now known as vend
11:02:33*feuloren joined #nimrod
11:04:46*ARCADIVS quit (Quit: WeeChat 0.4.3)
11:15:13*vend quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
11:32:16*kshlm quit (Ping timeout: 260 seconds)
11:50:09*utkan joined #nimrod
12:09:11*ics joined #nimrod
12:17:41*Ven joined #nimrod
12:26:25*untitaker quit (Ping timeout: 272 seconds)
12:29:58*Amrykid quit (Ping timeout: 252 seconds)
12:29:58*Araq quit (Ping timeout: 252 seconds)
12:30:24*Araq_bnc joined #nimrod
12:31:54*Amrykid joined #nimrod
12:32:36*untitaker joined #nimrod
12:34:09*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:35:44*lorxu quit (Ping timeout: 264 seconds)
12:37:38*Varriount|Mobile joined #nimrod
12:40:50*Ven joined #nimrod
12:59:24*flaviu joined #nimrod
13:11:35*utkan quit (Quit: Lingo - http://www.lingoirc.com)
13:11:51*utkan joined #nimrod
13:29:17*Varriount|Mobile quit (Remote host closed the connection)
13:29:30*Varriount|Mobile joined #nimrod
13:29:30*utkan quit (Read error: Connection reset by peer)
13:32:47*Varriount-Mobile joined #nimrod
13:36:35*Varriount|Mobile quit (Ping timeout: 252 seconds)
13:42:03*feuloren quit (Ping timeout: 240 seconds)
13:44:02*darkf quit (Quit: Leaving)
13:45:45*Varriount-Mobile quit (Read error: Connection reset by peer)
14:43:41*BitPuffin quit (Ping timeout: 252 seconds)
14:47:09*utkan joined #nimrod
14:56:59*Demos joined #nimrod
15:09:48*ics quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
15:11:08*utkan quit (Quit: Computer has gone to sleep.)
15:38:44*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:38:56*icebattl1 quit (Remote host closed the connection)
15:43:41OrionPKwe
15:43:42OrionPKwell
15:43:46OrionPKif anyone wants to wrap RakNet
15:43:49OrionPKit's open source now!
15:43:49OrionPKhttps://github.com/OculusVR/RakNet
15:44:15OrionPKhttps://github.com/onionhammer/clibpp
15:47:32*Ven joined #nimrod
16:17:19*BitPuffin joined #nimrod
16:37:22*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:38:23*kunev quit (Quit: leaving)
16:56:36*q66 joined #nimrod
17:04:34*brson joined #nimrod
17:08:53*Matthias247 joined #nimrod
17:17:42*Araq_bnc is now known as Araq
17:38:37*boydgreenfield joined #nimrod
17:42:50*ics joined #nimrod
17:47:46*lorxu joined #nimrod
17:47:51lorxuHi
17:48:25lorxuIm tring to create a lib and load
17:48:45lorxuI got this:
17:49:45lorxuproc callme(s: string) {.exportc.} = echo s
17:50:22lorxuCompiled with nimrod c --app:lib
17:51:01lorxuLoad the DLL with loadlib
17:51:33lorxuAnd sym with:
17:53:07lorxuvar p = cast[proc (s: string){.stdcall.}](symaddr(ll, "callme"))
17:53:20lorxuBut p still nil
17:59:36flyxwell did you check the exported symbols of the lib binary?
18:00:18Araqyou should use .dynlib, importc: "callme" instead of loadlib
18:00:34Araqloadlib is only necessary in rare cases
18:01:03flyxalso, stdcall seems out of place as you're loading your own library.
18:01:10lorxuflyx: I'm doing that right now and callme is not there
18:01:50flyxtry adding a "*" to the callme declaration.
18:02:52*wan quit (Quit: WeeChat 0.4.3)
18:02:54lorxuflyx: didn't work
18:03:34lorxuAraq: I want to load library on runtime
18:04:36flyxhum. maybe change string to cstring?
18:06:39Araqlorxu: well you need to use .exportc, dynlib
18:06:50Araqotherwise it's not exported in the dll
18:07:04Araqyou can check that with some DLL viewer btw
18:07:23lorxuThanks
18:07:30lorxuNow work
18:08:08*utkan joined #nimrod
18:09:06lorxuAraq: thanks
18:09:06flyxthat's interesting, it doesn't work for me with exportc, dynlib
18:09:19lorxuflyx: thanks
18:10:29*Jesin quit (Quit: Leaving)
18:11:21flyxlorxu: can you paste your exact code and command line of the lib?
18:11:44*lorxu quit (Read error: Connection reset by peer)
18:11:53*lorxu joined #nimrod
18:12:49*utkan_ joined #nimrod
18:13:37flyxah wait, it *does* work, I just didn't see it
18:13:50lorxuproc callme(s: cstring) {.exportc, dynlib.} = echo s
18:14:18lorxuNice
18:16:11*utkan quit (Ping timeout: 264 seconds)
18:16:45*utkan__ joined #nimrod
18:17:51flyxnimrod misses a bunch of tutorials, like „how to do/use X in nimrod“. the existing documentation is useful, but kind of spartan.
18:18:01*Jesin joined #nimrod
18:18:44*utkan_ quit (Ping timeout: 252 seconds)
18:20:11Araqflyx: be my guest and write some docs
18:23:21flyxAraq: I could, but I'm unsure where to start
18:23:49Araq"How to build DLLs with Nimrod"
18:24:06Araqa) DLLs that are supposed to be used from other Nimrod code
18:24:21flyxsomeone hosts this nimrod-by-example things if I remember correctly
18:24:22Araqb) DLLs that work with any language, aka DLLs that expose a C interface
18:24:36lorxu:) I could help you
18:24:44Araqc) platform specific notes (calling conventions on Windows)
18:28:21flyxAraq: I'm worrying about the setup, but I think static site generation with github will work fine, it even supports nimrod syntax highlighting
18:28:59EXetoChttps://github.com/flaviut/nimrod-by-example
18:29:54dom96hi people
18:30:48EXetoCdom69 sup
18:32:28lorxuHi dom96
18:33:12Araqflyx: I prefer some reST document that we then include in the static docs
18:33:23dom96Why do people keep cloning master? https://github.com/Araq/Nimrod/issues/1335
18:33:26Araqbut a wiki page is ok too
18:33:37Araqdom96: because we tell them to do that
18:33:45flyxAraq: I am used to Markdown, but I guess reST isn't much different
18:33:58Araqno, it's totally different
18:33:59dom96Araq: where?
18:34:07AraqMarkdown is cool, reST is meh
18:34:16dom96oh on the website.
18:34:18dom96God damn it.
18:34:20Araqthey share lots of syntax though ... :P
18:34:48Araqdom96: well you know ... building from master should simply work
18:35:39Araqalso ... making aporia dependent on the devel version of json wasn't the best idea either
18:36:01dom96Not Aporia, babel.
18:36:12Araqah yeah, typo
18:36:16dom96Well... you said a new release would happen.
18:36:48Araqwell ... I'm fixing VM bugs
18:37:21flyxAraq: Markdown would be okay then? it's easier to push on a github page
18:37:38dom96I guess we need a devel branch on the C sources repo then...
18:37:56dom96or actually
18:37:57Araqdom96: no, we should backport stuff to master
18:38:08dom96NimBuild should take care of that
18:41:59*lorxu quit (Read error: Connection reset by peer)
18:42:11*lorxu joined #nimrod
18:43:32*Trustable quit (Ping timeout: 264 seconds)
18:55:21*Trustable joined #nimrod
18:55:36*flaviu quit (Ping timeout: 260 seconds)
18:56:04*ics quit (Ping timeout: 260 seconds)
18:57:34*gsingh93_ joined #nimrod
18:59:10*ics joined #nimrod
19:02:44*flaviu joined #nimrod
19:09:53*noam joined #nimrod
19:12:00*brson quit (Ping timeout: 255 seconds)
19:19:32*AndChat|226100 joined #nimrod
19:19:32*lorxu quit (Read error: Connection reset by peer)
19:22:09*EXetoC quit (Quit: WeeChat 0.4.3)
19:28:18*ics quit (Ping timeout: 240 seconds)
19:33:21*Trustable1 joined #nimrod
19:33:51*ics joined #nimrod
19:33:52*Trustable quit (Ping timeout: 260 seconds)
19:47:45*aochagavia joined #nimrod
19:50:11dom96hi aochagavia
19:50:24aochagaviahi
19:51:29aochagaviawhere can I find the code of the standard library?
19:57:11*aochagavia quit (Quit: Page closed)
20:00:43*brson joined #nimrod
20:00:43*AndChat|226100 quit (Read error: Connection reset by peer)
20:00:59*lorxu joined #nimrod
20:01:27*ics quit (Ping timeout: 245 seconds)
20:01:57*Skrylar quit (Ping timeout: 248 seconds)
20:02:14*Skrylar joined #nimrod
20:02:26*fl1pflop joined #nimrod
20:05:43*ics joined #nimrod
20:09:13*boydgreenfield quit (Quit: boydgreenfield)
20:13:34fowlflyx, well, you are writing good tests for the vm, testmaster
20:26:36*boydgreenfield joined #nimrod
20:30:58*lorxu quit (Read error: Connection reset by peer)
20:31:01*AndChat|226100 joined #nimrod
20:34:38*Mat3 joined #nimrod
20:34:40Mat3hello
20:34:52Skrylarhi Mat3
20:35:06Mat3hi Skrylar
20:35:46*utkan__ is now known as utkan
20:36:34*lorxu joined #nimrod
20:37:53Araqhi Mat3
20:38:05*boydgreenfield quit (Quit: boydgreenfield)
20:39:49*AndChat|226100 quit (Ping timeout: 248 seconds)
20:40:02*skyfex_ quit (Quit: Lingo - http://www.lingoirc.com)
20:40:08*Jesin quit (Ping timeout: 260 seconds)
20:41:23*lorxu quit (Ping timeout: 264 seconds)
20:41:23*utkan quit (Ping timeout: 264 seconds)
20:43:42*Johz joined #nimrod
20:43:58Mat3hello Araq
20:51:28*ics quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
20:56:01*boydgreenfield joined #nimrod
21:00:57*brson quit (Ping timeout: 256 seconds)
21:03:01*brson joined #nimrod
21:07:04*dLog_ joined #nimrod
21:08:10*dLog quit (Read error: Connection reset by peer)
21:10:54Mat3ciao
21:10:57*Mat3 quit (Quit: Verlassend)
21:14:34*atlithorn joined #nimrod
21:22:17*Johz quit (Quit: Leaving)
21:24:20*fl1pflop quit (Quit: fl1pflop)
21:27:08Araqthe question is ... will flyx be able to understand my VM patches and then I can work on something else instead ... :-)
21:29:51VarriountAraq: Depends, are you going to document your changes?
21:30:07*Varriount passes Araq a slice of Angel Cake
21:30:19Araqnot the changes, that's rather pointless
21:30:37Araqbut I'm keeping notes about the invariants etc.
21:34:28VarriountAraq: What issues are open that you think I can solve?
21:35:29Araqwell I never got the PR that fixes 'high' for JS ...
21:35:47atlithornforum down :(
21:36:02Araqagain?
21:36:19VarriountAraq: I have it, however I think it might break other things.
21:41:02AraqVarriount: bug #542 is no codegen bug, but a system.nim bug
21:41:12Araqthat was my last analysis at least
21:41:25Araqso it should be rather easy to fix
21:44:25Araqand fix #1328 but this might require to fix pragma handling first
21:51:50*flaviu quit (Remote host closed the connection)
21:56:15VarriountAraq: for bug #542, what kind of behavior should arrays have when given reversed bounds?
22:03:05Araqcheck at compile time that low(array) is not negative and then do the same as is done for seqs
22:05:50VarriountAraq: Using isStatic?
22:06:38*utkan joined #nimrod
22:06:42Araqwhen low(T) < 0: {.error: "use sane array bounds for this".}
22:07:27VarriountAre we abandoning negative indice support for arrays?
22:07:46Araqfor slicing, yes.
22:13:10*brson quit (Ping timeout: 240 seconds)
22:14:12*lorxu joined #nimrod
22:15:24*nande joined #nimrod
22:17:33*utkan quit (Ping timeout: 240 seconds)
22:38:44*brson joined #nimrod
22:42:29*lorxu quit (Ping timeout: 248 seconds)
22:42:29*atlithorn quit (Quit: atlithorn)
22:43:58*brson quit (Ping timeout: 240 seconds)
22:49:17*Jesin joined #nimrod
22:50:58*atlithorn joined #nimrod
22:57:11*drs joined #nimrod
22:57:51Araqhi drs welcome
22:58:15*brson joined #nimrod
23:00:32drsthanks araq, i have a question about the csources and the different numbers like 1_1, 1_2, 2_1, 2_2
23:02:27drsaraq, i see in you commit to it, that 2_7 looks like a powerpc backend, but i think it's only for linux
23:03:03Araqthe obfuscation is meant to prevent bug reports like "omg, it uses some files of Linux x86 for Linux powerpc"
23:03:48Araqif the C files end up being identical we remove duplicates to save space
23:03:57*darkf joined #nimrod
23:04:06Araqthis used to work much more effectively
23:04:51AraqI don't know why it doesn't anymore, but with the planned C code generator changes it'll work much better again anyway
23:05:52*Matthias247 quit (Read error: Connection reset by peer)
23:06:05Araqdoes that answer your question?
23:08:08drswell, 2_6 is for linux/mips, and 2_7 is for linux/powerpc but why does the mips directory have so many more files?
23:12:01drswell, i'm trying to make a powerpc build for OpenBSD :) seems like i can just copy the 7_1 stuff to 7_3 and change some defines in platform.c
23:12:11drsand see what breaks :)
23:18:48Araqjust regenerate it
23:19:16drsi'm not sure how to do that
23:20:05*superfunc joined #nimrod
23:20:46*Trustable1 quit (Quit: Leaving)
23:22:04drshow would i regenerate those csources ?
23:23:16Araqkoch csources -d:release
23:23:19AraqI think
23:23:59*atlithorn quit (Quit: atlithorn)
23:29:07*atlithorn joined #nimrod
23:36:20*Varriount|Mobile joined #nimrod
23:38:07drshmm, I think I have a bit of a chicken and egg problem then.. as I am trying to build koch
23:38:27drscan I cross compile?
23:49:07Araqsure
23:49:25Araqit's even documented
23:55:43*atlithorn quit (Quit: atlithorn)