00:04:44 | * | wuehlmaus joined #nim |
00:05:08 | * | wuehlmaus is now known as Guest44362 |
00:05:46 | * | arnetheduck_ quit (Read error: Connection reset by peer) |
00:05:57 | * | arnetheduck joined #nim |
00:10:52 | * | desophos quit (Ping timeout: 250 seconds) |
00:10:56 | * | yglukhov quit (Remote host closed the connection) |
00:12:54 | * | Demon_Fox quit (Quit: Leaving) |
00:15:07 | * | Demon_Fox joined #nim |
00:50:25 | * | Jesin joined #nim |
00:55:10 | * | ics quit (Quit: Connection closed for inactivity) |
00:55:28 | * | gokr quit (Ping timeout: 244 seconds) |
00:58:36 | * | kulelu88 quit (Quit: Leaving) |
01:11:25 | * | yglukhov joined #nim |
01:15:28 | * | fastrom1 quit (Quit: Leaving.) |
01:15:33 | * | yglukhov quit (Ping timeout: 240 seconds) |
01:17:18 | * | Guest44362 quit (Ping timeout: 246 seconds) |
01:23:16 | * | rolha joined #nim |
01:25:08 | * | wuehlmaus joined #nim |
01:25:32 | * | wuehlmaus is now known as Guest43177 |
01:37:02 | * | vegansk joined #nim |
01:37:02 | * | beatmox joined #nim |
01:37:02 | * | pandada8 joined #nim |
01:37:02 | * | regtools joined #nim |
01:37:02 | * | cncl joined #nim |
01:38:18 | * | chemist69 quit (Ping timeout: 272 seconds) |
01:51:08 | * | chemist69 joined #nim |
02:01:22 | * | vendethiel- joined #nim |
02:02:16 | * | vendethiel quit (Ping timeout: 264 seconds) |
02:12:12 | fvs | howto compress a string using zlib? |
02:20:01 | * | desophos joined #nim |
02:22:03 | * | rolha quit (Ping timeout: 276 seconds) |
02:25:47 | * | rolha joined #nim |
02:26:27 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
02:28:26 | * | hendi__ joined #nim |
02:31:51 | * | hendi_ quit (Ping timeout: 240 seconds) |
02:37:40 | * | fvs quit (Remote host closed the connection) |
02:49:05 | * | brson joined #nim |
02:57:57 | * | GangstaCat joined #nim |
03:00:51 | * | Senketsu quit (Read error: Connection reset by peer) |
03:13:31 | * | yglukhov joined #nim |
03:18:28 | * | yglukhov quit (Ping timeout: 264 seconds) |
03:18:56 | * | brson quit (Quit: leaving) |
03:30:20 | * | Kaini quit (Remote host closed the connection) |
03:30:34 | * | Kaini joined #nim |
03:31:09 | * | ddl_smurf quit (Quit: ddl_smurf) |
03:44:58 | * | zaquest quit (Ping timeout: 272 seconds) |
03:45:26 | * | zaquest joined #nim |
03:49:07 | * | fvs joined #nim |
03:54:35 | fvs | howto use zip. Getting a "cannot open zip" error. I have a import zip statement and dependency set in my nible file. |
03:55:17 | fvs | *nimble( |
04:10:48 | * | kssreeram joined #nim |
04:10:53 | fvs | fvs, import zip/zlib |
04:12:45 | * | GangstaCat quit (Quit: Leaving) |
04:28:39 | * | chemist69 quit (Ping timeout: 260 seconds) |
04:28:59 | * | chemist69 joined #nim |
04:58:57 | * | endragor joined #nim |
05:01:44 | * | philo joined #nim |
05:06:26 | * | Demon_Fox quit (Quit: Leaving) |
05:06:40 | * | Demon_Fox joined #nim |
05:15:32 | * | yglukhov joined #nim |
05:16:15 | * | kssreeram quit (Ping timeout: 276 seconds) |
05:19:49 | * | yglukhov quit (Ping timeout: 250 seconds) |
05:24:10 | * | s4 joined #nim |
05:28:49 | dyce_ | hello good morning |
05:29:54 | fvs | hi |
05:30:01 | * | desophos_ joined #nim |
05:30:11 | * | desophos quit (Disconnected by services) |
05:30:13 | * | desophos_ is now known as desophos |
05:31:03 | * | pafmaf joined #nim |
05:36:07 | * | bacterius joined #nim |
05:39:38 | dyce_ | i think most people here are from europe |
05:39:45 | dyce_ | so everyone is sleeping |
05:40:31 | fvs | 00:40 in TX |
05:49:30 | * | Demon_Fox_ joined #nim |
05:53:28 | * | Demon_Fox quit (Ping timeout: 252 seconds) |
05:58:11 | dyce_ | fvs: i feel like people are only on IRC when they are at work |
06:00:49 | fvs | yep, and probably only check it when called |
06:02:05 | fvs | i always use irc when learning a new language |
06:17:25 | * | yglukhov joined #nim |
06:18:08 | * | endragor_ joined #nim |
06:19:41 | * | akamaus joined #nim |
06:21:31 | * | endragor quit (Ping timeout: 252 seconds) |
06:22:09 | * | yglukhov quit (Ping timeout: 258 seconds) |
06:28:23 | * | fvs left #nim ("ERC (IRC client for Emacs 24.5.1)") |
06:36:52 | * | endragor_ quit (Remote host closed the connection) |
06:37:21 | * | endragor joined #nim |
06:55:51 | chemist69 | dyce_: concerning your some_list last index question: you would have to use some_list[some_list.high] |
07:10:56 | dyce_ | thanks chemist69 |
07:11:13 | dyce_ | chemist69: would you know why that "1 2".split().pop() doesnt work? |
07:11:20 | dyce_ | too many functions? |
07:11:40 | dyce_ | or wait |
07:13:04 | dyce_ | var x = "1 2".split() then x.pop() works |
07:27:25 | * | desophos quit (Read error: Connection reset by peer) |
07:27:48 | * | brechtm joined #nim |
07:28:40 | * | yglukhov joined #nim |
07:29:30 | * | Trustable joined #nim |
07:32:51 | * | yglukhov quit (Ping timeout: 240 seconds) |
07:36:07 | * | philo quit (Ping timeout: 260 seconds) |
07:48:04 | * | fastrom joined #nim |
07:48:33 | * | philo joined #nim |
07:55:14 | * | TheLemonMan joined #nim |
07:59:51 | * | ddl_smurf joined #nim |
08:02:19 | * | akamaus quit (Ping timeout: 250 seconds) |
08:07:51 | chemist69 | The first ex. does not work, because "1 2".split() is an immutable object from which nothing can be "popped" (but I am not a computer scientist) |
08:08:37 | * | coffeepot joined #nim |
08:09:33 | * | RGeisel joined #nim |
08:18:10 | * | fastrom quit (Quit: Leaving.) |
08:21:30 | * | rolha quit (Ping timeout: 246 seconds) |
08:47:37 | * | rolha joined #nim |
08:49:52 | * | vendethiel joined #nim |
08:50:39 | * | yglukhov joined #nim |
08:51:28 | * | vendethiel- quit (Ping timeout: 264 seconds) |
08:51:34 | * | yglukhov quit (Remote host closed the connection) |
08:53:07 | * | kssreeram joined #nim |
09:03:21 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
09:09:23 | * | bjz joined #nim |
09:09:51 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
09:16:40 | vktec | Anyone know if there are Nim bindings for guile or another scheme implementation, such as chibi? |
09:17:02 | vktec | Preferably Guile |
09:17:53 | vktec | Hmm... found this one[1] but it's from 3 years ago :-/ |
09:17:58 | vktec | [1] https://github.com/roobie/nimrod-guile |
09:18:50 | * | yglukhov joined #nim |
09:22:50 | * | yglukhov quit (Ping timeout: 244 seconds) |
09:33:41 | * | cheatfate quit (Ping timeout: 244 seconds) |
09:33:53 | * | gokr joined #nim |
09:38:58 | * | Demon_Fox_ quit (Quit: Leaving) |
09:46:00 | * | arnetheduck quit (Ping timeout: 276 seconds) |
09:48:52 | * | elrood joined #nim |
09:59:49 | * | cheatfate joined #nim |
10:10:01 | * | yglukhov joined #nim |
10:13:03 | * | bacterius quit (Quit: Leaving) |
10:14:50 | * | vendethiel quit (Ping timeout: 258 seconds) |
10:15:39 | * | vendethiel joined #nim |
10:23:11 | * | cheatfate quit (Read error: Connection reset by peer) |
10:23:30 | * | cheatfate joined #nim |
10:24:12 | * | xet7 quit (Quit: Leaving) |
10:30:19 | * | xet7_ joined #nim |
10:31:56 | * | RGeisel left #nim (#nim) |
10:35:15 | * | fredrik92 joined #nim |
10:44:38 | dom96 | For anybody still looking to buy Nim in Action, you can use code wm070116lt today to get 50% off https://manning.com/books/nim-in-action?a_aid=niminaction&a_bid=78a27e81 |
10:45:11 | ldlework | dom96: is it complete? |
10:45:21 | dom96 | ldlework: not yet |
10:45:42 | ldlework | what does buying it get you |
10:46:50 | ldlework | I guess I mean will I ever get a physical copy? |
10:47:33 | ldlework | maybe that's what "pBook" is |
10:47:34 | dom96 | You'll get an ebook containing everything that's been written so far and a physical copy once the book is finished. |
10:48:06 | * | brechtm quit (Read error: No route to host) |
10:48:35 | * | brechtm joined #nim |
10:50:15 | dom96 | The ebook is updated every month with a new chapter and/or fixes for other chapters. |
10:54:51 | ldlework | dom96: so I bought the book, and then it sent me a recipt and told me to login, but I can't login because it never had me setup a password, and I can't register because it created an account from my email address and it wont send me a forgot password email lol |
10:55:23 | dom96 | Oh Manning... |
10:55:54 | dom96 | Why won't it send you a forgot password link? Does it give an error? |
10:56:01 | ldlework | Nope just never arrives |
10:56:22 | dom96 | Maybe it just takes a while. |
10:57:26 | ldlework | I sent them a support request just in case |
11:00:49 | dom96 | Let me know if they don't reply :) |
11:09:17 | ldlework | Were the results of the survey ever published? |
11:14:27 | chemist69 | dom96: great tip, thanks for the code, just bought the book! |
11:14:46 | dom96 | ldlework: the survey is still open and will be for at least another 2 weeks. |
11:14:57 | dom96 | chemist69: awesome, thanks for picking it up! :) |
11:15:07 | ldlework | chemist69: did you get logged in? |
11:15:22 | chemist69 | just trying, hang on |
11:15:24 | hendi__ | guys, I'm sure you already know, but Nim is awesome! I've rewritten a python script (which was estimated to be required to be deployed to 4 beefy servers), ported it to Nim, and now *one core* on my computer is enough for our load! |
11:17:48 | chemist69 | ldlework: still trying, new passwd is being sent.... |
11:21:43 | ldlework | I didn't get shit :) |
11:21:58 | dom96 | hendi__: cool. What does the script do? |
11:24:36 | hendi__ | it aggregates data from several sources, stores it in a custom in-memory format and serves it via an HTTP API |
11:25:05 | chemist69 | ldlework: I am also getting nothing... |
11:25:17 | ldlework | \o/ |
11:31:54 | dom96 | ldlework: chemist69: sorry about this guys, sadly I think the only thing you can do is contact Manning support. |
11:32:25 | chemist69 | hey, it's not your fault, no problem. |
11:32:40 | hendi__ | the book is worth the waiting, though :) |
11:32:56 | chemist69 | so I've heard :) |
11:38:11 | dom96 | Glad to hear that :D |
11:44:53 | * | nsf quit (Quit: WeeChat 1.5) |
11:48:46 | * | rolha quit (Ping timeout: 252 seconds) |
12:01:53 | * | kulelu88 joined #nim |
12:01:53 | * | kulelu88 quit (Changing host) |
12:01:53 | * | kulelu88 joined #nim |
12:19:30 | * | BitPuffin joined #nim |
12:25:48 | * | KaiXBerg joined #nim |
13:24:21 | hendi__ | Any pointers how I should use getnameinfo(3) from Nim? |
13:25:29 | * | euantor joined #nim |
13:26:45 | * | vendethiel- joined #nim |
13:27:04 | * | vendethiel quit (Ping timeout: 260 seconds) |
13:31:33 | * | ftsf quit (Read error: Connection reset by peer) |
13:32:34 | dom96 | hendi__: import posix or winlean and use it just like you would in C I guess http://nim-lang.org/docs/theindex.html#etnameinf |
13:33:11 | hendi__ | wow, didn't know about import posix! thanks! |
13:33:22 | * | ftsf joined #nim |
13:41:47 | * | s4 quit (Quit: Konversation terminated!) |
13:49:50 | hendi__ | Error: cannot evaluate at compile time: EAI_AGAIN |
13:50:07 | hendi__ | ^ happens when I do `case ret of EAI_AGAIN` after calling the function |
13:50:14 | hendi__ | `echo $EAI_AGAIN` works fine though |
13:52:55 | * | euantor quit (Read error: Connection reset by peer) |
13:55:15 | * | kulelu88 left #nim ("Leaving") |
13:59:18 | * | nsf joined #nim |
14:06:20 | * | heretobang joined #nim |
14:13:30 | dom96 | hendi__: `of` seems wrong? |
14:21:03 | hendi__ | huh? isn't the syntax `case foo of bar`? |
14:21:59 | dom96 | oh, yeah, the lack of newline confused me. |
14:22:21 | dom96 | need to see the rest of your code :) |
14:23:39 | * | here2bang joined #nim |
14:23:52 | hendi__ | haha, okay :) |
14:23:52 | hendi__ | http://pastebin.com/T9WG7D8m |
14:25:48 | * | heretobang quit (Ping timeout: 250 seconds) |
14:28:21 | * | BitPuffin quit (Remote host closed the connection) |
14:29:12 | dom96 | interesting |
14:30:49 | * | nd_ quit (Quit: Leaving) |
14:31:14 | dom96 | I think case statements cannot match on variables |
14:31:31 | dom96 | Because exhaustiveness checking cannot be done then |
14:32:07 | hendi__ | hm.. what do you mean by "variables" specifically? |
14:32:14 | hendi__ | for the exhaustiveness check, I could add an `else` |
14:32:46 | hendi__ | https://github.com/nim-lang/Nim/blob/master/lib/posix/posix.nim#L1761 |
14:33:02 | hendi__ | maybe that's it; because EAI_AGAIN comes from some external C header |
14:33:07 | dom96 | EAI_* is defined as a variable |
14:33:22 | dom96 | So the compiler cannot determine its value at compile-time |
14:34:23 | dom96 | Might be worth creating an issue about this or asking about it on the forum. |
14:34:48 | hendi__ | yup, will do! |
14:35:02 | hendi__ | can I do a "define as variable" on my own? |
14:35:11 | hendi__ | then the testcase for the bug wouldn't need to import posix |
14:35:51 | hendi__ | oh, I see, it's just `var EAI_AGAIN` without a value |
14:35:53 | hendi__ | makes sense! |
14:41:44 | * | rolha joined #nim |
14:42:11 | * | BitPuffin joined #nim |
14:48:42 | * | rolha quit (Ping timeout: 272 seconds) |
14:51:17 | cheatfate | hendi__, what gives you this code 'import posix echo(EAI_AGAIN)'? |
14:52:08 | hendi__ | cheatfate, -3 |
14:56:03 | cheatfate | hendi__, yep, looks like because EAI_AGAIN is variable, you need to use if... elif.... elif.... else |
14:56:56 | cheatfate | and this is not a bug, its just a limitation of declaration EAI_AGAIN as variable... |
14:57:10 | * | pregressive joined #nim |
14:57:33 | * | irrequietus joined #nim |
14:58:36 | hendi__ | cheatfate, thanks for the explanation. Though I don't understand how that shouldn't be a bug: the type is known at compile-time, the `else:` makes the case statement comprehensive. Why is the value needed at compile time? |
15:00:01 | cheatfate | value of EAI_AGAIN is now known by Nim compiler, and only known by C compiler... |
15:00:11 | cheatfate | is now know = is not known |
15:01:11 | hendi__ | right, but if the Nim compiler has to know the value compile-time, that would mean that every case-statement would be compiled to the single statement of the "true" branch, no? |
15:06:48 | * | TheLemonMan quit (Quit: "It's now safe to turn off your computer.") |
15:16:28 | cheatfate | it needs to know values of `of EAI_AGAIN` at compile time not `case ret` |
15:16:38 | cheatfate | to make branches |
15:22:18 | * | rolha joined #nim |
15:27:35 | hendi__ | that makes perfect sense. thank you! |
15:29:09 | * | pafmaf quit (Quit: Leaving) |
15:30:20 | * | ozra joined #nim |
15:31:36 | vktec | Can anyone tell me what's wrong with this code? http://paste.debian.net/773629/ |
15:34:12 | vktec | Ping me if you have a solution, I'll be back in a bit |
15:34:26 | * | ozra left #nim (#nim) |
15:41:37 | hendi__ | vktec, `func` is a reserved keyword in Nim |
15:42:17 | hendi__ | so you have to rewrite that as `proc callFunc(f: proc(): void) = f()` |
16:01:25 | * | endragor quit (Remote host closed the connection) |
16:03:39 | * | rolha quit (Ping timeout: 276 seconds) |
16:11:30 | namnguyen | interesting read about func vs proc |
16:11:41 | namnguyen | var vs let |
16:18:11 | * | pafmaf joined #nim |
16:24:06 | hendi__ | I signed up to the Forum but haven't gotten the confirmation email yet. Is there anybody to ping? Or is it known to sometimes take a while? |
16:31:42 | * | brechtm quit (Remote host closed the connection) |
16:32:11 | * | hendi__ quit (Ping timeout: 240 seconds) |
16:35:51 | dyce_ | interesting so "1 2".split().pop() doesnt work because .split() isnt assigned to a variable and is therefore immutable? |
16:41:05 | * | brson joined #nim |
16:52:38 | * | pregressive quit (Remote host closed the connection) |
16:55:32 | * | miere joined #nim |
17:02:50 | * | couven92 joined #nim |
17:09:19 | dyce_ | ah so "1 2".split().pop is the same as let x = "1 2".split() ; x.pop() (let is immutable) vs var x = "1 2".split() ; x.pop() works. |
17:12:12 | miere | hello people, can someone tell me how to dereference char from raw pointer? in C that would look like: char* x = (char*)malloc(4); char c = x[0] |
17:12:58 | * | pafmaf quit (Quit: Leaving) |
17:15:48 | * | yglukhov quit (Ping timeout: 276 seconds) |
17:21:50 | cheatfate | The when statement enables conditional compilation techniques. As a special syntactic extension, the when construct is also available within object definitions. |
17:21:59 | cheatfate | is it not works anymore? |
17:22:12 | cheatfate | i mean `when` inside `object` definitions |
17:23:32 | miere | @miere: just casted pointer to cstring |
17:32:47 | * | akamaus joined #nim |
17:43:00 | * | KaiXBerg quit (Quit: Page closed) |
17:53:06 | * | yglukhov joined #nim |
18:00:01 | * | Matthias247 joined #nim |
18:02:46 | * | yglukhov quit (Remote host closed the connection) |
18:12:14 | * | yglukhov joined #nim |
18:13:39 | * | akamaus quit (Ping timeout: 276 seconds) |
18:16:57 | * | GangstaCat joined #nim |
18:20:57 | * | yglukhov quit (Remote host closed the connection) |
18:23:23 | * | yglukhov joined #nim |
18:29:26 | * | saml quit (Quit: Leaving) |
18:41:54 | * | yglukhov quit (Remote host closed the connection) |
18:43:04 | * | michael_campbell quit (Read error: Connection reset by peer) |
18:46:53 | * | yglukhov joined #nim |
18:49:10 | * | philo quit (Remote host closed the connection) |
19:19:08 | * | BitPuffin quit (Read error: Connection reset by peer) |
19:20:36 | * | abruanese quit (Read error: Connection reset by peer) |
19:22:28 | * | BlaXpirit quit (Quit: Bye) |
19:22:51 | * | BlaXpirit joined #nim |
19:27:26 | dyce_ | is there a style guide |
19:27:27 | dyce_ | https://rosettacode.org/wiki/Globally_replace_text_in_several_files#Nim |
19:27:52 | dyce_ | is the nim way not to use parenthesis? |
19:30:04 | * | akamaus joined #nim |
19:37:04 | chemist69 | dyce_: in Nim, you have uniform function call syntax (UFCS), which means echo(a) is the same as echo a and also a.echo(), and when there are no parameters, the parentheses can be omitted: a.echo. In general, myfunc(a, b) ist the same as a.myfunc(b) |
19:39:23 | dyce_ | chemist69: can you make an iterator function directly into a sequence? |
19:42:57 | * | NimBot joined #nim |
19:43:04 | * | ludocode joined #nim |
19:43:17 | dyce_ | chemist69: yeah i just read iterator can only be called via loops |
19:46:16 | * | irrequietus quit () |
19:46:39 | dyce_ | so if i define echo its thisclass.echo() but you cannot do "123".thisclass.echo |
19:47:27 | * | ldlework joined #nim |
19:48:01 | * | Sergio965 joined #nim |
19:48:03 | * | heretobang joined #nim |
19:48:31 | * | allan0 joined #nim |
19:51:13 | * | here2bang quit (Ping timeout: 250 seconds) |
19:52:12 | * | Demon_Fox joined #nim |
19:54:31 | * | rektide joined #nim |
19:55:01 | * | taotetek joined #nim |
19:55:08 | * | nsf joined #nim |
19:55:21 | * | taotetek is now known as Guest94379 |
19:55:37 | * | federico3 joined #nim |
20:00:04 | * | yglukhov_ quit (Remote host closed the connection) |
20:00:33 | * | irrequietus joined #nim |
20:01:48 | * | yglukhov joined #nim |
20:02:21 | * | zodiak joined #nim |
20:06:17 | * | zodiak_ quit (Ping timeout: 260 seconds) |
20:07:16 | * | akamaus quit (Ping timeout: 272 seconds) |
20:13:25 | * | abruanese joined #nim |
20:26:45 | * | fastrom joined #nim |
20:34:02 | * | yglukhov quit (Read error: Connection reset by peer) |
20:34:37 | * | yglukhov joined #nim |
20:37:06 | * | shodan45 joined #nim |
20:42:25 | * | GangstaCat quit (Quit: Leaving) |
20:45:00 | * | fastrom1 joined #nim |
20:45:00 | * | fastrom quit (Read error: Connection reset by peer) |
20:46:33 | * | fastrom joined #nim |
20:49:11 | * | fastrom1 quit (Ping timeout: 240 seconds) |
20:53:14 | * | elrood quit (Quit: Leaving) |
20:57:49 | * | xet7_ quit (Read error: Connection reset by peer) |
21:02:26 | * | j0oo0 joined #nim |
21:07:47 | * | dom96 quit (Changing host) |
21:07:47 | * | dom96 joined #nim |
21:14:17 | * | fastrom quit (Quit: Leaving.) |
21:23:32 | * | j0oo0 left #nim (#nim) |
21:23:45 | * | ozra joined #nim |
21:41:03 | * | irrequietus quit (Remote host closed the connection) |
21:50:50 | * | kier_ joined #nim |
21:53:04 | * | kier quit (Write error: Broken pipe) |
21:53:06 | * | Learath2 quit (Excess Flood) |
21:53:20 | * | Learath2 joined #nim |
21:53:20 | * | xet7 joined #nim |
22:04:55 | * | desophos joined #nim |
22:06:06 | * | miere quit (Read error: Connection reset by peer) |
22:39:52 | * | xet7 quit (Quit: Leaving) |
22:43:04 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:43:46 | * | xet7 joined #nim |
22:55:04 | * | xet7 quit (Quit: Leaving) |
22:56:03 | * | Trustable quit (Remote host closed the connection) |
23:10:06 | * | GangstaCat joined #nim |
23:17:54 | * | PMunch joined #nim |