00:00:03 | * | derka joined #nim |
00:06:18 | * | derka quit (Quit: derka) |
00:14:07 | * | bozaloshtsh joined #nim |
00:20:51 | * | Jesin quit (Read error: Connection reset by peer) |
00:24:22 | * | Jesin joined #nim |
00:25:39 | * | nande joined #nim |
00:40:27 | * | derka joined #nim |
00:41:35 | * | derka quit (Client Quit) |
00:44:00 | * | jeffc quit (Remote host closed the connection) |
00:49:39 | * | jeffc joined #nim |
00:51:24 | * | jeffc quit (Remote host closed the connection) |
01:16:12 | * | bozaloshtsh quit (Quit: WeeChat 1.4) |
01:16:31 | * | bozaloshtsh joined #nim |
01:29:56 | * | space-wizard joined #nim |
01:38:21 | * | jeffc joined #nim |
01:43:27 | * | jeffc quit (Ping timeout: 244 seconds) |
03:50:38 | * | brson quit (Quit: leaving) |
04:22:36 | * | draynium quit (Max SendQ exceeded) |
04:48:47 | * | Jesin quit (Ping timeout: 276 seconds) |
05:49:35 | bozaloshtsh | I'm trying to compile nim code for a 32 bit system on my 64 bit system but --passC:-m32 results in an error: http://hastebin.com/vofidudare.txt |
05:49:43 | bozaloshtsh | is there a way to do this? |
05:52:14 | bozaloshtsh | ah, --cpu:i386 seems to do the trick |
06:01:11 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
06:30:26 | * | gunn_ joined #nim |
06:31:52 | * | draynium joined #nim |
06:33:24 | * | gunn quit (Ping timeout: 260 seconds) |
07:20:34 | * | bozaloshtsh quit (Quit: WeeChat 1.4) |
07:20:50 | * | bozaloshtsh joined #nim |
07:20:52 | * | bozaloshtsh quit (Changing host) |
07:20:52 | * | bozaloshtsh joined #nim |
07:21:56 | * | bozaloshtsh quit (Client Quit) |
07:22:18 | * | bozaloshtsh joined #nim |
07:22:57 | * | bozaloshtsh quit (Client Quit) |
07:23:16 | * | bozaloshtsh joined #nim |
07:23:16 | * | bozaloshtsh quit (Changing host) |
07:23:16 | * | bozaloshtsh joined #nim |
07:55:52 | * | Arrrr joined #nim |
07:59:16 | * | rok joined #nim |
08:20:47 | * | cheatfate joined #nim |
08:28:37 | * | cheatfate quit (Ping timeout: 252 seconds) |
08:30:26 | * | nande quit (Remote host closed the connection) |
08:31:30 | * | Ven joined #nim |
08:45:18 | * | Demon_Fox quit (Remote host closed the connection) |
08:46:41 | * | Matthias247 joined #nim |
09:25:36 | Arrrr | Nice https://golang.org/doc/effective_go.html#embedding |
09:44:03 | * | gokr joined #nim |
09:49:05 | * | deavmi joined #nim |
10:16:06 | * | deavmi quit (Ping timeout: 250 seconds) |
10:28:42 | * | gokr quit (Ping timeout: 260 seconds) |
10:40:32 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
10:53:53 | * | Motan joined #nim |
10:55:52 | niv | Araq_: re: the syslog ticket. https://github.com/nim-lang/Nim/issues/3701 do you want me to add a syslog logger? do you want it in the same file, or a different one? it might get a bit lengthy due to the platform-specific support i would add for osx and lin |
11:00:01 | niv | Araq_: the alternative would be to just patch in notice() and a bit of explainatory documentaiton and make syslog a module instead, i guess |
11:04:36 | * | Trustable joined #nim |
11:05:08 | niv | i'd probably go for the nimble module approach |
11:11:56 | * | derka joined #nim |
11:29:21 | * | Ven joined #nim |
11:30:34 | * | Ven quit (Client Quit) |
11:41:06 | * | GangstaCat quit (Quit: Leaving) |
11:55:02 | * | GangstaCat joined #nim |
11:58:15 | * | zaquest quit (Quit: Leaving) |
12:03:38 | * | zaquest joined #nim |
12:45:15 | * | ephja joined #nim |
13:10:30 | * | cheatfate joined #nim |
13:43:06 | * | draynium quit (Max SendQ exceeded) |
13:50:18 | * | gokr joined #nim |
14:02:45 | * | Matthias247 quit (Quit: Matthias247) |
14:04:10 | * | Matthias247 joined #nim |
14:20:15 | * | jonasac joined #nim |
14:20:55 | * | Trustable_2 joined #nim |
14:22:24 | * | Trustable quit (Ping timeout: 260 seconds) |
14:41:53 | * | seguleh joined #nim |
14:52:34 | * | seguleh quit (Ping timeout: 250 seconds) |
15:01:23 | * | GangstaCat quit (Read error: Connection reset by peer) |
15:18:24 | * | GangstaCat joined #nim |
15:18:58 | * | jonasac quit (Remote host closed the connection) |
15:29:07 | * | jonasac joined #nim |
15:30:19 | * | jonasac quit (Client Quit) |
15:32:46 | * | jiblet joined #nim |
15:32:52 | * | jiblet left #nim (#nim) |
15:38:18 | * | elrood joined #nim |
15:50:12 | * | derka quit (Quit: derka) |
15:50:16 | * | cheatfate quit (Ping timeout: 244 seconds) |
15:53:49 | * | cheatfate joined #nim |
16:13:14 | * | derka joined #nim |
16:14:37 | * | derka quit (Client Quit) |
16:15:06 | * | derka joined #nim |
16:15:27 | * | derka quit (Client Quit) |
16:48:01 | * | cheatfate quit (Ping timeout: 252 seconds) |
16:49:10 | * | space-wizard joined #nim |
16:52:23 | * | Ven joined #nim |
16:52:41 | * | cheatfate joined #nim |
16:56:16 | * | draynium joined #nim |
17:19:51 | * | deavmi joined #nim |
17:20:02 | * | derka joined #nim |
17:20:28 | deavmi | I feel so lazy this weekend, usaulyy I'm not like this. |
17:20:39 | deavmi | The sheer amount of slither.io i have played is just unbelievable |
17:21:48 | * | derka quit (Client Quit) |
17:25:01 | * | Matthias247 quit (Read error: Connection reset by peer) |
17:41:10 | * | derka joined #nim |
17:42:15 | * | rok quit (Quit: rok) |
17:45:10 | * | Jesin joined #nim |
17:45:43 | bozaloshtsh | damn that game |
17:45:59 | bozaloshtsh | shouldn't exist |
18:03:46 | * | GaveUp quit (Quit: You're a bloody puppet!) |
18:05:14 | * | GaveUp joined #nim |
18:33:00 | dom96 | deavmi: lol, that game is too addictive :) |
18:36:54 | zodiak_ | strange question; can I init a type using a tuple or something similar rather than explicitely calling over User(firstname: "foo", lastname: "bar" ...) or having a decompose method that assigns attributes one by one ? |
18:42:30 | dom96 | unfortunately it's either the syntax you showed, or writing a procedure which assigns attributes one by one. |
18:42:56 | dom96 | if you want to experiment, you could try writing a macro which does it for you though :) |
18:43:21 | Arrrr | You may use cast if you have what it takes https://glot.io/snippets/eea4ep0i8s |
18:43:25 | zodiak_ | aahh gotcha gotcha. |
18:43:48 | zodiak_ | oh.. casting .. that may work. let me tinker |
18:44:51 | * | aziz joined #nim |
18:45:49 | Arrrr | Or just go full tuple https://glot.io/snippets/eea4hhn7xe |
18:48:52 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
19:00:13 | dom96 | Arrrr: zodiak_: I wouldn't recommend using `cast`, it's not memory safe. |
19:00:50 | zodiak_ | dom96: okily dokily |
19:01:47 | * | rok joined #nim |
19:02:42 | zodiak_ | is there anyway to list a type's fields ? even if I can do that, the init method would become a lot svelter |
19:02:55 | zodiak_ | type introspection I guess |
19:04:13 | zodiak_ | I mean, I could always jst have a set with the type's fieldnames inside and iterate over that during my init/create method |
19:04:30 | zodiak_ | but, duplication between that and the type declaration would.. urm .. well.. "irk" me |
19:04:33 | zodiak_ | it "feels" weird |
19:04:48 | dom96 | http://nim-lang.org/docs/system.html#fieldPairs.i,T |
19:04:51 | dom96 | That might help |
19:05:00 | zodiak_ | aaahhh |
19:05:06 | zodiak_ | how did I miss that ?! danke |
19:07:21 | * | libman joined #nim |
19:15:58 | * | Arrrr quit (Quit: WeeChat 1.4) |
19:17:13 | dom96 | libman: is there a copyfree Twitter (like your FB page)? |
19:17:41 | libman | Used to be @CopyfreeNews, run by apotheon. Not very active lately. |
19:18:12 | libman | I was hoping other people would pitch in with my social media outreach initiative, including on Google+, etc. |
19:19:09 | libman | I finally started writing something in nim. `gitlr` - a really stupid git replacement that works with GitHub, etc via their HTTP API's. |
19:22:38 | * | derka quit (Quit: derka) |
19:29:15 | dom96 | libman: Yeah. Pretty sure I follow that account. |
19:29:30 | dom96 | Awesome that you're working on something in Nim :) |
19:29:35 | dom96 | is it on Github? |
19:30:03 | libman | Not yet. Most of my stuff is too ugly for GitHub. Except a few shell scripts. Which are also ugly. |
19:31:27 | * | derka joined #nim |
19:32:16 | libman | The latest developments in my language choice drama is that I've given up on Copyfree Python, fed up with NodeJS, and soured languages married to LLVM (Rust, Julia, etc). Always hated Perl (since the 90s), PHP, and Ruby. Where does that leave me? |
19:32:21 | libman | Go vs Nim. |
19:32:36 | libman | *soured ON |
19:35:01 | dom96 | libman: why the dislike of LLVM langs? |
19:35:21 | zodiak_ | stupid question #3 of the day. How to do something like; var u = User(); var f = "hit_count"; u[f]=1 ? |
19:36:24 | libman | My long-term goal is to build a pure-Copyfree software environments. LLVM is paying lawyers right now to decide whether to switch to Apache license. |
19:36:31 | bozaloshtsh | zodiak_: define a proc `[]`(u: User, s: string, v: int) = # do something with s and v |
19:37:46 | zodiak_ | bozaloshtsh: well, it's the "do something" that has me stymed. If only because I don't see an 'addPair' method for types/objects |
19:37:54 | * | derka quit (Ping timeout: 250 seconds) |
19:38:17 | bozaloshtsh | maybe you want to store it in a table? |
19:38:36 | dom96 | zodiak_: what should u[f] = 1 do to `u`? |
19:39:01 | zodiak_ | I mean, I get designing a proc to allow the syntax, I guess my really real question is, how do I update a type/object with a fieldname inside a var ? |
19:39:24 | zodiak_ | I don't mind if u[f] explodes with 'field not found' or whatever if it doesn't exist - that's my stupid right there |
19:40:58 | dom96 | oh, you want to translate `u["blah"] = 12` to `u.blah = 12` ? |
19:41:11 | zodiak_ | dom96: pretty much, yup |
19:42:43 | dom96 | that may be tricky |
19:43:04 | bozaloshtsh | you could just hardcode values of f and use a case statement |
19:43:26 | zodiak_ | oh.. yeah.. I could do that |
19:43:36 | zodiak_ | +1 |
19:43:38 | deavmi | dom96: lol |
19:45:16 | bozaloshtsh | if you don't know f at compile time I don't think it's even possible (in the general case) |
19:46:13 | zodiak_ | bozaloshtsh: gotcha, so no real sort of 'eval' or friends because that works at runtime and it will bork at compile. |
19:47:15 | bozaloshtsh | yup, I think there's some macro magic stuff you can do to do what you want but it'll only work if the field you're accessing is known at compile tiem |
19:47:44 | zodiak_ | (thumbsup) I think my pythonic upbringing has slightly spoiled me ;) |
19:47:58 | zodiak_ | "oh, jst look at __fields__ and .. oh.. balls" |
19:48:33 | bozaloshtsh | oh yeah, the separation of compile-time and run-time is a big hurdle when coming from scripting languages |
19:49:49 | zodiak_ | this is why I have faith in dom96's book to set us all straight. No pressure. Jst fix all interpreted users assumptions. :P |
19:58:51 | dom96 | lol |
20:03:48 | * | gsingh93 quit (Quit: ZNC - http://znc.in) |
20:07:00 | * | Jesin quit (Quit: Leaving) |
20:08:56 | * | Jesin joined #nim |
20:16:16 | * | deavmi quit (Ping timeout: 250 seconds) |
20:30:35 | * | rok quit (Quit: rok) |
20:31:18 | * | onionhammer quit (Quit: WeeChat 1.0.1) |
20:36:40 | * | newbie|4 joined #nim |
20:48:28 | * | draynium quit (Max SendQ exceeded) |
20:49:52 | * | jonasac joined #nim |
20:50:34 | * | jonasac quit (Read error: Connection reset by peer) |
20:51:01 | * | jonasac joined #nim |
20:52:21 | * | newbie|4 quit () |
20:54:55 | * | libman quit (Read error: No route to host) |
21:01:46 | * | Demon_Fox joined #nim |
21:04:40 | * | brson joined #nim |
21:09:49 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:14:52 | * | Trustable_2 quit (Remote host closed the connection) |
21:30:59 | * | elrood quit (Quit: Leaving) |
21:31:42 | * | jonasac quit () |
21:35:33 | * | ephja quit (Ping timeout: 240 seconds) |
21:53:38 | * | onionhammer joined #nim |
21:57:37 | * | cheatfate quit (Ping timeout: 244 seconds) |
22:01:28 | * | libman joined #nim |
22:01:31 | * | manchesterboy joined #nim |
22:01:45 | manchesterboy | ok to ask a sockets question? |
22:02:46 | * | Jesin quit (Quit: Leaving) |
22:03:01 | manchesterboy | My goal is to passively read packets without having to connect to a particular port, on localhost. Are there any examples that highlight the differences in c to nim? |
22:03:24 | dom96 | hello manchesterboy |
22:03:32 | manchesterboy | hi dom96 |
22:03:34 | dom96 | it's okay to ask any questions related to Nim here |
22:03:45 | manchesterboy | great to hear |
22:03:58 | dom96 | I don't think the Nim standard library has anything that will let you do that |
22:04:06 | dom96 | So you might need to use raw POSIX/WinAPIs |
22:04:52 | manchesterboy | okay, I had a feeling that might be the case. Thanks for the heads-up |
22:05:04 | apotheon | dom96: I don't know of any specifically copyfree-oriented Twitter accounts other than mine, and I'm not very good at social media stuff. |
22:05:39 | dom96 | manchesterboy: if you know how to do it (or look up a way) in C then it should be pretty easy to translate it into Nim. |
22:05:40 | * | Jesin joined #nim |
22:06:15 | dom96 | apotheon: The reason I asked if because I see libman posting many things on Facebook. I think it would reach a much larger audience on Twitter. |
22:06:25 | dom96 | *I asked is |
22:06:46 | libman | I get zero response on twitter. |
22:06:58 | libman | https://twitter.com/libmn |
22:07:54 | * | aziz quit (Remote host closed the connection) |
22:14:12 | apotheon | dom96: Yeah . . . but as I said, I'm pretty bad at this social media stuff. |
22:14:51 | apotheon | libman: You've got 82 followers. |
22:16:16 | manchesterboy | dom96 this is what I'm going to try to convert from c to nim https://gist.github.com/iolloyd/df7ab9ad3a2b4d522fba6bb4dfe56b82 |
22:17:18 | dom96 | manchesterboy: Cool. You should be able to use the `net` module for that :) |
22:18:43 | manchesterboy | dom96 yeah, great. I wish I'd jumped on this channel sooner. Good night from Newcastle UK |
22:19:32 | dom96 | manchesterboy: Good night from Belfast UK :) |
22:26:28 | * | libman quit (Ping timeout: 250 seconds) |
22:27:34 | * | manchesterboy quit (Ping timeout: 250 seconds) |
22:49:00 | * | libman joined #nim |
22:57:40 | * | libman quit (Ping timeout: 250 seconds) |
23:07:24 | * | GangstaCat quit (Ping timeout: 260 seconds) |
23:14:29 | * | GangstaCat joined #nim |
23:20:31 | * | Motan quit (Quit: Page closed) |
23:32:41 | * | cheatfate joined #nim |
23:32:59 | * | draynium joined #nim |
23:40:00 | * | libman joined #nim |
23:41:13 | libman | Sorry about even-worse-than-usual connection. I'm connecting from one of the Tent City camps I'm visiting today. Got a nice little generator, but someone needed the phone I was using for a wifi hotspot. |
23:42:00 | libman | apotheon: That's nothing, on Facebook I have many thousands. Though less than a thousand for that Software page. If only I had people helping me share to groups... |
23:57:53 | * | libman quit (Remote host closed the connection) |