<< 10-02-2015 >>

00:02:22*brson quit (Ping timeout: 245 seconds)
00:09:45*vendethiel quit (Ping timeout: 252 seconds)
00:10:52*vendethiel joined #nim
00:11:07*Trustable quit (Quit: Leaving)
00:13:48*Matthias247 quit (Read error: Connection reset by peer)
00:24:38Mat4-codingciao
00:24:56*Mat4-coding quit (Quit: Verlassend)
00:31:57*vendethiel quit (Ping timeout: 246 seconds)
00:32:20onionhammerAraq repro.py reproduces the issue i was running into
00:32:36onionhammerthe behavior seems to vary a lot depending on which project file you choose
00:32:38Araqonionhammer: excellent
00:32:59*vendethiel joined #nim
00:33:05Araqcan you give the lnk again plz?
00:33:09onionhammersure
00:33:33onionhammerhttps://github.com/onionhammer/onion-nimrod/tree/master/tests
00:33:42onionhammeryou need that whole directory really
00:38:06Araqso ... it works much better now than before?
00:38:23Araqor still unusable?
00:42:41onionhammerit works much better now for sure
00:43:25onionhammerbut its still a bit flakey because you initialize it for differnet files and it behaves very differently
00:43:30onionhammereven if all the files are in the same directory
00:43:40onionhammerflakey in that regard i guess
00:44:27Araqwell there is still a bug with this "consider it a graph" idea
00:44:41AraqI think
00:44:42onionhammeralso you can see if you run repro.py
00:44:44onionhammerdef-: skTypelist.NodeNode/Users/erikoleary/Documents/onion-nimrod/tests/list.nim44""
00:44:59onionhammerdef "/Users/erikoleary/Documents/onion-nimrod/tests/list.nim":15:22 comes back with a response once
00:45:11onionhammerbut then it gives no result subesequent tries
00:49:00*Jesin joined #nim
00:53:41Araqwell I cannot run python, so I can't test it.
00:53:49Araq(just kidding)
00:54:05Araqseriously, I will look at it later, have some more pressing stuff to fix
00:56:09*reem quit (Remote host closed the connection)
00:56:13*springbok quit (Ping timeout: 245 seconds)
00:56:41*reem joined #nim
00:57:05*VinceAddons quit (Read error: Connection reset by peer)
01:00:48*reem quit (Ping timeout: 245 seconds)
01:11:14onionhammersure thanks
01:13:06*reem joined #nim
01:13:35*brson joined #nim
01:15:14*vendethiel quit (Ping timeout: 245 seconds)
01:17:40*vendethiel joined #nim
01:39:26*vendethiel quit (Ping timeout: 265 seconds)
01:41:26*vendethiel joined #nim
01:49:48*Demon_Fox joined #nim
01:51:10*superfunc|lab joined #nim
02:04:20*darkf joined #nim
02:07:05*gsingh93 joined #nim
02:12:49*JinShil joined #nim
02:17:57*davidhq joined #nim
02:21:13*syrobee joined #nim
02:24:53*vendethiel quit (Ping timeout: 252 seconds)
02:29:50*vendethiel joined #nim
02:30:36*kapil__ joined #nim
02:32:32*flaviu quit (Read error: Connection reset by peer)
02:33:05*keyle quit (Quit: leaving)
02:35:48*flaviu joined #nim
02:41:27*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
02:43:44*Demon_Fox quit (Ping timeout: 252 seconds)
02:45:02*Demon_Fox joined #nim
02:51:05*joecodes joined #nim
02:51:39*brson quit (Ping timeout: 252 seconds)
02:54:35*jefus quit (Ping timeout: 252 seconds)
02:55:15*jefus joined #nim
03:01:25*flaviu quit (Read error: Connection reset by peer)
03:05:13*flaviu joined #nim
03:06:50*brson joined #nim
03:09:02*jefus quit (Ping timeout: 246 seconds)
03:09:35*jefus joined #nim
03:10:38*jefus quit (Max SendQ exceeded)
03:37:26*blackicebird joined #nim
03:47:54*Demos joined #nim
03:49:09*reem quit (Remote host closed the connection)
03:53:28*reem joined #nim
03:53:56*gunn quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
03:54:32*brson quit (Quit: leaving)
03:54:34*superfunc|lab quit (Ping timeout: 255 seconds)
03:55:22*nande quit (Remote host closed the connection)
03:58:01*vendethiel quit (Ping timeout: 252 seconds)
04:02:54*motorme quit (Quit: leaving)
04:05:24*boydgreenfield quit (Quit: boydgreenfield)
04:06:00*vendethiel joined #nim
04:15:57*boydgreenfield joined #nim
04:19:56*blackicebird quit (Read error: Connection reset by peer)
04:20:29*blackicebird joined #nim
04:20:56*Varriount|Mobile quit (Read error: Connection reset by peer)
04:21:01*Var|Mobile joined #nim
04:23:30*Var|Mobile quit (Read error: Connection reset by peer)
04:24:26*Var|Mobile joined #nim
04:27:48*JinShil quit (Ping timeout: 244 seconds)
04:28:10*Var|Mobile quit (Read error: No route to host)
04:28:30*Var|Mobile joined #nim
04:28:43*vendethiel quit (Ping timeout: 256 seconds)
04:31:45*wb quit (Ping timeout: 252 seconds)
04:32:13*boydgreenfield quit (Quit: boydgreenfield)
04:32:55*vendethiel joined #nim
04:33:16*Var|Mobile quit (Ping timeout: 255 seconds)
04:34:16*Var|Mobile joined #nim
04:45:13*Var|Mobile quit (Ping timeout: 264 seconds)
04:45:37*Var|Mobile joined #nim
04:46:14*reem quit (Remote host closed the connection)
04:49:46*reem joined #nim
04:51:56*wb joined #nim
04:52:28*Var|Mobile quit (Ping timeout: 245 seconds)
05:07:53*Var|Mobile joined #nim
05:08:17*reem quit (Remote host closed the connection)
05:13:21*reem joined #nim
05:16:54*gunn joined #nim
05:35:56*boydgreenfield joined #nim
05:42:46*reem quit (Remote host closed the connection)
05:43:48*Var|Mobile quit (Read error: No route to host)
05:44:40*Var|Mobile joined #nim
05:46:56*Var|Mobile quit (Read error: Connection reset by peer)
05:47:12*Var|Mobile joined #nim
05:49:25*gunn quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
05:50:23*syrobee quit (Ping timeout: 245 seconds)
05:52:07*reem joined #nim
05:52:38*syrobee joined #nim
05:55:36*gunn joined #nim
05:57:56*Var|Mobile quit (Read error: Connection reset by peer)
05:58:35*wb quit (Quit: See y'all around)
05:59:54*vendethiel quit (Ping timeout: 252 seconds)
06:00:25*boydgreenfield quit (Quit: boydgreenfield)
06:02:27*kapil__ quit (Quit: Connection closed for inactivity)
06:08:07*vendethiel joined #nim
06:09:53*boydgreenfield joined #nim
06:15:55*reem quit (Remote host closed the connection)
06:20:09*Var|Mobile joined #nim
06:21:11*reem joined #nim
06:22:07*kapil__ joined #nim
06:22:36*Var|Mobile quit (Read error: No route to host)
06:22:47*Var|Mobile joined #nim
06:25:41*Var|Mobile quit (Read error: No route to host)
06:25:59*Var|Mobile joined #nim
06:26:12*boydgreenfield quit (Quit: boydgreenfield)
06:26:46*bjz joined #nim
06:26:47*Var|Mobile quit (Read error: Connection reset by peer)
06:27:34*Var|Mobile joined #nim
06:30:33*Var|Mobile quit (Read error: Connection reset by peer)
06:31:26*bjz quit (Ping timeout: 252 seconds)
06:31:33*Var|Mobile joined #nim
06:45:18*joecodes quit (Quit: Page closed)
06:45:49*boydgreenfield joined #nim
06:48:33*woadwarrior joined #nim
06:56:23*boydgreenfield quit (Quit: boydgreenfield)
06:58:56*Var|Mobile quit (Ping timeout: 252 seconds)
07:06:20*gokr_ quit (Ping timeout: 246 seconds)
07:06:46*gokr_ joined #nim
07:09:33*Var|Mobile joined #nim
07:13:39*gokr_ quit (Remote host closed the connection)
07:13:54*gokr_ joined #nim
07:14:11*Var|Mobile quit (Ping timeout: 252 seconds)
07:20:17*davidhq joined #nim
07:20:38*Var|Mobile joined #nim
07:20:38*Var|Mobile quit (Read error: Connection reset by peer)
07:20:55*Var|Mobile joined #nim
07:20:55*Var|Mobile quit (Read error: Connection reset by peer)
07:21:09*Var|Mobile joined #nim
07:22:52*Var|Mobile quit (Read error: No route to host)
07:23:03*Var|Mobile joined #nim
07:27:49*Var|Mobile quit (Ping timeout: 264 seconds)
07:28:46*Var|Mobile joined #nim
07:31:42*bjz joined #nim
07:33:09*Var|Mobile quit (Ping timeout: 245 seconds)
07:35:53*johnsoft quit (Ping timeout: 240 seconds)
07:36:30*johnsoft joined #nim
07:37:03*gokr_ quit (Ping timeout: 245 seconds)
07:38:01*Var|Mobile joined #nim
07:38:51*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
07:39:23*chemist69 joined #nim
07:40:59*gokr_ joined #nim
07:41:22*davidhq joined #nim
07:43:30*Var|Mobile quit (Ping timeout: 246 seconds)
07:44:02*Var|Mobile joined #nim
07:46:20*Var|Mobile quit (Read error: Connection reset by peer)
07:48:02*Var|Mobile joined #nim
07:48:52*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
07:51:25*vendethiel quit (Ping timeout: 264 seconds)
07:53:38*Demos quit (Read error: Connection reset by peer)
07:55:05*chemist69 quit (Quit: leaving)
07:57:53*vendethiel joined #nim
07:57:54*Var|Mobile quit (Read error: Connection reset by peer)
07:58:10*Var|Mobile joined #nim
08:02:16*sillesta64 joined #nim
08:02:31*dumdum joined #nim
08:02:37*Var|Mobile quit (Ping timeout: 264 seconds)
08:08:36*vegai joined #nim
08:09:18*Var|Mobile joined #nim
08:11:27*Var|Mobile quit (Read error: Connection reset by peer)
08:11:43*Var|Mobile joined #nim
08:17:13*Var|Mobile quit (Ping timeout: 264 seconds)
08:19:08*vendethiel quit (Ping timeout: 246 seconds)
08:22:26*vendethiel joined #nim
08:29:53*chemist69 joined #nim
08:34:22*panzone joined #nim
08:38:39*panzone quit (Remote host closed the connection)
08:51:54*woadwarrior quit (Ping timeout: 245 seconds)
08:53:40*kuzy000_ joined #nim
08:54:32*Var|Mobile joined #nim
08:58:14*woadwarrior joined #nim
09:04:33*vendethiel quit (Ping timeout: 245 seconds)
09:07:02*vendethiel joined #nim
09:08:43*wb joined #nim
09:12:54*Trustable joined #nim
09:49:08*vendethiel quit (Ping timeout: 245 seconds)
09:53:11*vendethiel joined #nim
09:54:02*syrobee quit (Read error: Connection reset by peer)
10:02:17*Demon_Fox quit (Quit: Leaving)
10:35:37*VinceAddons joined #nim
10:39:53ekarlsodom96: you aroubnd ?
10:41:28dumdumI hate java ant build tool :(
10:41:45dumdumprogramming in xml :'(
10:42:29ekarlsodumdum: use gradle ?
10:42:33gokrHey folks
10:42:45dumdumI dont have a choice, its at work :(
10:42:48*MajorWork joined #nim
10:42:48ekarlso:D
10:43:46gokrSo... did I get this correct - Grzegorz left since he didn
10:44:05gokr't see a good plan for shared memory and threads?
10:44:47*MajorWork quit (Changing host)
10:44:48*MajorWork joined #nim
10:45:03gokrAnd also not ... a library to use Nim without a GC perhaps.
10:47:01ekarlsooh well, working on packages again (free from work atm) :P
10:50:17gokrGot a sore throat, not fun. I was hoping I could avoid getting sick this february :)
10:50:49dom96ekarlso: ys
10:50:51dom96*yes
10:51:07ekarlsodom96: could I place the Options inside a new options.nim so it could be shared ?
10:51:07dom96gokr: really hoping they eradicate the common cold in my lifetime :)
10:51:24gokrI wonder if there are any blockers for implementing shared concurrent data structures between threads
10:51:27ekarlsoif you're creating a new type for it you loose the option parsing stuff
10:52:08gokr(regarding gradha's criticism I mean)
10:54:19dom96ekarlso: yes
10:54:50dom96put it in the nimbletypes modules
10:54:52dom96*module
10:55:25*gsingh93 quit (Quit: Connection closed for inactivity)
10:55:45*BlaXpirit joined #nim
10:58:17ekarlsodom96: omg
10:58:25ekarlsothen I'm getting circular imports as well
10:58:34ekarlsonimbletypes would need packageinfo and vice versa :|
10:58:43*vendethiel quit (Ping timeout: 250 seconds)
10:59:50ekarlsoclues dom96 ?
11:00:00dom96just make it work, we can fix it later once you've created a PR
11:00:14ekarlsook :p
11:00:42*vendethiel joined #nim
11:04:08ekarlsosigh dom96 doing that stuff messes it all up
11:04:09*Var|Mobile quit (Read error: Connection reset by peer)
11:04:18*Var|Mobile joined #nim
11:10:01*Var|Mobile quit (Ping timeout: 264 seconds)
11:11:19*kashyap_ joined #nim
11:12:03kashyap_What's a good way to write out png's? I can see nimlibpng in the unofficial list - is that the way to go?
11:12:21*Var|Mobile joined #nim
11:13:18kashyap_I'd prefer to use something that is part of of Nim by default
11:13:51ekarlsodom96: this is a bit f00ked, if I have options there it's a mess :P
11:13:52kashyap_my requirement is to draw diagrams and generate png's
11:14:47kashyap_I could directly use libpng if that's better
11:16:17dom96kashyap_: graphics module perhaps?
11:16:58gokrJust read Araq's two blog articles on concurrency - although I admit to skimming a bit.
11:17:07kashyap_dom96 - you mean sdl?
11:17:19dom96yeah
11:17:24gokrAnyone worked with those things he describes? shared, guarded, lock etc etc
11:18:22kashyap_got it
11:18:42kashyap_I see sdl_image may just be the thing I am looking for
11:19:52Triplefoxsdl_image doesn't write things
11:20:12kashyap_oh oh!
11:20:31kashyap_I see a writebmp
11:20:44Triplefoxyeah i just went through this...wrote a little bmp32 writer for myself because the sdl thing is bmp24 only
11:21:10Triplefoxother formats would be nice but not strictly necessary for me rn
11:21:11kashyap_does bmp24 support transparency?
11:21:28Triplefoxnot afaik
11:21:42kashyap_okay.
11:21:49*dumdum quit (Ping timeout: 256 seconds)
11:22:01Triplefoxwith bmp32 the format technically supports transparency with different channel layouts however most tools only understand bgra8888 iirc
11:23:11kashyap_okay I could live with another tool to transform the bmp into png for now
11:23:19ekarlsodom96: I'm thinking I need to place Options type in the same module as Config ...
11:23:26ekarlsoif not they seem to break each other
11:25:09*Var|Mobile quit (Ping timeout: 250 seconds)
11:25:25Triplefoxkashyap_: you may use my code https://gist.github.com/triplefox/d3d7e7f61d99a5aafc68
11:25:42kashyap_Thanks Triplefox
11:28:47BlaXpirithttp://blaxpirit.github.io/nim-csfml/csfml_graphics.html#saveToFile,Image,cstring
11:28:57BlaXpiritthis can write images, kashyap_
11:29:08BlaXpiritmay be too heavyweight.
11:30:22kashyap_I'll check it out anyway ... thanks BlaXpirit
11:31:23BlaXpirityou can even draw on a RenderTexture, then copyToImage
11:37:26ekarlsowhat does it mean when you string / string
11:38:43BlaXpiritekarlso, maybe join path?
11:39:15BlaXpiritthis? http://nim-lang.org/os.html#/,string,string
11:39:20BlaXpiritso hacky, wow
11:40:14BlaXpiritwell it's ok
11:40:56ekarlso:P
11:42:44ekarlsogawd
11:42:50ekarlsonimble on a corp net sucks so bad :|
11:43:23def-ekarlso: just clone the repos you need and do "nimble install" in that directory?
11:43:47ekarlsodef-: still, would be uber to have a http_proxy support thingie :D
11:43:54def-ekarlso: yes, definitely
11:46:02ekarlsohmm, I wonder if it's possible to create a httpclient object where you could set diff settings
11:46:37ekarlsothat's only possible with asyncclient ? :|
11:48:01ekarlsowould be uber if we could have something a'la newClient() for non-async stuff as well
11:48:08ekarlsowhere you could set diff settings
11:48:24def-no, you an set proxy with non-async http client too
11:49:09ekarlsodef-: yeah, but you need to pass in each option on each call which imho is kinda wrong vs having a higher level thing that holds that for you :p
11:49:39*OnwardEuler joined #nim
11:50:16def-ekarlso: i really don't see why httpclient would need to do that. maybe as an abstraction on top it could be done
11:50:32ekarlsodef-: probably ;P
11:54:07*davidhq joined #nim
11:57:44*Var|Mobile joined #nim
12:05:43ekarlsouhmmms, does nimble use the proxy for http and https then or ?
12:05:54ekarlsomy proxy gives me bad request when using it in nim
12:07:04*reem quit (Remote host closed the connection)
12:09:29ekarlsohmmm, I'm wondering if I need to do something special for it to work towards ssl ?
12:14:13ekarlsoif anyone cares then: https://bpaste.net/show/1e9b34487619
12:15:52*arc619 joined #nim
12:16:35OnwardEulerAre there any roguelikes written in nim?
12:16:59OnwardEulerI'm half way through one and I'm a little stuck, looking for some inspiration
12:31:24*vendethiel quit (Ping timeout: 244 seconds)
12:32:36*vendethiel joined #nim
12:33:30def-OnwardEuler: haven't seen one
12:34:41OnwardEulerWell then! I guess I might just have an answer to that XD
12:34:57OnwardEulerfirst a game, then a library
12:34:58*Var|Mobile quit (Ping timeout: 245 seconds)
12:35:38BlaXpiritwhat is a "roguelike" anyway
12:35:41BlaXpiritis this text only?
12:35:45OnwardEulercan be
12:35:57OnwardEulerI was specifically going to text based
12:36:25OnwardEulerbut any game where there is a random world with random interaction, permadeath and elements of rpg ends up being a roguelike
12:36:29OnwardEulerlook into nethack
12:36:41OnwardEulerthey have a text and a graphical vers
12:36:47OnwardEulerfor android inclusively
12:49:56*jasondotstar quit (Read error: Connection reset by peer)
12:50:35*Var|Mobile joined #nim
12:50:54*jasondotstar joined #nim
12:53:25*Var|Mobile quit (Read error: Connection reset by peer)
12:55:03*Var|Mobile joined #nim
12:56:40*dumdum joined #nim
12:59:28*Var|Mobile quit (Ping timeout: 250 seconds)
13:16:36*vendethiel quit (Ping timeout: 252 seconds)
13:20:56*Var|Mobile joined #nim
13:22:21blackicebirdhi, i'm following this guide to test call nim from c http://nim-lang.org/backends.html#backend-code-calling-nim
13:22:46*vendethiel joined #nim
13:23:03blackicebirdbut i can't pass gcc -std=c99 -o m -Inimcache -I/E/opt/Nim/lib nimcache/*.c maths.cgcc -std=c99 -o m -Inimcache -I/E/opt/Nim/lib nimcache/*.c maths.c
13:23:41blackicebirdthe errors: nimcache/stdlib_system.c: In function 'cpurelax_14601':
13:23:41blackicebirdnimcache/stdlib_system.c:6857:2: error: 'asm' undeclared (first use in this func
13:23:41blackicebirdtion)
13:23:41blackicebird asm volatile("pause" ::: "memory");
13:23:41blackicebird ^
13:23:43blackicebirdnimcache/stdlib_system.c:6857:2: note: each undeclared identifier is reported on
13:23:45blackicebirdly once for each function it appears in
13:23:47blackicebirdnimcache/stdlib_system.c:6857:6: error: expected ';' before 'volatile'
13:23:49blackicebird asm volatile("pause" ::: "memory");
13:23:51blackicebirdany idea? thanks!
13:24:39blackicebirdnimcache/stdlib_system.c: In function 'cpurelax_14601':
13:24:39blackicebirdnimcache/stdlib_system.c:6857:2: error: 'asm' undeclared (first use in this func
13:24:39blackicebirdtion)
13:24:39blackicebird asm volatile("pause" ::: "memory");
13:24:39blackicebird ^
13:24:40blackicebirdnimcache/stdlib_system.c:6857:2: note: each undeclared identifier is reported on
13:24:43blackicebirdly once for each function it appears in
13:24:45blackicebirdnimcache/stdlib_system.c:6857:6: error: expected ';' before 'volatile'
13:24:47blackicebird asm volatile("pause" ::: "memory");
13:24:50blackicebirdNim Compiler Version 0.10.2 (2014-12-30) [Windows: i386]
13:26:39blackicebirdim using windows7 and mingw, but i tried it on ubuntu, the errors:
13:26:47blackicebirdmaths.c:(.text+0x17): undefined reference to `fib'
13:26:47blackicebirdcollect2: error: ld returned 1 exit status
13:27:03blackicebird:(
13:27:30blackicebirdany body ? any idea?
13:27:31dumdumHi blackicebird, you can use pastebin for large messages :)
13:28:00blackicebirdonly these messages
13:28:03blackicebirdnot too long
13:28:11*gunn quit (Ping timeout: 256 seconds)
13:29:29blackicebirdit looks my env problem, but i have no idea which part was wrong
13:32:55*dafineman joined #nim
13:35:56*Var|Mobile quit (Ping timeout: 246 seconds)
13:37:21*Var|Mobile joined #nim
13:45:54*chemist69 quit (Quit: leaving)
13:53:45dafinemandom96: You're in highschool? As in '96? That would explain the amount of time you seem to have.
14:01:06*jefus joined #nim
14:01:47Araqhi dafineman, welcome
14:02:03Araqblackicebird: get a GCC that knows about the 'asm' keyword?
14:02:34blackicebirdgcc.exe (i686-win32-dwarf-rev1, Built by MinGW-W64 project) 4.9.1
14:02:45blackicebirdok, i will try it
14:05:56blackicebirdim using gcc that installed by nim: /E/opt/Nim/dist/mingw/bin/gcc.exe
14:09:29Araqare you sure it doesn't pick a different gcc from your PATH?
14:10:47Araqyour path suggests that you use some stupid cygwin shell ... ;-)
14:10:52*federico3 joined #nim
14:10:53federico3hi
14:15:05blackicebirdoops, let me try cmd.bat
14:16:18Araqhi federico3 welcome
14:17:55federico3thank you Araq
14:26:33*vendethiel quit (Ping timeout: 256 seconds)
14:27:02blackicebirdthank you Araq, it works, some dirty tools added another gcc in my path :D
14:29:30blackicebirdI will try it on Ubuntu again
14:29:40*vendethiel joined #nim
14:35:15federico3what are nimrod_icon.o and koch_icon.o in the source zip archive?
14:35:52federico3icons embedded in object files?
14:36:37Araqfederico3: yes
14:37:03federico3is there a way to generate them at build time?
14:42:07*martindines joined #nim
14:42:15*martindines left #nim ("Textual IRC Client: www.textualapp.com")
14:42:42Araqmaybe. who cares. git can manage 2 binary files of size 35KB that never change
14:49:14*woadwarrior quit (Quit: quit)
14:52:01*vendethiel quit (Ping timeout: 255 seconds)
14:59:19*vendethiel joined #nim
15:07:55*BlaXpirit_ joined #nim
15:10:23*BlaXpirit quit (Ping timeout: 245 seconds)
15:20:23*dumdum quit (Ping timeout: 256 seconds)
15:22:09dom96dafineman: hi, nope.
15:24:43*darkf quit (Quit: Leaving)
15:29:58*dafineman quit (Ping timeout: 245 seconds)
15:33:01*Gonzih quit (Ping timeout: 250 seconds)
15:38:12*blackicebird quit (Ping timeout: 245 seconds)
15:56:29*dumdum joined #nim
15:56:57*Gonzih joined #nim
16:03:14*vendethiel quit (Ping timeout: 246 seconds)
16:04:50*vendethiel joined #nim
16:12:27*kapil__ quit (Quit: Connection closed for inactivity)
16:25:44*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
16:26:22*davidhq joined #nim
16:27:15*vendethiel quit (Ping timeout: 256 seconds)
16:28:01*davidhq quit (Client Quit)
16:31:39*vendethiel joined #nim
16:34:57*trevorriles quit (Quit: bye bye)
16:42:17*phira quit (Excess Flood)
16:42:49*phira joined #nim
16:56:41*polde quit (Quit: q)
16:58:46*polde joined #nim
17:02:13*jfokkan joined #nim
17:06:58*Boscop_ joined #nim
17:10:30*Demos joined #nim
17:10:37*Boscop__ quit (Ping timeout: 255 seconds)
17:14:10*arc619 quit (Ping timeout: 246 seconds)
17:14:41*polde quit (Quit: q)
17:15:16*polde joined #nim
17:20:40*Demos quit (Read error: Connection reset by peer)
17:20:41*UberLambda joined #nim
17:23:16*UberLambda quit (Client Quit)
17:32:28*panzone joined #nim
17:34:09*davidhq joined #nim
17:34:45*gunn joined #nim
17:35:17*panzone_ joined #nim
17:37:06*mytrile joined #nim
17:37:31*vendethiel quit (Ping timeout: 256 seconds)
17:38:43*panzone quit (Ping timeout: 245 seconds)
17:40:13*jefus_ joined #nim
17:40:52*vendethiel joined #nim
17:43:21*alexruf joined #nim
17:43:36*alexruf quit (Client Quit)
17:43:45*jefus quit (Ping timeout: 250 seconds)
17:44:04*panzone joined #nim
17:44:10*nande joined #nim
17:44:37*panzone_ quit (Ping timeout: 250 seconds)
17:46:46*Demos joined #nim
17:47:02*johnsoft quit (Ping timeout: 264 seconds)
17:47:22*johnsoft joined #nim
17:52:05*gokr_ quit (Ping timeout: 246 seconds)
17:52:33*gokr_ joined #nim
18:00:55*mytrile1 joined #nim
18:02:27*mytrile quit (Ping timeout: 252 seconds)
18:09:05*UberLambda joined #nim
18:19:17*jefus_ is now known as jefus
18:25:06*EXetoC joined #nim
18:26:32dumdumNested procs at same level cant call each other?
18:33:22BlaXpirit_procs can't call each other without forward declaration
18:33:38BlaXpirit_you can try forward declaration, and if it doesnt work, then yeah..
18:34:08*gokr_ quit (Ping timeout: 245 seconds)
18:35:17dumdumdoesnt work, and cant even refer to vars in outer scope
18:37:35def-dumdum: post your code somewhere?
18:38:06*gokr_ joined #nim
18:39:41Araqdumdum: yeah, that doesn't work.
18:40:49*shevy left #nim ("I'll be back ... maybe")
18:44:42dumdumdef-: its nothing special, just a proc within a proc referring outer procs declared variable
18:45:33Araqhehehe
18:46:07Araqyeah "nothing special", it's just the single language feature that was most hard to implement in the whole compiler
18:46:23*johnsoft quit (Read error: Connection reset by peer)
18:46:47*johnsoft joined #nim
18:49:05dumdumIn that case I cant live without it! I will write a blog post and bye to nim :P hahaha
18:50:04*alexruf joined #nim
18:50:23Araqno, you have to leave *after* we implemented forwarding of local procs for you ;-)
18:50:45*mytrile1 quit (Read error: Connection reset by peer)
18:54:46*Demos quit (Ping timeout: 244 seconds)
18:55:30Araqalso your "leaving" has to be a synonym for "I'll keep using the language for everything that I used Python before"
18:57:59dumdum"I'll keep using the language for everything that I can"* and I was thinking today how life will be duller if nim compiler development stops
19:01:20EXetoCoh yes
19:04:10*bpr joined #nim
19:08:31Araqhi bpr
19:08:54*gsingh93 joined #nim
19:11:26bprHi Araq
19:13:31bprBTW, thanks for implementing that first (or nth) pass at closure improvements a while ago, to make the 2d quadrature from 1D example work.
19:14:28Araqlambda lifting is fun. it's incredibly complex but nobody notices it and so it doesn't affect the perceived complexity of a language
19:15:34Araqor maybe it really is simple but only the implementation is not
19:16:18EXetoCmust..use..less..bleeding-edge..stuff
19:16:22bprProper closures make the language very powerful.
19:16:33Araqor maybe I just suck at implementing them
19:17:49*panzone quit (Ping timeout: 264 seconds)
19:20:31*nande quit (Remote host closed the connection)
19:20:39*panzone joined #nim
19:20:46*gmpreussner|work joined #nim
19:25:00bprWell, the original lambda lifting stuff was in the context of a pure FPL, so I imagine you need to do more work for this in Nim.
19:27:34bprI found http://matt.might.net/articles/closure-conversion/ to be a nice discussion of issues. Anyways, it's great that Nim has them, even if they need some more work.
19:30:08bprWhy the jokes about leaving Nim? Did someone join and leave publically? I don't read the IRC frequently...
19:31:51*LinuxLefty joined #nim
19:33:21EXetoCcan static[T] proc params be replaced by anything else for now?
19:34:51EXetoCnevermind. micro-optimization is the only purpose in this case, so I'll just omit 'static'
19:35:14dumdumbpr: http://gradha.github.io/articles/2015/02/goodbye-nim-and-good-luck.html
19:36:11EXetoCoh, gradha
19:37:39*brson joined #nim
19:38:10*panzone quit (Remote host closed the connection)
19:41:02ekarlsois there some funkyness with httpclient, proxy and https endpoints ?
19:41:33ekarlsohttps://bpaste.net/show/1e9b34487619 < is failing for one if you use a http proxy
19:42:20bprThanks dumdum. That's too bad. I bet he'll be back :-)
19:48:16gmpreussner|workEXetoC: i don't know gradha's background, but he seemed knowledgeable. i'm not sure if he fully appreciates the practical problems of shared memory though. there is no silver bullet for multi-threaded programming, but from what i've learned myself over the years, shared memory is to be avoided at all cost.
19:48:48Araqyup, just to keep things balanced, this index here: http://nim-lang.org/theindex.html is mostly Gradha's excellent work
19:48:51gmpreussner|worki have not tried to experiment with Nim's take on this problem yet, but what i've read sounds promising
19:49:26Araq(yes, I know it's bloated, fixed in devel)
19:49:32EXetoCok
19:50:42Araqgmpreussner|work: also Gradha doesn't give Nim credit for the shared memory stuff that it *does* allow
19:51:14Araqfor instance, casting a 'ref' to 'ptr' to get the sharing is not impossible at all
19:51:45Araqand with the 'parallel' keyword it's not too unsafe either
19:53:05Araqnot too mention what you can always turn off warnings and use --gc:boehm which is a shared heap GC
19:53:13Araq*not to
19:53:50*panzone joined #nim
19:54:19gmpreussner|workyeah, like i said, i have not played with any of that stuff yet; hopefully soon. i guess there is low-level parallelism, such as parallel algorithms, and high-level parallelism, such as task based multithreading. i'm mostly interested in the latter right now, and my personal preference gravitates towards the Actor model and messaging between threads. that's what originally intruiged me about Go, and it's what looks promising to me in Nim.
19:54:29EXetoCgmpreussner|work: the language can't help much when it comes to shared memory?
19:56:13EXetoCI've only ever used queues
20:00:31*panzone quit (Remote host closed the connection)
20:01:48Araqdom96: master version of aporia shows the GC safety warnings problem, right?
20:04:07EXetoCbut parallelization alone is the biggest factor I guess
20:07:33dom96Araq: yes
20:09:54dom96Araq: what about that NimForum corruption?
20:10:02dom96Would be awesome if we could finally ban those spammers.
20:12:20ldleworkdid the forum get flooded?
20:13:15EXetoChave users call you as part of the registration
20:13:28dom96ldlework: a bit
20:16:43*panzone joined #nim
20:19:40Araqdom96: fixed it
20:19:56dom96cool
20:20:22gokrEvening folks
20:20:32ldleworkgokr: hi
20:21:09gokrldlework: Managed to convince any other developers at Docker to go Nim?
20:21:17ldleworkNope :/
20:22:33gokrAraq: You mentioned that ... the current take on shared memory etc is not what you described in those two blog articles - care to elaborate?
20:22:47ldleworkI was just about to ask about shared memory
20:23:04gokrldlework: You read Araq's two articles?
20:23:26ldleworkNot Araq's but that article of the guy who was leaving Nim
20:23:32ldleworkAraq has a blog?
20:23:39gokrYeah, but its a bit oldish i think
20:24:19ldleworkAh I thougnt maybe he had responded to the blog article
20:24:41*gokr battles a cat with....argh! Too sharp claws...
20:25:56ldleworkone claw sharpens the other
20:26:30gokrldlework: http://nim-lang.org/blog/
20:27:01*Matthias247 joined #nim
20:28:14*Demon_Fox joined #nim
20:29:22*UberLambda quit (Quit: Leaving the Matrix)
20:29:50ekarlsohmmm, how would one in a nim app make the db backend configurable based on the url ?
20:29:55ekarlsolike sqlite:// vs mysql:// etc
20:30:13ldleworkstrutils?
20:30:47*Demos joined #nim
20:45:32*mytrile joined #nim
20:49:13*LinuxLefty quit (Ping timeout: 250 seconds)
20:52:39*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:04:58*Demos quit (Ping timeout: 245 seconds)
21:07:11*dumdum quit (Ping timeout: 256 seconds)
21:09:14*reem joined #nim
21:10:55Araqgokr: well spawn can return a FlowVar which is a tremendous improvement over what is outlined in my blog. The details of how guards work changed and how locking levels work has been refined.
21:13:37Araq'parallel' was added.
21:15:17AraqIt's true that the GC is still thread local only and that imposes lots of restrictions, but we have to work with the technology that we have to get version 1.0 out. Restrictions can always be removed in later versions anyway, it's much harder to do it the other way round.
21:18:25*panzone quit (Remote host closed the connection)
21:18:33gokrI note that FlowVar is often also called Promise, although sometimes with slightly different semantics I guess.
21:19:29*panzone joined #nim
21:22:16*bpr quit (Quit: Page closed)
21:24:25*panzone quit (Ping timeout: 264 seconds)
21:27:22*vendethiel quit (Ping timeout: 245 seconds)
21:30:19AraqBlaXpirit_: so ... array constructors and 'discard' should be "destructible contexts", and then it works for you? or is it hopeless? ;-)
21:31:16*vendethiel joined #nim
21:34:03BlaXpirit_probably hopeless
21:34:34Araqwhy am I not surprised?
21:36:30BlaXpirit_today I realized that if you call a function supplying it a ptr object, it will be destroyed afterwards
21:42:50BlaXpirit_hm maybe not... this is too complicated
21:45:46BlaXpirit_basically, destructors really don't work well for thin wrappers around C libs
21:50:47*alexruf quit (Quit: Textual IRC Client: www.textualapp.com)
21:51:43BlaXpirit_we have this SDL wrapper
21:51:58BlaXpirit_are people really content with having to call freeSurface and whatnot?
21:52:03BlaXpirit_has anyone investigated this?
21:52:21*brson quit (Quit: leaving)
21:56:05*brson joined #nim
21:59:18*gtrundle joined #nim
21:59:22AraqBlaXpirit_: no, we're all idiots here.
21:59:31BlaXpirit_why do you say that
21:59:43ekarlsowas wondering about buying npacks.io or smth for packages website..
21:59:49*kuzy000_ quit (Ping timeout: 264 seconds)
21:59:50ekarlsoany suggestios ?
22:02:37def-ekarlso: pkgs.nim-lang.org?
22:02:50ekarlsodef-: by all means :p
22:02:57ekarlsothough I dont have access hah
22:04:10BlaXpirit_Araq, I'd like a serious reply please
22:04:40BlaXpirit_(going away for now, though)
22:04:58AraqBlaXpirit_: a serious reply to "has anyone investigated this?"?
22:05:09BlaXpirit_yes, that would be nice
22:05:23BlaXpirit_preferably with results of investigation, if any
22:06:03BlaXpirit_and by investigation i mean automatically calling free/destroy of ptr objects from C libraries
22:06:06Araqwell obviously we are aware of this problem and graphics.nim deals with it by using a 'ref' and a finalizer.
22:06:25Araqso does re.nim for regexes.
22:06:33BlaXpirit_I familiarized with graphics.nim today
22:06:43BlaXpirit_so, is anything going to be done?
22:07:18BlaXpirit_how big of a performance hit would it be to wrap everything in a ref object................
22:07:42BlaXpirit_going away for real
22:08:06flaviuFor re? Pretty much none.
22:10:03*ehaliewicz joined #nim
22:10:40*Demos joined #nim
22:10:56gtrundleFWIW, any pain I feel from forgetting to free a SDL resource is dwarfed by what a huge pain doing a high level wrapper of SDL.
22:12:18gtrundleMost of my sdl objects only live over the course of a funcall...
22:12:45Araqsurfaces are an exception to this, gtrundle
22:12:58Araqthese tend to live forever when you do it right
22:22:28gtrundleAraq: yep. For me, they have a short life on their way to becoming an opengl texture. Which is just another management problem, but not one I'd expect to solve with finalizers.
22:32:01BlaXpirit_and if finalizers really apply to the whole type only, then not even ref obj containing ptr obj would help
22:32:26BlaXpirit_because the objects don't always need to be deleted
22:32:49BlaXpirit_like when an object is given for temporary use
22:33:18BlaXpirit_somehow SFML never seems to do this, so it's like the only library where destructors are OK
22:33:45*Mat4 joined #nim
22:33:48Mat4hello
22:44:45*Var|Mobile quit (Read error: Connection reset by peer)
22:45:05*Var|Mobile joined #nim
22:45:30gtrundleAraq: I took your response to the not nil issue 2100 as "not crazy, but not important compared to open issues". That sound right? In this instance I'm not wed to the idea of using it, since it just shifts where I'm doing the nil checks.
22:47:31Araqgtrundle: the 'not nil' checking works as I intended it to work. It doesn't work as people like it to work. but it adds some limited amount of expressitivy over Option[T] so I consider it a win and good enough for version 1.0.
22:48:05AraqI'm not sure what the spec says about that feature though
22:51:49gtrundleAraq: ok, good. Thanks. Nim has come a long way since I looked last year. Impressive for a < 1.0 release.
22:51:53*wb quit (Read error: Connection reset by peer)
22:52:21*wb joined #nim
22:56:58BlaXpirit_why so much talk about 1.0 -_-
22:58:15BlaXpirit_all it means for me is an end to big improvements
22:58:41Araqfor me it means finally some holidays
22:59:52ekarlsoaround dom96 ?
23:00:07dom96ekarlso: yes
23:00:12ldleworkBlaXpirit_: lol
23:00:57dom96Araq: Holidays? There will be tons more work post-1.0.
23:01:40ekarlsodom96: should search support both registry search and old-style at the same time ?
23:01:41flaviuHigh quality libraries ^^
23:02:03flaviuekarlso: Do you still have that test server up?
23:02:10dom96ekarlso: yes
23:02:17ekarlsoflaviu: yeah
23:02:33ekarlsohttps://nim-pkg.svcs.io/
23:02:43ekarlsothough would be more fun to get pkgs.nim-lang.org
23:02:47ekarlsosomeday..
23:03:06flaviuLets work on appearance first. I'll try to get a PR together.
23:04:08ekarlsoflaviu: hah :p
23:04:24ekarlsoflaviu: it's all I could do with my time :p
23:05:09Araqekarlso: it's ugly. lol.
23:05:37Araqmaybe you should copy Rust's design? ;-) :P
23:05:44flaviuAraq: Please send a PR :P
23:05:44flaviuekarlso: Have you published jwt on nimble yet?
23:06:18Araqalso your certificate is invalid
23:06:23ekarlsoAraq: .... I already copied some of crates.io thing
23:06:35Araqbut I accepted it anyway
23:06:51ekarlsoAraq: yeah, it's a temp thing until u get me pkgs.nim-lang.org :P
23:07:47Araqnow I'm extremely careful of course. since certificates are the hallmark of good engineering
23:08:43flaviuAraq: Please don't rant about HTTPS, we all have better things to do.
23:09:25ekarlsohaha :p
23:10:29*Matthias247 quit (Read error: Connection reset by peer)
23:10:36AraqI usually stop after a couple of witty remarks these days
23:10:49Araqno more real ranting in #nim
23:11:23ekarlsoAraq: who can pull off pkgs.nim-lang.org ?
23:11:25ekarlso:p
23:11:41Araqdom96?
23:11:52*Mat4 quit (Quit: Verlassend)
23:12:14*vendethiel quit (Ping timeout: 264 seconds)
23:13:44dom96I think that website should be tested and ready for usage before it's live on pkgs.nim-lang.org
23:13:50ekarlsook ;)
23:14:02ekarlsodom96: I can host it on a vm btw..
23:14:06dom96the front page definitely needs improvement
23:14:17ekarlsovs choking your vm's
23:15:28ekarlsoI never proposed that I was good at webdesign did I now..
23:15:50flaviudom96: I accidentally pushed to nim-lang/packages. What is the correct reaction?
23:16:14flaviuI could rebase it out, but if anyone has cloned it in the last few moments, it'll cause problems for them
23:16:34*vendethiel joined #nim
23:16:36dom96flaviu: revert the commit?
23:16:43flaviuekarlso: https://github.com/nim-lang/packages/commit/94193cd2bec35b2a9ef582b5ac234e64a97d52e3
23:16:53*mytrile left #nim (#nim)
23:16:58ekarlsoseems correct :P
23:17:00flaviuis that acceptable, or do you want me to undo it. dom96: sure, I can do that
23:17:04dom96I don't know what you mean, your commit seems fine?
23:17:06flaviuok, I'll just let it be then.
23:17:18flaviuYes, but it didn't go through the github PR interface
23:17:24BlaXpirit_flaviu, some commmits seem to be gone!!@!!!
23:17:33BlaXpirit_flaviu, docopt is missing, for instance
23:17:39flaviuwell, shit.
23:17:40BlaXpirit_and a month of commits seems to be missing
23:17:47flaviuthat sounds about right
23:17:50ekarlsodoh
23:18:04dom96well.
23:18:17dom96Nice job.
23:18:47BlaXpirit_my fork says This branch is 7 commits ahead, 1 commit behind nim-lang:master
23:19:33dom96flaviu: What have you done?
23:19:41def-dom96: i guess "git push -f"
23:19:49BlaXpirit_interesting picture https://github.com/nim-lang/packages/network
23:19:54dom96yeah.
23:19:57flaviuI cloned from my branch, and thought I'd rebased on top of upstream
23:20:13flaviuI messed up the remote urls though, but I pasted the wrong url when fixing it.
23:20:15def-BlaXpirit_: wait, what did i do?^^
23:20:29BlaXpirit_def-, you?
23:21:08def-BlaXpirit_: i seem to have some branches in this picture
23:21:16def-don't remember doing anything wild with packages
23:21:19dom96flaviu: oh well, happens to the best of us.
23:21:22dom96Fix it please.
23:21:32dom96I guess def has the most recent fork?
23:21:35BlaXpirit_your branch has the most commits, def-
23:21:40flaviuworking on it.
23:21:41BlaXpirit_, something like that.../
23:21:52flaviuGithub should still have a copy of all the commits
23:21:57flaviuNo one run git gc.
23:22:15dom96awesome
23:25:07*sillesta6433 joined #nim
23:25:09*Var|Mobile quit (Read error: Connection reset by peer)
23:25:09ekarlsodom96: meh, I guess I need to do some kind of de-duplication then of the packages and versions
23:25:20ekarlsosince both packages.json and reqgistry can have the same pack
23:25:34*Var|Mobile joined #nim
23:27:09*sillesta64 quit (Ping timeout: 256 seconds)
23:28:44*shodan45 joined #nim
23:29:50ekarlsodom96: u fine with me running the site ?
23:29:59*Var|Mobile quit (Ping timeout: 256 seconds)
23:33:23flaviuIt's looking like def-'s branch is the best idea
23:35:24*Trustable quit (Quit: Leaving)
23:35:57*reem quit (Remote host closed the connection)
23:36:01def-no, my branch is bad
23:36:10def-it's not up to date maybe
23:36:16def-or maybe it is
23:36:20BlaXpirit_it seems to be up to date
23:36:24def-don't remember if anything came after that
23:36:27BlaXpirit_it is the most up to date branch, anyway
23:36:29dom96everybody check their ~/.nimble/packages.json files
23:36:30*reem joined #nim
23:36:33dom96we can always restore from those
23:36:33BlaXpirit_no pull requests after your changes
23:36:43flaviudom96: Good idea!
23:37:00BlaXpirit_i have nimsuggest after brainfuck
23:37:51BlaXpirit_so there was indeed at least 1 change
23:37:58*vendethiel quit (Ping timeout: 265 seconds)
23:38:04dom96nimsuggest is latest I think
23:38:32flaviuOk, pushed
23:39:10*reem quit (Remote host closed the connection)
23:39:19dom96https://github.com/nim-lang/packages/commit/c59f1906d9ab2d8b88088b0281c5c625322bdc9f#diff-3cd1c746ca940713759badf789478307R1142
23:39:24*Var|Mobile joined #nim
23:39:26dom96you missed something it seems
23:39:44BlaXpirit_flaviu pls https://github.com/nim-lang/packages/blob/master/packages.json#L1142
23:41:12flaviuOk, fixed. Thanks!
23:42:27*vendethiel joined #nim
23:42:30dom96Promise me you'll never execute 'git push -f' without *extremely* careful consideration. Especially on the nim-lang repos.
23:43:37ekarlsothis is why I love gerrit or so :P
23:43:43flaviudom96: I'll never use git push -f on nim-lang repos. I thought I was pushing to my personal repo. Maybe I can have a system-wide hook to warn me.
23:47:38*Var|Mobile quit (Ping timeout: 264 seconds)
23:47:51*Var|Mobile joined #nim
23:47:51*Var|Mobile quit (Read error: Connection reset by peer)
23:47:58*akiradeveloper joined #nim
23:48:11*Var|Mobile joined #nim
23:48:39akiradeveloperHow to import a struct in C that uses bit field. e.g fuse_file_info
23:48:39*Var|Mobile quit (Read error: Connection reset by peer)
23:49:01*Var|Mobile joined #nim
23:49:01*Var|Mobile quit (Read error: Connection reset by peer)
23:49:19*Var|Mobile joined #nim
23:50:01BlaXpirit_:o
23:50:02*Var|Mobile quit (Read error: Connection reset by peer)
23:50:09BlaXpirit_I forgot this was even possible
23:50:28*Var|Mobile joined #nim
23:50:40*Demos quit (Ping timeout: 255 seconds)
23:52:27Araqakiradeveloper: importc the struct from some header
23:54:20flaviudom96: I've added an apology in the readme, hopefully this doesn't cause too many problems
23:54:52dom96flaviu: Don't worry. I'm sure it'll be fine.
23:54:52*Var|Mobile quit (Ping timeout: 245 seconds)
23:55:14*Var|Mobile joined #nim
23:55:14*Var|Mobile quit (Read error: Connection reset by peer)
23:55:32*Var|Mobile joined #nim
23:56:03akiradeveloperAraq: even so, we need to copy the struct in nim code? like https://github.com/Araq/Nim/blob/master/lib/posix/posix.nim (like Tdirent) I don't know how to represent bit field in nim type
23:56:03*Var|Mobile quit (Read error: Connection reset by peer)
23:56:16*Var|Mobile joined #nim
23:56:38*reem joined #nim
23:56:38*Var|Mobile quit (Read error: Connection reset by peer)
23:57:22Araqakiradeveloper: yes, simply ignore the ': X' stuff in C
23:57:36akiradeveloperOK. I will try
23:57:53Araqthere is also a pragma planned for this of course
23:58:05Araqbut importc from a header works too