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:16 | Varriount_ | federico3: I don't think so. You can set a global flag thought. |
00:46:14 | Varriount_ | 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:29 | girvo | Hey all |
04:58:18 | girvo | I'm working on a Docker Client for Nim at the moment for some tooling we're building at work |
04:58:44 | girvo | It'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:20 | girvo | I 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:36 | ldlework | girvo: 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:19 | veganskaway | Hi 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:31 | veganskaway | I 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:39 | wuehlmaus | would 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:21 | cncl | you can create a new nimble package with a new name, right? |
12:36:23 | dom96 | cncl: of course |
12:48:51 | cncl | that's probably a better idea than taking over someone else's existing package? |
13:06:46 | dom96 | cncl: 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:33 | cncl | i was talking about veganskaway's situation |
14:43:21 | enthus1ast | im 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:23 | enthus1ast | https://gist.github.com/enthus1ast/81f67b21a6bec8e9646b6673636d8651 |
14:43:42 | enthus1ast | any 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:17 | cheatfate | enthus1ast, do you make finds() on full message? or you doing your finds() while downloading? |
15:26:35 | arnetheduck | hi, anyone knows why in the newSeq impl, addInt & mulInt are called as functions (vs using just +, * as usual)? |
15:26:36 | enthus1ast | i read the file with readFile |
15:28:10 | enthus1ast | cheatfate: 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:41 | cheatfate | if assume that peg module - not buggy, then it looks like your algorithm fail |
15:32:13 | cheatfate | enthus1ast, i dont know may be you are reading file by 16 byte chunks or something... |
15:32:31 | enthus1ast | https://gist.github.com/enthus1ast/f65590bd1dc0c3c8db29e569922c79f4 |
15:32:31 | enthus1ast | this is the whole example |
15:32:38 | enthus1ast | mhh |
15:34:08 | dom96 | enthus1ast: You just want to capture the headers? |
15:34:36 | enthus1ast | yeah. |
15:36:49 | Araq | arnetheduck: because these must always perform overflow checks due to security issues |
15:37:22 | dom96 | enthus1ast: Just write a little while loop to capture the characters until you find two `\n`'s |
15:37:40 | enthus1ast | i've done this this works but i will learn pegs : ) |
15:40:15 | arnetheduck | oh, so they bypass the mAddInt magics on purpose? ie isn't there a pragma that could be used? |
15:41:44 | cheatfate | enthus1ast, its not a good idea to parse emails with pegs :) |
15:42:06 | enthus1ast | but 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:19 | enthus1ast | cheatfate: why? ;) |
15:42:26 | arnetheduck | oh, and incidentally the gogc newSeq uses +,*, so that would be a bug? |
15:43:13 | Araq | arnetheduck: yup. |
15:43:46 | cheatfate | enthus1ast, security issues can be happen... for example somebody can send you endless From: .... |
15:43:51 | Araq | there is a .push overflowChecks:on but that would turn it on for the whole proc |
15:45:05 | cheatfate | enthus1ast, this is main problem of current asynchttpserver.nim |
15:45:42 | enthus1ast | mhh too bad |
15:47:30 | enthus1ast | with endless From you mean a long line without a newline? |
15:48:10 | enthus1ast | cheatfate: ^ |
15:48:19 | cheatfate | yep |
15:51:18 | cheatfate | you must also check this http://stackoverflow.com/a/1592310/3208443 and you will get some info about 'folding' :) |
15:51:31 | cheatfate | that can be happend in emails |
15:52:30 | enthus1ast | jep |
15:53:04 | enthus1ast | ive addressed this with a simple "return header.replace(peg"\n\s","")" |
15:53:20 | enthus1ast | this is what the rfc says |
15:54:07 | enthus1ast | this is what i would do to the header if i could extract the header : ) |
15:55:36 | enthus1ast | then i would loop through the splittet("\n") header then i use pegs to match key: val etc. |
15:56:12 | enthus1ast | so i could check the line lenght first before feeding it to pegs |
15:57:02 | cheatfate | enthus1ast, 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:53 | enthus1ast | i know knifeing, but don*t know how to shoot. Thats why i used pegs in the first place, mainly learning. |
16:02:33 | arnetheduck | ah, and only signed ints overflow? unsigned wrap? |
16:02:40 | * | Jesin quit (Quit: Leaving) |
16:06:33 | * | Jesin joined #nim |
16:24:00 | enthus1ast | dom96: btw do you received an e-mail lately? : ) |
16:25:53 | * | r-ku left #nim ("Leaving") |
16:28:05 | dom96 | enthus1ast: yes |
16:28:30 | enthus1ast | dom96: ok, was unshure if i really sent it |
16:28:34 | dom96 | But please create a PR, I prefer to review code that way. |
16:28:58 | enthus1ast | ok i alredy thought that. |
16:29:16 | * | arnetheduck quit (Ping timeout: 264 seconds) |
16:30:03 | enthus1ast | i will when its worth showing |
16:32:06 | * | pregressive quit (Remote host closed the connection) |
16:37:24 | * | GangstaCat quit (Quit: Leaving) |
16:41:49 | federico3 | are there no wrappers for NaCL or other crypto libraries? :( |
16:42:38 | cheatfate | federico3, i think openssl wrapper in standard library |
16:42:55 | federico3 | but it's deprecated |
16:43:59 | * | brson joined #nim |
16:44:10 | cheatfate | federico3, hmm why do you think so? |
16:44:47 | dom96 | openssl isn't deprecated |
16:45:55 | * | krux02 joined #nim |
16:46:42 | federico3 | http://nim-lang.org/docs/openssl.html is it still alive? There is no documentation nor examples... |
16:47:14 | enthus1ast | federico3: i would love to see the libsodium wrapper working... |
16:47:47 | federico3 | and I'm not seeing a lot of stuff |
16:48:15 | federico3 | enthus1ast: yep :-/ |
16:48:23 | enthus1ast | federico3: https://github.com/judofyr/sodium.nim/blob/master/sodium.nim i gave up on building it |
16:48:37 | enthus1ast | there is a also an issue open |
16:49:26 | * | Jesin quit (Quit: Leaving) |
16:50:16 | cheatfate | its so easy to make wrappers |
16:50:36 | enthus1ast | but one has to do it :P |
16:51:49 | cheatfate | ofc 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:37 | enthus1ast | its 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:34 | cheatfate | Araq, do you created posix.nim manually or by c2nim? |
17:32:23 | cheatfate | Could you please patch declaration of function [timer_create] (line 2312). First parameter must not be "var ClockId", just "ClockId" |
17:36:11 | cheatfate | never mind more patches must be done |
17:36:18 | cheatfate | to this timer_ functions |
17:51:18 | cheatfate | dom96, 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:32 | flyx | how are stdlib tests supposed to be structured? I see a discard """ things """ on the first line of some of them |
18:01:01 | flyx | so 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:24 | dyce_ | 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:31 | dyce_ | manual* |
18:12:46 | dyce_ | or like 32KB of ram? |
18:13:34 | dyce_ | 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:00 | Guest70074 | I 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:24 | Guest70074 | keep it simple: Nim will win! |
18:28:59 | * | Guest70074 quit () |
18:43:17 | * | enthus1ast quit (Ping timeout: 244 seconds) |
18:47:33 | ldlework | "keep it simple" |
18:47:40 | ldlework | lost that one already haven't we |
18:48:30 | * | pregressive joined #nim |
18:51:56 | * | kulelu88 quit (Quit: Leaving) |
18:59:51 | dyce_ | ldlework: why is that |
19:00:55 | ldlework | well nim is a fairly complicated language |
19:01:07 | ldlework | its certainly not characterized by its simplicity |
19:01:28 | ldlework | its not a dig on Nim, I love nim obviously, but just being straight about it |
19:01:53 | dyce_ | ldlework: would you say python keeps it simple? |
19:02:41 | ldlework | Sort 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:23 | ldlework | Just because you can use a subset of a thing effectively doesn't objectively change what it is qualitatively. |
19:03:51 | ldlework | go and lisp are simple languages, Python and Nim are rich but each to use languages |
19:03:56 | ldlework | there's a difference imo is all |
19:04:05 | ldlework | easy to use* |
19:04:44 | dyce_ | 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:31 | ldlework | but you're not talking about the complexity of the language |
19:05:41 | ldlework | whether you like something has no bearing on this topic :) |
19:05:47 | ldlework | but I do agree, python and nim are my favorites |
19:21:29 | dom96 | dyce_: 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:41 | Matthias247 | are 16MB devices still a thing? :) |
19:55:13 | Matthias247 | besides 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:56 | Araq | 16MB 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:57 | dyce_ | 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:26 | dyce_ | arduino ram is 32KB |
21:09:26 | Matthias247 | that makes a raspberry pi have lots of memory ;) |
21:11:19 | dyce_ | 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:25 | Matthias247 | didn'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:36 | dyce_ | had no idea playstation 1 only had 2MB of ram |
21:13:01 | dyce_ | Matthias247: ideally, raspberry pi foundation should improve their distribution model for pi zero. |
21:13:17 | dyce_ | hopefully pi zero 2 will do that |
21:13:18 | Matthias247 | the microcontrollers we use in some automotive products have 2MB RAM and Flash. You can get quite a lot of logic in there |
21:13:27 | dyce_ | maybe it will be called pi -1 |
21:13:47 | Matthias247 | I thought the zero was totally uninteresting, because it lacks network |
21:13:59 | dyce_ | im hoping pi zero 2 will have BLE/Wifi |
21:14:07 | dyce_ | that would be fun |
21:14:37 | dyce_ | if you live by a microcenter you can actually get one for 5 dollars |
21:15:07 | dyce_ | dont know when shipping things that could fit in an envelope costed more than a few stamps |
21:17:42 | Matthias247 | I have bought a pi2 wenn it came out and haven't even unpackaged it |
21:17:49 | Matthias247 | probably I don't need one more :) |
21:21:09 | dyce_ | this one is cool too https://wiki.hackerspace.pl/projects:zsun-wifi-card-reader |
21:21:15 | dyce_ | can get for 8-10 dollars |
21:22:23 | Matthias247 | yeah - in the meantime there's quite a lot of interesting hardware for cheap prices |
21:22:36 | Matthias247 | whish 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:49 | cheatfate | vegansk, your latest patch for locks.nim/rlocks.nim not working .... even more [XDeclaredButNotUsed] |
23:11:14 | cheatfate | i 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) |