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:52 | kseg | is there a rwlock somewhere? |
09:43:14 | * | yglukhov quit (Ping timeout: 244 seconds) |
09:43:21 | wismas | hi! 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:08 | wismas | (the boxes to tick are: compiled to native code, can get low level, arbitrary ast modifications at compile time via macros) |
09:44:49 | kseg | @wismas: I’m new too, but --gc:none is what you want I think |
09:49:01 | dom96 | or you can use the real-time features to force the GC to run for no more than 1.5ms |
09:50:16 | dom96 | kseg: ony locks I'm aware of are in the locks module http://nim-lang.org/docs/locks.html |
09:50:50 | kseg | dom96: thanks, will roll my own |
09:51:25 | dom96 | kseg: 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:51 | wismas | what 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:05 | wismas | in terms of either nim libraries or libraries to bind |
10:20:45 | * | kseg quit (Quit: kseg) |
10:29:34 | dom96 | wismas: I think using either sdl2 or sfml is your best bet. |
10:29:45 | dom96 | Nim has bindings for both |
10:36:04 | wismas | thanks, 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:20 | libman | Can we make Ƀ (and the new Bitcoin Unicode symbol) a synonym for the $ operator? :P |
17:53:07 | flyx | and what about € and £ |
17:57:59 | libman | Screw all government currency! But $ can be retained for compatibility reasons. |
17:59:39 | federico3 | please use #nim-offtopic |
18:01:14 | libman | It's a proposed Nim feature. :P |
18:02:24 | libman | Better 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:51 | zodiak | hrm.. 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:19 | zodiak | I am probably explaining myself poorly |
19:14:59 | federico3 | zodiak: you want to convert a table into a json object? |
19:15:31 | zodiak | hrm.. think I have it.. but.. I "feel" there is an easier/saner way todo this ? http://pastebin.com/HS1CtgpX |
19:15:44 | zodiak | federico3: sorry, code probably explains better what I am trying to do :) |
19:16:18 | federico3 | where's the online Nim playground again? |
19:17:19 | zodiak | ooer.. no idea :( |
19:18:10 | federico3 | https://glot.io/new/nim |
19:19:19 | zodiak | even easier then; https://glot.io/snippets/eeek6caicz |
19:19:36 | zodiak | I am sure there is some saner way todo that :) |
19:21:28 | federico3 | https://glot.io/snippets/eeek6caicz |
19:21:43 | federico3 | https://glot.io/snippets/eeek8r56c9 |
19:22:05 | federico3 | uh, odd |
19:23:27 | zodiak | yaeh, 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:48 | federico3 | https://stackoverflow.com/questions/26191114/how-to-convert-object-to-json-in-nimrod |
19:29:05 | zodiak | hhrmm |
19:29:24 | federico3 | I'm pretty sure there was a simpler way |
19:29:42 | zodiak | yeah, cause, making my own return object types won't work really |
19:30:05 | zodiak | because the key names are also programmatically generated values .. rather than "age" it's things like "asdfasdfasdf" |
19:30:10 | zodiak | (well, guid's ;) |
19:30:30 | federico3 | a perfectly normal use case |
19:30:54 | zodiak | I would think so |
19:31:30 | federico3 | you cannot have different types in the values of a Table |
19:31:40 | federico3 | therefore marshalling a Table is not an option |
19:32:09 | zodiak | at 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:32 | dom96 | zodiak: do you just want to shorten that code? |
19:39:46 | dom96 | bbl |
19:41:53 | federico3 | zodiak: https://glot.io/snippets/eeeksq99ql |
19:43:32 | zodiak | dom96: pretty much.. or make it more idiomatic |
19:44:29 | federico3 | zodiak: is that what you wanted? |
19:44:52 | zodiak | federico3: well.. it's not nested which is part of the problem |
19:45:18 | zodiak | eg; {"request_id":"a123","data":{"3NaWhvNYRlORWoi4JqcFAA":3.5918703,"9M_30NRySfS7pw35-4nv3Q":3.218199}} |
19:45:32 | zodiak | plus the items in data are generated, not fixed |
19:45:34 | zodiak | :( |
19:45:44 | federico3 | oh, the nesting, right |
19:45:50 | zodiak | yyeaaahh :( |
19:49:27 | federico3 | zodiak: https://glot.io/snippets/eeel03b1a7 ? |
19:52:06 | zodiak | federico3: right, but, data is contained inside a structure of somekind, as it's generated programmatically |
19:52:23 | zodiak | I think it's that part that causes %8 problems |
19:52:26 | zodiak | %* rather |
19:52:38 | federico3 | oh you need "data" itself to be added at runtime? |
19:53:16 | federico3 | I thought you were just trying a workaround |
19:53:21 | zodiak | https://glot.io/snippets/eeel03b1a7 |
19:53:26 | zodiak | crap.. 1s |
19:53:39 | zodiak | https://glot.io/snippets/eeel4gmpoj |
19:54:08 | zodiak | imagine 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:08 | federico3 | that depends on what key/vals are dynamic |
19:55:13 | federico3 | e.g. this works 3.5918703 |
19:55:15 | federico3 | ops |
19:55:20 | federico3 | https://glot.io/snippets/eeel5p2h4q |
19:55:54 | zodiak | right.. but you see how that's different from mine right ? |
19:56:05 | zodiak | (I maybe explaining this badly, which doesn't help matters - sorry) |
19:56:08 | federico3 | yep, the keys are fixed, the values are variable |
19:57:13 | federico3 | if you want that level of dynamism you can build the Json objects using newJ<type> |
19:57:37 | zodiak | gotcha.. which is my original example but.. it feels.. kinda.. |
19:57:45 | zodiak | I don't know.. weird ?! |
19:59:16 | * | Matthias247 joined #nim |
20:01:15 | * | gokr joined #nim |
20:02:22 | federico3 | btw, is that AWS? are you leaking your credentials? :D |
20:04:16 | federico3 | zodiak: 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:56 | zodiak | naw, it's not AWS :) |
20:23:01 | zodiak | jst rethinkdb's random uuids |
20:23:24 | zodiak | OH.. 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:02 | zodiak | federico3: +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:08 | libman | Are there any LAMP/MEAN-like "software bundle" gimmicks involving Nim? Anyone wanna start one? (Is this an OK topic for this channel?) |
23:56:09 | libman | (ex. OPEN - OpenBSD, PostgreSQL, Enginx, Nim) |