<< 01-04-2016 >>

00:02:06*gokr1 quit (Ping timeout: 248 seconds)
00:06:20*desophos quit (Remote host closed the connection)
00:09:26*yglukhov joined #nim
00:14:02*yglukhov quit (Ping timeout: 244 seconds)
00:45:16Varriount_federico3: I don't think so. You can set a global flag thought.
00:46:14Varriount_federico3: The problem with raising an exception on SIGTERM is that A: How would you catch it in a deterministic way, and B: You would violate the expectations of code that is guaranteed not to raise any exceptions.
00:56:07*brson_ quit (Quit: leaving)
00:56:14*brson joined #nim
01:12:53*enthus1ast quit (Ping timeout: 244 seconds)
01:17:57*GangstaCat quit (Quit: Leaving)
01:38:16*MyMind quit (Max SendQ exceeded)
01:39:49*MyMind joined #nim
01:42:00*krux02 quit (Quit: Verlassend)
01:43:30*brson quit (Ping timeout: 268 seconds)
02:17:14*filwit joined #nim
02:18:12*desophos joined #nim
02:22:58*desophos quit (Ping timeout: 268 seconds)
03:13:13*desophos joined #nim
03:40:25*Jesin joined #nim
03:49:50*brson joined #nim
04:01:01*yglukhov joined #nim
04:05:28*yglukhov quit (Ping timeout: 244 seconds)
04:18:45*rgv151 joined #nim
04:54:11*endragor joined #nim
04:56:02*desophos quit (Read error: Connection reset by peer)
04:57:17*girvo joined #nim
04:57:29girvoHey all
04:58:18girvoI'm working on a Docker Client for Nim at the moment for some tooling we're building at work
04:58:44girvoIt's going quite nicely when using HTTP as the transport, which is fine, but typically one uses a unix socket to communicate to the Docker daemon
04:59:20girvoI can see the low-level posix API in nim can handle unix sockets, but is there anything higher level? Using httpclient is beautiful, but doesn't work with a unix socket at the moment it seems
05:09:36ldleworkgirvo: don't know the answer, but awesome to hear
05:10:07*Jesin quit (Quit: Leaving)
05:49:47*yglukhov joined #nim
05:54:03*yglukhov quit (Ping timeout: 246 seconds)
06:17:49*endragor_ joined #nim
06:19:36*endragor_ quit (Remote host closed the connection)
06:20:07*endragor_ joined #nim
06:21:21*endragor quit (Ping timeout: 246 seconds)
06:25:53*filwit quit (Quit: Leaving)
06:30:15*MyMind quit (Ping timeout: 268 seconds)
06:37:32*enthus1ast joined #nim
06:39:47*endragor_ quit (Remote host closed the connection)
06:40:15*endragor joined #nim
06:44:43*desophos joined #nim
06:49:27*desophos quit (Ping timeout: 260 seconds)
06:55:49*yglukhov joined #nim
07:09:53*gokr joined #nim
07:26:21*lqdc joined #nim
07:35:04*dorei joined #nim
07:43:19*Sembei joined #nim
07:53:16*girvo quit (Ping timeout: 264 seconds)
08:10:40*brson quit (Ping timeout: 264 seconds)
08:14:40*Demon_Fox quit (Quit: Leaving)
08:22:22*yglukhov quit (Ping timeout: 248 seconds)
08:39:19veganskawayHi to all! Anyone knows this guy? https://github.com/wheineman. His REPL for Nim (nrpl) project is cool, but it's frozen and bugs are not fixed for a long time.
08:42:31veganskawayI sent him e-mail about a month ago about it, still no answer. Maybe we can change it's repository url in nimble packages to it's working fork?
09:06:32*krux02 joined #nim
09:08:44*enthus1ast quit (Ping timeout: 244 seconds)
09:11:45*desophos joined #nim
09:15:39wuehlmauswould be great as your improvements make a repl for nim so much more fun to use.
09:16:40*desophos quit (Ping timeout: 264 seconds)
09:18:51*yglukhov joined #nim
09:19:43*girvo joined #nim
09:31:42*girvo quit (Ping timeout: 276 seconds)
09:58:05*veganskaway is now known as vegansk
10:21:34*yglukhov quit (Remote host closed the connection)
10:22:09*yglukhov joined #nim
10:27:26*girvo joined #nim
10:33:49*arnetheduck joined #nim
10:40:06*elrood joined #nim
11:38:42*desophos joined #nim
11:43:27*desophos quit (Ping timeout: 260 seconds)
11:49:28*enthus1ast joined #nim
11:52:06*enthus1ast quit (Read error: Connection reset by peer)
11:53:56*Trustable joined #nim
11:54:14*ics quit (Quit: Connection closed for inactivity)
11:58:02*krux02 quit (Remote host closed the connection)
12:00:04*gokr quit (Ping timeout: 252 seconds)
12:04:26*gokr joined #nim
12:05:45*BitPuffin joined #nim
12:27:21cnclyou can create a new nimble package with a new name, right?
12:36:23dom96cncl: of course
12:48:51cnclthat's probably a better idea than taking over someone else's existing package?
13:06:46dom96cncl: depends, is your package exactly the same but with extra features/fixes as somebody elses?
13:22:53*darkf quit (Quit: Leaving)
13:36:44*enthus1ast joined #nim
13:39:41*pregressive joined #nim
13:58:30*pregressive quit (Remote host closed the connection)
14:11:34*GangstaCat joined #nim
14:31:27*gokr quit (Ping timeout: 260 seconds)
14:41:33cncli was talking about veganskaway's situation
14:43:21enthus1astim learning pegs atm and i'm stuck at a strange issue, i would like to match an email header but the match is stopping to early and i don't know why.
14:43:23enthus1asthttps://gist.github.com/enthus1ast/81f67b21a6bec8e9646b6673636d8651
14:43:42enthus1astany idea what this could be?
14:55:30*dorei quit (Quit: Page closed)
14:57:47*gokr joined #nim
14:58:17*Jesin joined #nim
15:05:11*gokr quit (Quit: Leaving.)
15:24:19*endragor quit (Remote host closed the connection)
15:25:17cheatfateenthus1ast, do you make finds() on full message? or you doing your finds() while downloading?
15:26:35arnetheduckhi, anyone knows why in the newSeq impl, addInt & mulInt are called as functions (vs using just +, * as usual)?
15:26:36enthus1asti read the file with readFile
15:28:10enthus1astcheatfate: i have some email test files, and i read one of the examples. My idea was to match everything that is not a double newline to get the header.
15:31:41cheatfateif assume that peg module - not buggy, then it looks like your algorithm fail
15:32:13cheatfateenthus1ast, i dont know may be you are reading file by 16 byte chunks or something...
15:32:31enthus1asthttps://gist.github.com/enthus1ast/f65590bd1dc0c3c8db29e569922c79f4
15:32:31enthus1astthis is the whole example
15:32:38enthus1astmhh
15:34:08dom96enthus1ast: You just want to capture the headers?
15:34:36enthus1astyeah.
15:36:49Araqarnetheduck: because these must always perform overflow checks due to security issues
15:37:22dom96enthus1ast: Just write a little while loop to capture the characters until you find two `\n`'s
15:37:40enthus1asti've done this this works but i will learn pegs : )
15:40:15arnetheduckoh, so they bypass the mAddInt magics on purpose? ie isn't there a pragma that could be used?
15:41:44cheatfateenthus1ast, its not a good idea to parse emails with pegs :)
15:42:06enthus1astbut the idea should be correct right? i match everything that is not a double newline, as the seperator i choose the double newline
15:42:19enthus1astcheatfate: why? ;)
15:42:26arnetheduckoh, and incidentally the gogc newSeq uses +,*, so that would be a bug?
15:43:13Araqarnetheduck: yup.
15:43:46cheatfateenthus1ast, security issues can be happen... for example somebody can send you endless From: ....
15:43:51Araqthere is a .push overflowChecks:on but that would turn it on for the whole proc
15:45:05cheatfateenthus1ast, this is main problem of current asynchttpserver.nim
15:45:42enthus1astmhh too bad
15:47:30enthus1astwith endless From you mean a long line without a newline?
15:48:10enthus1astcheatfate: ^
15:48:19cheatfateyep
15:51:18cheatfateyou must also check this http://stackoverflow.com/a/1592310/3208443 and you will get some info about 'folding' :)
15:51:31cheatfatethat can be happend in emails
15:52:30enthus1astjep
15:53:04enthus1astive addressed this with a simple "return header.replace(peg"\n\s","")"
15:53:20enthus1astthis is what the rfc says
15:54:07enthus1astthis is what i would do to the header if i could extract the header : )
15:55:36enthus1astthen i would loop through the splittet("\n") header then i use pegs to match key: val etc.
15:56:12enthus1astso i could check the line lenght first before feeding it to pegs
15:57:02cheatfateenthus1ast, it looks like you use cannon where you can use only knife :)
15:57:13*yglukhov_ joined #nim
16:01:04*yglukhov quit (Ping timeout: 264 seconds)
16:01:22*pregressive joined #nim
16:01:39*yglukhov_ quit (Ping timeout: 260 seconds)
16:01:53enthus1asti know knifeing, but don*t know how to shoot. Thats why i used pegs in the first place, mainly learning.
16:02:33arnetheduckah, and only signed ints overflow? unsigned wrap?
16:02:40*Jesin quit (Quit: Leaving)
16:06:33*Jesin joined #nim
16:24:00enthus1astdom96: btw do you received an e-mail lately? : )
16:25:53*r-ku left #nim ("Leaving")
16:28:05dom96enthus1ast: yes
16:28:30enthus1astdom96: ok, was unshure if i really sent it
16:28:34dom96But please create a PR, I prefer to review code that way.
16:28:58enthus1astok i alredy thought that.
16:29:16*arnetheduck quit (Ping timeout: 264 seconds)
16:30:03enthus1asti will when its worth showing
16:32:06*pregressive quit (Remote host closed the connection)
16:37:24*GangstaCat quit (Quit: Leaving)
16:41:49federico3are there no wrappers for NaCL or other crypto libraries? :(
16:42:38cheatfatefederico3, i think openssl wrapper in standard library
16:42:55federico3but it's deprecated
16:43:59*brson joined #nim
16:44:10cheatfatefederico3, hmm why do you think so?
16:44:47dom96openssl isn't deprecated
16:45:55*krux02 joined #nim
16:46:42federico3http://nim-lang.org/docs/openssl.html is it still alive? There is no documentation nor examples...
16:47:14enthus1astfederico3: i would love to see the libsodium wrapper working...
16:47:47federico3and I'm not seeing a lot of stuff
16:48:15federico3enthus1ast: yep :-/
16:48:23enthus1astfederico3: https://github.com/judofyr/sodium.nim/blob/master/sodium.nim i gave up on building it
16:48:37enthus1astthere is a also an issue open
16:49:26*Jesin quit (Quit: Leaving)
16:50:16cheatfateits so easy to make wrappers
16:50:36enthus1astbut one has to do it :P
16:51:49cheatfateofc but i dont trust bernstein's library so its better to take algos from libressl or openssl
16:52:25*Jesin joined #nim
16:53:37enthus1astits always the question what you'd like to do, and who is your Eve.
17:03:11*desophos joined #nim
17:04:37*GangstaCat joined #nim
17:30:34cheatfateAraq, do you created posix.nim manually or by c2nim?
17:32:23cheatfateCould you please patch declaration of function [timer_create] (line 2312). First parameter must not be "var ClockId", just "ClockId"
17:36:11cheatfatenever mind more patches must be done
17:36:18cheatfateto this timer_ functions
17:51:18cheatfatedom96, please take a look https://github.com/nim-lang/Nim/issues/4024
17:53:07*enthus1ast1 joined #nim
17:53:43*enthus1ast quit (Ping timeout: 244 seconds)
17:54:31*enthus1ast1 is now known as enthus1ast
18:00:32flyxhow are stdlib tests supposed to be structured? I see a discard """ things """ on the first line of some of them
18:01:01flyxso I suppose they don't use unittest, but something else?
18:10:53*qwertyuiop joined #nim
18:11:17*qwertyuiop is now known as Guest70074
18:11:54*kulelu88 joined #nim
18:11:54*kulelu88 quit (Changing host)
18:11:54*kulelu88 joined #nim
18:12:24dyce_hmm, when we need manualy memory management is that when we have less than <8MB of ram? if you have 16MB/32MB should nim's GC be fine?
18:12:31dyce_manual*
18:12:46dyce_or like 32KB of ram?
18:13:34dyce_i want to use nim for openwrt devices that have 16mb or 32mb. so i wonder if its ever necessary to manually manage memory
18:19:00Guest70074I studied ceylon, I studied julia, I studied rust, I fell in love with Nim (since 0.13), I drink and irc
18:20:56*kori left #nim ("WeeChat 1.4")
18:21:57*Matthias247 joined #nim
18:25:40*clone1018 quit ()
18:27:24Guest70074keep it simple: Nim will win!
18:28:59*Guest70074 quit ()
18:43:17*enthus1ast quit (Ping timeout: 244 seconds)
18:47:33ldlework"keep it simple"
18:47:40ldleworklost that one already haven't we
18:48:30*pregressive joined #nim
18:51:56*kulelu88 quit (Quit: Leaving)
18:59:51dyce_ldlework: why is that
19:00:55ldleworkwell nim is a fairly complicated language
19:01:07ldleworkits certainly not characterized by its simplicity
19:01:28ldleworkits not a dig on Nim, I love nim obviously, but just being straight about it
19:01:53dyce_ldlework: would you say python keeps it simple?
19:02:41ldleworkSort of? Not really? Python has a good deal of syntax too. However it makes up with it by having a consistent data model.
19:03:23ldleworkJust because you can use a subset of a thing effectively doesn't objectively change what it is qualitatively.
19:03:51ldleworkgo and lisp are simple languages, Python and Nim are rich but each to use languages
19:03:56ldleworkthere's a difference imo is all
19:04:05ldleworkeasy to use*
19:04:44dyce_i think python is pretty simple. but im open to seeing a language. I don't like how go looks, thats my python bias
19:05:31ldleworkbut you're not talking about the complexity of the language
19:05:41ldleworkwhether you like something has no bearing on this topic :)
19:05:47ldleworkbut I do agree, python and nim are my favorites
19:21:29dom96dyce_: best way to see if Nim's GC supports openwrt devices with 16mb of ram is to create a quick app and run it on those devices :)
19:46:31*pregressive quit (Remote host closed the connection)
19:47:29*pregressive joined #nim
19:54:41Matthias247are 16MB devices still a thing? :)
19:55:13Matthias247besides for microcontrollers
20:06:36*irrequietus joined #nim
20:13:00*irrequietus_ joined #nim
20:13:04*irrequietus quit (Ping timeout: 260 seconds)
20:18:23*irrequietus_ is now known as irrequietus
20:18:52*irrequietus is now known as Guest70958
20:23:26*BitPuffin quit (Ping timeout: 248 seconds)
20:28:24*pregress_ joined #nim
20:28:46*pregressive quit (Ping timeout: 248 seconds)
20:32:56Araq16MB should be fine with the GC.
20:34:53*pregress_ quit (Remote host closed the connection)
20:41:03*enthus1ast joined #nim
20:44:26*thotypous joined #nim
20:44:27*enthus1ast quit (Client Quit)
21:04:52*enthus1ast joined #nim
21:05:35*Guest70958 quit ()
21:05:57dyce_Matthias247: https://wiki.openwrt.org/toh/unbranded/a5-v11 and http://www.ebay.com/itm/Mini-3G-4G-150Mbps-Wireless-WiFi-Wlan-Hotspot-AP-Client-RJ45-USB-WPS-Router-WE-/391260986995?hash=item5b18f8de73:g:WDgAAOSw9r1V9rQf
21:07:26dyce_arduino ram is 32KB
21:09:26Matthias247that makes a raspberry pi have lots of memory ;)
21:11:19dyce_i guess i need to read this: https://www.quora.com/How-did-game-developers-pack-entire-games-into-so-little-memory-twenty-five-years-ago/answer/Dave-Baggett?srid=z9ZA&share=1
21:11:25Matthias247didn't know what the current states of routers is, but most "application cpus" (Cortex A, ...) will nowadays have quite a bit more. Because you don't get so small RAM chips anymore
21:11:36dyce_had no idea playstation 1 only had 2MB of ram
21:13:01dyce_Matthias247: ideally, raspberry pi foundation should improve their distribution model for pi zero.
21:13:17dyce_hopefully pi zero 2 will do that
21:13:18Matthias247the microcontrollers we use in some automotive products have 2MB RAM and Flash. You can get quite a lot of logic in there
21:13:27dyce_maybe it will be called pi -1
21:13:47Matthias247I thought the zero was totally uninteresting, because it lacks network
21:13:59dyce_im hoping pi zero 2 will have BLE/Wifi
21:14:07dyce_that would be fun
21:14:37dyce_if you live by a microcenter you can actually get one for 5 dollars
21:15:07dyce_dont know when shipping things that could fit in an envelope costed more than a few stamps
21:17:42Matthias247I have bought a pi2 wenn it came out and haven't even unpackaged it
21:17:49Matthias247probably I don't need one more :)
21:21:09dyce_this one is cool too https://wiki.hackerspace.pl/projects:zsun-wifi-card-reader
21:21:15dyce_can get for 8-10 dollars
21:22:23Matthias247yeah - in the meantime there's quite a lot of interesting hardware for cheap prices
21:22:36Matthias247whish they were available when I had more time :)
21:26:31*elrood quit (Quit: Leaving)
21:56:06*darkf joined #nim
22:17:28*saml quit (Quit: Leaving)
22:34:27*yglukhov joined #nim
22:36:19*Demon_Fox joined #nim
22:40:06*yglukhov quit (Remote host closed the connection)
22:46:01*fredrik92 joined #nim
23:04:10*PMunch joined #nim
23:09:49cheatfatevegansk, your latest patch for locks.nim/rlocks.nim not working .... even more [XDeclaredButNotUsed]
23:11:14cheatfatei rlocks nim must be moved out from syslocks.nim because they are not used in startup code
23:25:56*GangstaCat quit (Quit: Leaving)
23:26:05*Matthias247 quit (Read error: Connection reset by peer)