<< 05-05-2016 >>

00:01:28*gokr quit (Ping timeout: 244 seconds)
00:09:36*yglukhov joined #nim
00:12:39*derka quit (Quit: derka)
00:13:02*derka joined #nim
00:13:26*derka quit (Client Quit)
00:13:50*yglukhov quit (Ping timeout: 250 seconds)
00:55:22*libman left #nim (#nim)
00:58:37*PMunch quit (Quit: leaving)
00:59:53*shodan45 quit (Quit: Konversation terminated!)
01:11:02*yglukhov joined #nim
01:12:46*chemist69 quit (Ping timeout: 250 seconds)
01:15:33*yglukhov quit (Ping timeout: 240 seconds)
01:21:19*brson quit (Quit: leaving)
01:21:33*brson joined #nim
01:23:32*pregressive joined #nim
01:26:22*chemist69 joined #nim
01:51:36*brson quit (Quit: leaving)
01:54:11*Trustable_2 joined #nim
01:57:57*Trustable quit (Ping timeout: 276 seconds)
02:33:20*Trustable_2 quit (Remote host closed the connection)
02:38:21*fastrom joined #nim
03:12:24*yglukhov joined #nim
03:16:45*yglukhov quit (Ping timeout: 246 seconds)
03:18:11*bozaloshtsh joined #nim
03:31:45*kseg joined #nim
03:54:11*bozaloshtsh quit (Changing host)
03:54:11*bozaloshtsh joined #nim
04:13:43*pregressive quit (Remote host closed the connection)
04:15:49*endragor joined #nim
04:50:35*fastrom quit (Quit: Leaving.)
05:13:48*yglukhov joined #nim
05:18:22*yglukhov quit (Ping timeout: 265 seconds)
05:26:16*endragor quit (Remote host closed the connection)
05:30:01*endragor joined #nim
05:34:05*jeffc_ joined #nim
05:46:55*s4 joined #nim
06:02:15*der-landgraf quit (Quit: WeeChat 1.4)
06:06:14*der-landgraf joined #nim
06:15:53*jeffc_ quit (Ping timeout: 265 seconds)
06:18:57*endragor_ joined #nim
06:20:24*jeffc joined #nim
06:22:22*endragor quit (Ping timeout: 260 seconds)
06:36:52*endragor_ quit (Remote host closed the connection)
06:37:20*endragor joined #nim
06:40:27*Ven joined #nim
06:52:04*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
06:54:08*space-wizard joined #nim
06:58:49*jeffc quit (Remote host closed the connection)
07:14:04*endragor quit (Remote host closed the connection)
07:14:38*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
07:15:15*yglukhov joined #nim
07:20:21*yglukhov quit (Ping timeout: 276 seconds)
07:21:39*GangstaCat quit (Ping timeout: 260 seconds)
07:34:10*GangstaCat joined #nim
07:35:32*endragor joined #nim
07:36:37*rok joined #nim
07:40:57*fastrom joined #nim
07:41:26*fastrom quit (Remote host closed the connection)
07:41:53*fastrom joined #nim
07:59:38*jeffc joined #nim
08:04:01*jeffc quit (Ping timeout: 252 seconds)
08:04:51*Matthias247 joined #nim
08:22:32*GangstaCat quit (Quit: Leaving)
08:28:06*GangstaCat joined #nim
08:28:16*yglukhov joined #nim
08:33:20*yglukhov quit (Ping timeout: 276 seconds)
08:33:59*silven quit (Ping timeout: 260 seconds)
08:34:31*silven joined #nim
08:35:20*der-landgraf quit (Quit: WeeChat 1.4)
08:39:32*der-landgraf joined #nim
09:06:18*der-landgraf quit (Quit: WeeChat 1.4)
09:07:13*derka joined #nim
09:07:39*der-landgraf joined #nim
09:09:00*zxtx quit (Read error: Connection reset by peer)
09:28:08*elrood joined #nim
09:28:15*Demon_Fox quit (Quit: Leaving)
09:32:54*gokr joined #nim
09:34:34*mrkishi quit (Quit: bye)
09:38:18*wismas joined #nim
09:38:53*yglukhov joined #nim
09:40:24*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:40:52ksegis there a rwlock somewhere?
09:43:14*yglukhov quit (Ping timeout: 244 seconds)
09:43:21wismashi! I'm about to read the nim manual. From the intro it seems like it ticks all the boxes for my project, only thing though, can I completely disable the GC? I'm looking into getting into audio programming, and every time my callback gets called, it has to return in 1.5ms or even less depending on the user's settings, and it gets called every 1.5ms or less as far as I understand this (I'm a novice in both programming and audio programmin
09:44:08wismas(the boxes to tick are: compiled to native code, can get low level, arbitrary ast modifications at compile time via macros)
09:44:49kseg@wismas: I’m new too, but --gc:none is what you want I think
09:49:01dom96or you can use the real-time features to force the GC to run for no more than 1.5ms
09:50:16dom96kseg: ony locks I'm aware of are in the locks module http://nim-lang.org/docs/locks.html
09:50:50ksegdom96: thanks, will roll my own
09:51:25dom96kseg: great, make sure to add it to Nimble's package list once you do :)
09:57:04*zxtx joined #nim
10:09:25*wismas quit (Quit: Page closed)
10:12:23*Ven joined #nim
10:16:02*wismas joined #nim
10:17:51wismaswhat would be the fastest way to get a quick and dirty 2d game prototype up in nim if I don't know opengl?
10:18:05wismasin terms of either nim libraries or libraries to bind
10:20:45*kseg quit (Quit: kseg)
10:29:34dom96wismas: I think using either sdl2 or sfml is your best bet.
10:29:45dom96Nim has bindings for both
10:36:04wismasthanks, dom96
10:51:54*PMunch joined #nim
11:01:17*jeffc joined #nim
11:05:23*jeffc quit (Ping timeout: 244 seconds)
11:11:20*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
11:13:33*allan0 quit (Ping timeout: 240 seconds)
11:14:44*allan0 joined #nim
11:16:37*rok quit (Quit: rok)
11:25:53*Gonzih quit (Read error: Connection reset by peer)
11:34:52*PMunch quit (Ping timeout: 265 seconds)
11:35:13*Trustable joined #nim
11:37:53*apotheon quit (Read error: Connection reset by peer)
11:40:01*yglukhov joined #nim
11:42:14*apotheon joined #nim
11:44:08*yglukhov quit (Ping timeout: 244 seconds)
11:47:37*themagician joined #nim
12:02:46*Trustable quit (Remote host closed the connection)
12:07:02*Ven joined #nim
12:14:42*wismas quit (Ping timeout: 260 seconds)
12:25:12*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:05:03*Gonzih joined #nim
13:36:33*s4 quit (Quit: Konversation terminated!)
13:55:42*wismas joined #nim
14:01:36*Matthias247 quit (Read error: Connection reset by peer)
14:08:23*endragor quit (Remote host closed the connection)
14:13:36*pregressive joined #nim
14:14:15*PMunch joined #nim
14:17:05*derka quit (Quit: derka)
14:25:14*endragor joined #nim
14:34:32*endragor quit (Remote host closed the connection)
14:35:28*derka joined #nim
14:37:08*ozra_ joined #nim
15:05:38*boop quit (Ping timeout: 250 seconds)
15:09:00*boop joined #nim
15:13:33*ozra_ quit (Ping timeout: 240 seconds)
15:14:10*ozra_ joined #nim
15:19:44*yglukhov joined #nim
15:22:21*ludocode_ is now known as ludocode
15:24:03*yglukhov quit (Ping timeout: 246 seconds)
15:30:37*libman joined #nim
16:09:50*BitPuffin joined #nim
16:19:54*ozra_ quit (Read error: Connection reset by peer)
16:33:30*gokr quit (Ping timeout: 276 seconds)
16:52:40*space-wizard joined #nim
16:53:26*brson joined #nim
17:01:00*Jesin quit (Quit: Leaving)
17:02:29*derka quit (Quit: derka)
17:03:23*derka joined #nim
17:03:35*Jesin joined #nim
17:07:49*derka quit (Client Quit)
17:08:32*derka joined #nim
17:08:33*derka quit (Client Quit)
17:09:29*derka joined #nim
17:17:20*derka quit (Quit: derka)
17:24:52*draynium quit (Remote host closed the connection)
17:26:12*brson quit (Ping timeout: 246 seconds)
17:32:41*derka joined #nim
17:33:00*derka quit (Client Quit)
17:40:38*BitPuffin quit (Ping timeout: 244 seconds)
17:44:31*derka joined #nim
17:50:17*brson joined #nim
17:50:20libmanCan we make Ƀ (and the new Bitcoin Unicode symbol) a synonym for the $ operator? :P
17:53:07flyxand what about € and £
17:57:59libmanScrew all government currency! But $ can be retained for compatibility reasons.
17:59:39federico3please use #nim-offtopic
18:01:14libmanIt's a proposed Nim feature. :P
18:02:24libmanBetter yet, let's make Nim the first language with integrated syntax sugar for digital micropayments! :P
18:14:06*libman quit (Remote host closed the connection)
18:54:37*yglukhov joined #nim
18:59:32*yglukhov quit (Ping timeout: 265 seconds)
19:04:51zodiakhrm.. I appear to be having a HUGE brainf**t .. how on earth do I get a datastructure out using json that looks like {"foo": 10.0} - the closest I can get is wrapping everything in a seq @[], which means [{...},{...}
19:06:19zodiakI am probably explaining myself poorly
19:14:59federico3zodiak: you want to convert a table into a json object?
19:15:31zodiakhrm.. think I have it.. but.. I "feel" there is an easier/saner way todo this ? http://pastebin.com/HS1CtgpX
19:15:44zodiakfederico3: sorry, code probably explains better what I am trying to do :)
19:16:18federico3where's the online Nim playground again?
19:17:19zodiakooer.. no idea :(
19:18:10federico3https://glot.io/new/nim
19:19:19zodiakeven easier then; https://glot.io/snippets/eeek6caicz
19:19:36zodiakI am sure there is some saner way todo that :)
19:21:28federico3https://glot.io/snippets/eeek6caicz
19:21:43federico3https://glot.io/snippets/eeek8r56c9
19:22:05federico3uh, odd
19:23:27zodiakyaeh, if i could re-jig the endpoint, I could make it accept anything but.. it's not my API that I am calling into (sadly)
19:25:48federico3https://stackoverflow.com/questions/26191114/how-to-convert-object-to-json-in-nimrod
19:29:05zodiakhhrmm
19:29:24federico3I'm pretty sure there was a simpler way
19:29:42zodiakyeah, cause, making my own return object types won't work really
19:30:05zodiakbecause the key names are also programmatically generated values .. rather than "age" it's things like "asdfasdfasdf"
19:30:10zodiak(well, guid's ;)
19:30:30federico3a perfectly normal use case
19:30:54zodiakI would think so
19:31:30federico3you cannot have different types in the values of a Table
19:31:40federico3therefore marshalling a Table is not an option
19:32:09zodiakat this point, I am jst glad I am not a complete moron and missed the 'oh! you use blargle(foo) for that' :D
19:36:32dom96zodiak: do you just want to shorten that code?
19:39:46dom96bbl
19:41:53federico3zodiak: https://glot.io/snippets/eeeksq99ql
19:43:32zodiakdom96: pretty much.. or make it more idiomatic
19:44:29federico3zodiak: is that what you wanted?
19:44:52zodiakfederico3: well.. it's not nested which is part of the problem
19:45:18zodiakeg; {"request_id":"a123","data":{"3NaWhvNYRlORWoi4JqcFAA":3.5918703,"9M_30NRySfS7pw35-4nv3Q":3.218199}}
19:45:32zodiakplus the items in data are generated, not fixed
19:45:34zodiak:(
19:45:44federico3oh, the nesting, right
19:45:50zodiakyyeaaahh :(
19:49:27federico3zodiak: https://glot.io/snippets/eeel03b1a7 ?
19:52:06zodiakfederico3: right, but, data is contained inside a structure of somekind, as it's generated programmatically
19:52:23zodiakI think it's that part that causes %8 problems
19:52:26zodiak%* rather
19:52:38federico3oh you need "data" itself to be added at runtime?
19:53:16federico3I thought you were just trying a workaround
19:53:21zodiakhttps://glot.io/snippets/eeel03b1a7
19:53:26zodiakcrap.. 1s
19:53:39zodiakhttps://glot.io/snippets/eeel4gmpoj
19:54:08zodiakimagine I has that structure, and is created/updated inside the nim code and RIGHT before we dispatch, I want to sling it into j
19:55:08federico3that depends on what key/vals are dynamic
19:55:13federico3e.g. this works 3.5918703
19:55:15federico3ops
19:55:20federico3https://glot.io/snippets/eeel5p2h4q
19:55:54zodiakright.. but you see how that's different from mine right ?
19:56:05zodiak(I maybe explaining this badly, which doesn't help matters - sorry)
19:56:08federico3yep, the keys are fixed, the values are variable
19:57:13federico3if you want that level of dynamism you can build the Json objects using newJ<type>
19:57:37zodiakgotcha.. which is my original example but.. it feels.. kinda..
19:57:45zodiakI don't know.. weird ?!
19:59:16*Matthias247 joined #nim
20:01:15*gokr joined #nim
20:02:22federico3btw, is that AWS? are you leaking your credentials? :D
20:04:16federico3zodiak: https://glot.io/snippets/eeelethoqn ?
20:06:59*silven quit (Ping timeout: 260 seconds)
20:07:44*silven joined #nim
20:22:03*nsf quit (Ping timeout: 240 seconds)
20:22:56zodiaknaw, it's not AWS :)
20:23:01zodiakjst rethinkdb's random uuids
20:23:24zodiakOH.. that's much cleaner snipper.. let me try that :)
20:29:26*fastrom quit (Quit: Leaving.)
20:43:09*Matthias247 quit (Read error: Connection reset by peer)
21:07:02zodiakfederico3: +1 btw.. danke for the help.. things look at little cleaner now :)
21:09:55*wismas quit (Remote host closed the connection)
21:23:38*Ven joined #nim
21:30:03*space-wi_ joined #nim
21:31:41*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:31:47*space-wizard quit (Ping timeout: 260 seconds)
21:34:59*Demon_Fox joined #nim
21:50:04*elrood quit (Quit: Leaving)
22:08:05*nsf joined #nim
22:19:15*karl joined #nim
22:19:15*karl quit (Client Quit)
22:21:18*karl joined #nim
22:25:50*karl quit (Ping timeout: 244 seconds)
22:35:20*space-wi_ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
22:37:48*space-wizard joined #nim
22:38:30*space-wizard quit (Max SendQ exceeded)
22:39:09*space-wizard joined #nim
22:42:25*libman joined #nim
22:57:58*pregressive quit (Remote host closed the connection)
23:09:54*kingofoz quit (Ping timeout: 246 seconds)
23:10:49*kingofoz joined #nim
23:15:03*gokr quit (Ping timeout: 240 seconds)
23:31:43*yglukhov joined #nim
23:32:31*kseg joined #nim
23:36:50*yglukhov quit (Ping timeout: 276 seconds)
23:40:52*derka quit (Quit: derka)
23:41:24*shodan45 joined #nim
23:55:08libmanAre there any LAMP/MEAN-like "software bundle" gimmicks involving Nim? Anyone wanna start one? (Is this an OK topic for this channel?)
23:56:09libman(ex. OPEN - OpenBSD, PostgreSQL, Enginx, Nim)