<< 04-02-2015 >>

00:00:47def-Araq: don't think so since it still failed for Demos today
00:00:59Araqdef-: well it works for me
00:01:14DemosAraq, it worked for me when I bootstraped from a newish compiler
00:01:18Demosfailed when going from csources
00:01:28Araqoh ok
00:01:33*EastByte quit (Ping timeout: 272 seconds)
00:02:11Araqwell we can always regenerate csources
00:02:34*brson quit (Quit: leaving)
00:04:00Araqgood night
00:07:58*EastByte joined #nim
00:21:12*Matthias247 quit (Read error: Connection reset by peer)
00:23:46*Jehan_ quit (Quit: Leaving)
00:32:24*dtscode quit (Quit: ZNC - http://znc.in)
00:33:40*dtscode joined #nim
00:38:07flaviuhttp://nim-lang.org/manual.html#avoiding-sql-injection-attacks is a bad example.
00:41:11flaviuActually, it's a very good example.
00:41:34flaviuI should finish reading before saying things, sorry.
00:46:56*dyu joined #nim
00:50:45*pafmaf quit (Quit: This computer has gone to sleep)
00:55:11*sampwing joined #nim
01:02:20*BlaXpirit quit (Quit: Quit Konversation)
01:19:47*gunn_ joined #nim
01:21:21*gunn quit (Ping timeout: 245 seconds)
01:37:23*polde quit (Quit: q)
01:37:38*polde joined #nim
01:39:55*polde quit (Client Quit)
01:40:11*polde joined #nim
01:45:02*EastByte_ joined #nim
01:45:04flaviuIs there some way to manually set the parent field for exceptions?
01:45:35*EastByte quit (Read error: Connection reset by peer)
01:52:04*BitPuffin joined #nim
02:00:22kashyap__thanks def- not sure if asm would help here ... I'll try
02:07:31*sampwing quit (Ping timeout: 252 seconds)
02:29:19*darkf joined #nim
02:35:35*kapil__ joined #nim
02:38:07*VinceAddons quit (Read error: Connection reset by peer)
02:41:54*Etheco- joined #nim
02:45:13*Etheco quit (Ping timeout: 250 seconds)
02:51:14*sampwing joined #nim
03:04:47*saml_ joined #nim
03:16:22*BitPuffin quit (Ping timeout: 240 seconds)
03:16:38*kashyap__ quit (Quit: Page closed)
03:42:41*nande quit (Read error: Connection reset by peer)
03:50:42*gunn_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
03:56:36*gunn joined #nim
04:14:13*brson joined #nim
04:16:47*brson quit (Client Quit)
04:18:25*sampwing quit (Ping timeout: 252 seconds)
04:26:11*gunn quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
04:27:16dtscodedom96, you should write a tutorial on async code
04:35:20*saml_ quit (Quit: Leaving)
04:36:29*brson joined #nim
04:52:55*akiradeveloper joined #nim
05:20:48*gunn joined #nim
05:23:14*BitPuffin joined #nim
05:26:28*eigenlicht quit (Quit: WeeChat 0.3.2)
05:27:15*gsingh93 joined #nim
05:28:26*BitPuffin quit (Ping timeout: 245 seconds)
05:55:19*EXetoC quit (Ping timeout: 264 seconds)
05:56:57*Jesin quit (Ping timeout: 245 seconds)
06:09:09*akiradeveloper quit (Quit: Page closed)
06:15:03*gunn quit (Remote host closed the connection)
06:16:17*gunn joined #nim
06:17:42*bjz joined #nim
06:32:01*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
06:32:39*Jesin joined #nim
06:34:55*Angry quit (Ping timeout: 264 seconds)
06:49:49*brson quit (Quit: leaving)
06:51:14*bjz joined #nim
06:54:27*BitPuffin joined #nim
06:59:49*BitPuffin quit (Ping timeout: 264 seconds)
07:05:12*Demos quit (Read error: Connection reset by peer)
07:37:24*Boscop__ quit (Quit: Boscop__)
07:41:21*chemist69 joined #nim
08:17:55*kuzy000_ joined #nim
08:40:13*BitPuffin joined #nim
08:45:11*BitPuffin quit (Ping timeout: 265 seconds)
08:47:52*wb joined #nim
08:55:56*dumdum joined #nim
09:25:14*BlaXpirit joined #nim
09:25:42*wb_ joined #nim
09:27:09*wb quit (Ping timeout: 252 seconds)
09:27:18*Trustable joined #nim
09:43:18reactormonkAraq, so no writing to stderr even though that's what excpt.nim does?
09:50:52*VinceAddons joined #nim
10:12:20Araqreactormonk: hrm
10:12:27Araqdon't we have a template 'stdmsg' for that?
10:13:59Araqkashyap_: you can do the same via the .codegenDecl pragma, please check it out
10:14:28Araq(the same here means "get some 'asm' annotation for a variable)
10:14:46kashyap_Araq thanks
10:15:19*dyu quit (Disconnected by services)
10:15:42kashyap_Araq I dont see it in the manual ... where can I read about it?
10:15:43*dyu_ joined #nim
10:16:23Araqboy our docs must suck
10:16:33*dumdum quit (Read error: Connection reset by peer)
10:16:45Araqhttp://nim-lang.org/theindex.html
10:16:49Araqsearch for "codegenDecl"
10:17:00Araqhttp://nim-lang.org/nimc.html#codegendecl-pragma
10:18:33kashyap_thanks for the links
10:28:59*BitPuffin joined #nim
10:33:37*BitPuffin quit (Ping timeout: 245 seconds)
10:42:21*BlaXpirit quit (Quit: Quit Konversation)
10:42:41*BlaXpirit joined #nim
10:43:11*JinShil joined #nim
10:53:29*Jehan_ joined #nim
11:17:31*gsingh93 quit (Quit: Connection closed for inactivity)
11:21:15*BitPuffin joined #nim
11:23:10*EXetoC joined #nim
11:23:21*pafmaf joined #nim
11:25:39*BitPuffin quit (Ping timeout: 245 seconds)
11:25:44*wb_ quit (Ping timeout: 252 seconds)
11:27:05*dumdum joined #nim
11:28:17*JinShil quit (Quit: Konversation terminated!)
11:40:08*wb joined #nim
11:40:28*BitPuffin joined #nim
11:46:50*wb_ joined #nim
11:49:20*wb quit (Ping timeout: 264 seconds)
11:52:55*BitPuffin quit (Ping timeout: 255 seconds)
11:59:11*wb_ is now known as wb
11:59:51kashyap_Where can I read up about the concurrency model in Nim? (this is ofcourse not for the kernel but for regular programs)
12:02:14*pafmaf quit (Quit: This computer has gone to sleep)
12:08:40*pafmaf joined #nim
12:13:26*novist` joined #nim
12:14:39Araqhttp://nim-lang.org/manual.html#threads
12:14:50*dyu__ joined #nim
12:15:43*dv-_ joined #nim
12:20:55*dyu_ quit (*.net *.split)
12:20:55*dv- quit (*.net *.split)
12:20:55*skroll3 quit (*.net *.split)
12:20:55*novist quit (*.net *.split)
12:20:58*adam12 is now known as adam
12:21:13*pafmaf quit (Quit: This computer has gone to sleep)
12:21:28*adam is now known as Guest55781
12:21:56*pafmaf joined #nim
12:22:05*pafmaf quit (Client Quit)
12:22:51*wb quit (Ping timeout: 250 seconds)
12:26:11*skroll3 joined #nim
12:40:14*sepisoad joined #nim
13:01:57dumdumwhere should I put a .nim file which I want importable in all nim projects?
13:03:14BlaXpiritdumdum, quickly turn it into a nimble package and install it
13:05:23*davidhq joined #nim
13:11:01*akiradeveloper joined #nim
13:11:13dumdumBlaXpirit: how?
13:11:15*drewsrem joined #nim
13:11:19BlaXpiritquickly
13:11:20BlaXpiritlol
13:11:24dumdum:D
13:11:36BlaXpiritumm this inspired me to write a blog article
13:11:44BlaXpiritwhich inspired me to remake my blog
13:11:47BlaXpiritinstead of helping u lol
13:11:51dumdum:D :D
13:11:55drewsremIs there autocompletion in Aporia?
13:11:55BlaXpiritbut yeah.. give me a few minutes
13:12:52dumdumdrewsrem: Yes, but it is not working for me at the moment
13:13:13drewsremdumdum, I see
13:13:24dumdumwith nim ver 0.10.2
13:14:01dumdumtill thats works, I am using sublime text 3 with nimlime
13:15:49BlaXpiritdumdum, https://gist.github.com/BlaXpirit/1dbf8d36cefb00d1b56d
13:20:35dumdumyayy :D works!
13:32:09Araqdumdum: alternatively you can also simply use --path
13:34:36dumdumthanks :)
14:00:59*AtomicBool joined #nim
14:01:05AtomicBoolping def-
14:03:48def-AtomicBool: pong
14:03:56def-(but i'll be afk in a few minutes)
14:04:06AtomicBooldef-, can I get that link again from the becnhmarks game?
14:04:11AtomicBoolof Nim
14:04:22def-https://github.com/def-/nim-benchmarksgame
14:04:31AtomicBoolthanks
14:06:33*threewood quit ()
14:07:15AtomicBoolare you going to keep working on it Def-
14:07:53def-maybe, maybe not. people can send pull requests and we can collect nim implementations like that
14:10:11*Jehan_ quit (Quit: Leaving)
14:13:35AtomicBoolok, make sure to spread the word so people know
14:13:43AtomicBoolim out, cya
14:13:45*AtomicBool left #nim (#nim)
14:14:57*Varriount|Mobile joined #nim
14:16:38Varriount|MobileAraq: One of your commits appears to have broken bootstrapping - https://github.com/Araq/Nim/commit/a0d3bd16e73c98840c65ab890064e1aa750b7060
14:23:23*BitPuffin joined #nim
14:26:33*sillesta joined #nim
14:27:20*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
14:36:10*akiradeveloper quit ()
14:40:24AraqVarriount|Mobile: broken for whom? for me it obviously works
14:44:06*Var|Mobile joined #nim
14:48:08*Varriount|Mobile quit (Ping timeout: 264 seconds)
14:48:57*Puffin joined #nim
14:51:21AraqVar|Mobile: well can you elaborate?
14:53:16*Puffin quit (Ping timeout: 244 seconds)
15:05:51*davidhq joined #nim
15:10:47*BlaXpirit_ joined #nim
15:13:00*darkf quit (Quit: Leaving)
15:13:37*BlaXpirit quit (Ping timeout: 245 seconds)
15:20:49*kapil__ quit (Quit: Connection closed for inactivity)
15:24:23*dumdum quit (Ping timeout: 256 seconds)
15:39:25*sepisoad quit (Quit: Leaving)
15:50:48*dumdum joined #nim
15:57:26*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
16:00:39*dv-_ is now known as dv-
16:14:04*Etheco- quit (Quit: Leaving)
16:43:52*dyu__ quit (Quit: Leaving)
16:48:30*chemist69 quit (Quit: leaving)
16:49:00*chemist69 joined #nim
16:54:36*superfunc joined #nim
17:01:04*davidhq joined #nim
17:01:42superfunchey everyone
17:14:31*Angry joined #nim
17:15:33*Guest55781 is now known as adam12
17:16:09Var|MobileAraq: It's a C++ codegen error - see http://buildbot.nim-lang.org/builders/linux-arm5-builder/builds/112 and http://buildbot.nim-lang.org/builders/linux-arm5-builder/builds/112/steps/Bootstrap%20Debug%20Version%20of%20Nim%20Compiler%20%28With%20C%2B%2B%20Backend%29/logs/stdio
17:21:16*Var|Mobile makes a note to self that the C++ bootstrap shouldn't halt building.
17:33:56*jsudlow quit (Remote host closed the connection)
17:36:24*jsudlow joined #nim
18:12:39*gtrundle quit (Quit: Bye)
18:14:56AraqVar|Mobile: does that test the mixed mode?
18:15:09Araqor is full C++ bootstrapping broken?
18:15:21Araqbecause I plan to throw mixed mode away, tbh
18:15:31Araqtoo hard to maintain for too little benefit
18:15:48*gokr_ joined #nim
18:15:52Araqinstead C++ support should be good enough that everything works with it
18:17:06*sampwing joined #nim
18:17:36*Matthias247 joined #nim
18:31:37*gsingh93 joined #nim
18:50:36def-reactormonk: can I make a test that expects a certain kind of error to happen on compilation?
18:51:38Araqyes
18:51:59Araqerrormsg: "some substr of the expected error"
18:52:06def-nice, thanks
18:53:46*matkuki joined #nim
18:54:24def-there are no c++ tests so far?
18:56:03Araqwell we test bootstrapping works in C++ mode, apparently
18:57:57def-can the tester be told to compile with cpp?
19:02:40Araqfor individual tests you can use: cmd= "nim cpp $#"
19:02:46Araqiirc
19:03:05Araqsomebody should document it
19:03:34Araqdisable every 'rodgen' test while you're at it
19:03:45Araqwe know these will be broken for another decade
19:03:55def-the ones in rodfiles?
19:04:29Araqyeah
19:04:32def-and how do you disable tests? removing the t at the start of the filename?
19:04:45Araqrodfiles is a special category
19:05:22Araqspecial categories are handled via categories.nim
19:05:26def-i see
19:05:31Araqyou need to disable them there
19:08:03def-oh, cpp doesn't compile right now anyway
19:10:46matkukiAraq: Is it possible to create a module with a macro, then insert nodes into it?
19:12:36matkukiOr def-?
19:13:53*dumdum quit (Ping timeout: 256 seconds)
19:16:48ekarlsoAraq: did you get the codegen stuff fixed
19:17:13def-matkuki: i don't know how
19:18:55matkukidef-: Or some other way to create a namespace inside a module?
19:21:04def-matkuki: i thought about it last time you asked, but i only have really really hacky solutions, that would even impact performance
19:21:20def-i think you're not supposed to do that, why do you need it?
19:24:51*mwbrown joined #nim
19:26:04matkukidef-: I know you're right, but I really like the idea of separating a module into blocks.
19:26:06matkukiI have a namespace macro that does nothing, only adds an indentation to a segment of code, which already helps me with readability.
19:27:07def-if you need that, maybe split your code into more files?
19:27:22*Angry quit (Read error: Connection reset by peer)
19:28:44matkukidef-: Probably will. But sometimes I need code in one module, it sometimes makes more sense to me. Thanks anyway.
19:30:34*Mat4 joined #nim
19:30:36Mat4hello
19:32:09*Angry joined #nim
19:32:10matkukihi
19:33:41Mat4hi matkuki
19:33:54Mat4are you new here ?
19:34:10matkukiPretty much, yeah. You?
19:37:11Mat4not so new (but learning daily new about Nim and its implementation)
19:39:12matkukiSame here. Still trying to get a decent grip at macros.
19:41:59*dumdum joined #nim
19:42:24Mat4for what ?
19:45:43matkukiEmulating classes from other languages(flaviu's OOP macro works great), simple namespaces, ...
19:46:17ekarlsodom96: gotten to look at my nimble stuffs ?
19:51:10Mat4ok, I see
19:52:32*dgym joined #nim
19:52:49matkukiAnyone know how the "Coding Guidelines" are coming along? I forgot who said was writing them. Varriount?
19:53:41Araqmatkuki: what do you mean? they have been written and we try to adhere to them
19:54:53Mat4where can I find them ?
19:55:04Araqhttp://localhost:5000/setUserStatus?nick=Elina2&type=activate
19:55:08Araqer
19:55:10Mat4thanks
19:55:14Araqwrong link lol
19:55:20Araqhttps://github.com/Araq/Nim/wiki/Style-Guide-for-Nim-Code
19:55:41Mat4Elina2 ??
19:56:47Araqyeah well ... what can I say? I know too many women
19:57:43Mat4*g*
19:58:52matkukiAraq: Thanks! I forgot to refresh the github wiki and was still inactive when last time I checked.
19:59:05AraqMat4: dom96 started working on a toy native code backend for x64. interested in the code?
19:59:24Mat4sure
19:59:25def-matkuki: no, i just changed it after araq wrote the new link here :P
20:00:07matkukidef-: My god that was quick!
20:00:32matkukiGood work.
20:00:38Araq"Type identifiers should be in camelCase. All other identifiers should be in camelCase "
20:00:57Araq<-- something is wrong with this sentence
20:01:40Araqoh well I'll edit it
20:01:50*alexruf joined #nim
20:01:54matkukidef-: I need this guide, because Araq loves my "python_variable :string" lines :)
20:06:26*alexruf quit (Client Quit)
20:07:35Mat4Araq: have he a repro online ?
20:10:14AraqMat4: sorry, I dunno if he already pushed the branch
20:10:29reactormonkAraq, there's some stuff you can do with git and whitespace, but only on git apply -.- naturally, we could make a pre-commit hook that complains about whitespace.
20:10:56AraqI don't want complains
20:11:02AraqI don't want to see it
20:11:13AraqI don't care about ws and you should not either
20:11:19Araqnobody should. it's pathetic.
20:12:13dom96Is my advice not enough?
20:12:19*Angry quit (Remote host closed the connection)
20:12:32AraqI don't want to add crap to my urls either to not see it
20:12:49dom96why?
20:13:33Araqbecause sane defaults are a joy
20:13:55dom96then complain to github
20:14:09dom96don't outright reject PRs just because there are whitespace changes
20:14:47AraqI don't do that
20:14:56AraqI reject PRs that are only "fixing" whitespace
20:15:06dom96good
20:15:13dom96Then there is nothing to argue about.
20:24:06def-Trailing whitespace can also be annoying. try looking at https://raw.githubusercontent.com/Araq/Nim/devel/lib/windows/shfolder.nim with ~80 chars width
20:24:23reactormonkAraq, with the c part in https://github.com/Araq/Nim/pull/1891 ?
20:24:37BlaXpirit_def-, D:
20:25:15BlaXpirit_ha, my text editor doesn't show it weird
20:25:22Araqdef-: it is only annoying because the browser doesn't remove it. but it should.
20:25:43reactormonkAraq, let's just remove the whitespace once and for all, as per def-'s PR. You can't always work against the tooling.
20:26:01def-Araq: I agree, but many tools and editors don't unfortunately
20:26:48BlaXpirit_personally I don't care, but I see removing whitespace as an advantage for the project
20:27:44Araqreactormonk: that breaks every non-applied PR then
20:27:59BlaXpirit_scratch my last message
20:28:04Araqand ends up in git's history etc etc
20:29:21*sampwing quit (Ping timeout: 252 seconds)
20:29:31*Matthias247 quit (Quit: Matthias247)
20:30:07reactormonkAraq, yes. But it's like cleaning up the history. You gotta do it at some time.
20:30:19Araqreactormonk: the C part is bad but the bat/sh scripts are worse
20:31:13dom96getting rid of whitespace should be done organically
20:31:28dom96i.e. only remove it in the files you are touching
20:31:45BlaXpirit_I agree to that
20:31:46dgymhello, can a macro's expansion be an expression? I'm having a hard time using a pragma macro in a proc expression (anonymous lambda): http://pastebin.com/Vhw3zsYb
20:31:51BlaXpirit_but people aren't gonna remember
20:31:58def-dom96: that's so much manual work
20:31:58dgymI am probably deeply confused
20:32:13BlaXpirit_def-, no manual work if editor does it
20:34:22*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
20:35:38def-dgym: i don't see anything wrong with what you're trying. maybe not supposed to work or a bug?
20:36:17flaviuAraq: What if I program in Whitespace? Your suggestion would break all my programs.
20:37:13Araqflaviu: that's a nice side effect then
20:38:19*kuzy000_ quit (Ping timeout: 256 seconds)
20:39:06dgymthanks def-, the error about discarding suggests to me that the expansion is a statement rather than an expression, but coming from Lisp macros I'm still not sure about the differences between a statement and an expression
20:45:18Mat4you will make you life easier not compare Nim macros with the macro extension feature in Lisp
20:46:35Araqdgym: please report it
20:50:19*springbok joined #nim
20:50:20*Var|Mobile quit (Read error: Connection reset by peer)
20:50:28*Var|Mobile joined #nim
21:01:56superfuncdoes my PR for csources look sensible? It just defaults the CC and LINKER to clang under freebsd
21:04:10Araqsuperfunc: I see no such PR
21:04:39superfunchttps://github.com/nim-lang/csources/pull/9
21:05:06superfuncjust something I noticed on a fresh install of freebsd I had
21:06:28def-superfunc: i think you should update niminst's tools/buildsh.tmpl instead
21:06:58def-(which already has this change)
21:07:07def-someone should rebuild csources I guess
21:07:33superfuncoh, my bad
21:07:36superfuncI'll close it out
21:16:14Araqping Var|Mobile
21:20:55*superfunc quit (Quit: leaving)
21:25:03*brson joined #nim
21:29:12*sampwing joined #nim
21:29:42*codmajik joined #nim
21:29:54Araqhi codmajik welcome
21:33:41Araqwooohooo!
21:33:56Araqand the price for the best PR this year goes to ...
21:35:40*bjz joined #nim
21:36:07def-Araq: me, for the trailing whitespace PR?!
21:36:42*bjz quit (Client Quit)
21:38:28Araqhttps://github.com/Araq/Nim/pull/2067
21:38:39Araqmany thanks def- !
21:38:54*Matthias247 joined #nim
21:39:29def-You're welcome. The official test framework turned out to be better than the one i'm running here: https://github.com/def-/nim-unsorted/blob/master/test_all.nim
21:42:42Araqwell ... that's bad
21:45:27Araqbbl
21:47:27*davidhq quit (Quit: Textual IRC Client: www.textualapp.com)
21:47:47*davidhq joined #nim
21:59:53*matkuki quit (Quit: ChatZilla 0.9.91.1 [Firefox 35.0.1/20150122214805])
22:17:25reactormonkAraq, btw, fixed stuff
22:17:51reactormonkdef-, cool, more running tests
22:17:52*dgym quit (Ping timeout: 246 seconds)
22:18:33reactormonkdef-, that's probably the better solution - imo there shouldn't be false positives if you try to test if your change messed anything up
22:18:49reactormonki.e. you should be able to rely on the test suite telling you when there is a regression
22:19:43*sampwing quit (Ping timeout: 252 seconds)
22:24:09*sampwing joined #nim
22:24:10*codmajik quit (Ping timeout: 246 seconds)
22:27:47*Var|Mobile quit (Ping timeout: 250 seconds)
22:29:57*dumdum quit (Ping timeout: 256 seconds)
22:43:03*Etheco joined #nim
22:51:37*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
23:06:00*mwbrown quit (Ping timeout: 265 seconds)
23:10:59*dgym joined #nim
23:18:43*g4rg4m3|_ quit (Quit: Leaving)
23:19:06*jasondotstar joined #nim
23:20:51*Jehan_ joined #nim
23:35:26*dgym quit (Quit: Page closed)
23:36:38*Demon_Fox joined #nim
23:38:07*davidhq joined #nim
23:43:28flaviuIs there some way to handle a certain signal manually?
23:46:07flaviuOr, to avoid a XY question, I'd like to prevent a segfault from stopping the program.
23:49:55*sampwing quit (Ping timeout: 252 seconds)
23:51:47sillestasounds dangerous :)
23:52:10*sampwing joined #nim
23:56:19*BlaXpirit_ quit (Quit: Quit Konversation)
23:58:45Jehan_flaviu: You can install signal handlers, but they're subject to the usual constraints on signal handlers.
23:59:17Jehan_Also, I'm not sure if there's a generally sane way to recover from segfaults.
23:59:34ldleworkwelcome back Jehan_