00:00:00 | * | njoseph_ quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
00:00:16 | PMunch | voidpi, I'm heading to bed now, but if you have any questions tomorrow don't hesitate to ping me (I'm the one who wrote the article you linked). |
00:00:45 | PMunch | Good night everyone |
00:00:46 | * | PMunch quit (Quit: leaving) |
00:01:05 | * | njoseph joined #nim |
00:06:05 | * | bung quit (Ping timeout: 240 seconds) |
00:15:31 | * | endragor joined #nim |
00:33:35 | * | maier joined #nim |
00:38:31 | * | bung joined #nim |
00:38:46 | * | maier quit (Ping timeout: 258 seconds) |
00:41:03 | * | tsujp joined #nim |
00:42:58 | * | bung quit (Ping timeout: 258 seconds) |
00:54:16 | * | bung joined #nim |
01:18:45 | * | endragor quit (Ping timeout: 240 seconds) |
01:24:53 | * | Tanger joined #nim |
01:26:18 | * | NimBot joined #nim |
01:35:14 | * | apahl quit (Ping timeout: 244 seconds) |
01:37:13 | * | apahl joined #nim |
02:06:47 | * | endragor joined #nim |
02:17:55 | * | muffindrake quit (Ping timeout: 240 seconds) |
02:19:12 | shashlick | @Zevv awesome article |
02:19:12 | * | FromDiscord quit (Remote host closed the connection) |
02:19:28 | * | FromDiscord joined #nim |
02:20:30 | * | muffindrake joined #nim |
02:22:00 | * | endragor quit (Remote host closed the connection) |
02:22:28 | * | endragor joined #nim |
02:24:48 | * | ptdel joined #nim |
02:26:45 | * | endragor quit (Ping timeout: 240 seconds) |
02:34:29 | * | maier joined #nim |
02:35:12 | * | endragor joined #nim |
02:39:58 | * | maier quit (Ping timeout: 260 seconds) |
03:04:48 | * | audiofile quit (Quit: Default Quit Message) |
03:22:11 | * | test joined #nim |
03:22:24 | test | Hi Guys |
03:22:35 | * | test is now known as Guest16312 |
03:23:21 | shashlick | Sup |
03:23:33 | Guest16312 | I am struck creating a dynamic json by looping through the contents of a file |
03:24:08 | * | Tlangir joined #nim |
03:24:53 | Guest16312 | I want to append to an existing json variable in nim. Any help ? |
03:26:56 | * | Tanger quit (Ping timeout: 256 seconds) |
03:28:17 | * | Guest16312 quit (Remote host closed the connection) |
03:28:40 | FromDiscord | <Elegant Beef> What's the file and what're you doing? |
03:31:35 | FromDiscord | <Elegant Beef> If i understand what you're trying to do this might explain how https://play.nim-lang.org/#ix=2vQ6 |
03:40:26 | * | waleee-cl quit (Quit: Connection closed for inactivity) |
03:41:27 | * | hnOsmium0001 quit (Quit: Connection closed for inactivity) |
04:01:05 | FromDiscord | <flywind> How can I create a unique id for files in Nim? It seems file IDs(GetFileInformationByHandle) is file system-specific. I plan to use the creation time of file plus something else. But i'm not sure what to use. |
04:02:28 | FromDiscord | <Elegant Beef> Could you not just use the checksum of the file as an id? |
04:03:09 | * | vicfred quit (Quit: Leaving) |
04:03:24 | FromDiscord | <flywind> I want to monitor the file system. I think checksum maybe a bit slow. |
04:04:39 | FromDiscord | <flywind> each time, I modify the content of file I need to regenerate and save the checksum. |
04:05:01 | FromDiscord | <Elegant Beef> are they all in the same directory? |
04:05:27 | FromDiscord | <flywind> yes. |
04:06:01 | * | supakeen quit (Quit: WeeChat 2.9) |
04:06:23 | FromDiscord | <Elegant Beef> cant you just use ints then? Load all the directories file names into a intset, then just find the next valid integer to name the next file? |
04:06:38 | * | supakeen joined #nim |
04:07:10 | FromDiscord | <Elegant Beef> *I dont know the exact requirements here so im just spitballing* 😄 |
04:07:50 | FromDiscord | <flywind> I mean monitoring a file, if rename event happens, I need to know that. |
04:08:24 | FromDiscord | <flywind> I need unique id to identify it. |
04:09:20 | FromDiscord | <Elegant Beef> Cant you just use the file name then, it's garuenteed to be unique, and if something is renamed it's moved out of the table, and readded as the new file name? |
04:10:48 | FromDiscord | <flywind> I want to do something like this but use polling mode as back method. |
04:10:49 | FromDiscord | <flywind> https://github.com/Vindaar/fsmonitor2 |
04:12:04 | * | Tlangir quit (Remote host closed the connection) |
04:12:40 | FromDiscord | <flywind> Thanks, I think I should use `creationTime` xor `GetFileAttributes` instead. |
04:35:21 | * | maier joined #nim |
04:40:11 | * | Tanger joined #nim |
04:40:51 | * | maier quit (Ping timeout: 265 seconds) |
04:41:03 | * | rockcavera quit (Remote host closed the connection) |
04:51:07 | * | narimiran joined #nim |
05:24:57 | * | hnOsmium0001 joined #nim |
05:27:23 | * | maier joined #nim |
05:31:35 | * | vicfred joined #nim |
05:38:22 | * | solitudesf joined #nim |
05:41:30 | * | vicfred quit (Quit: Leaving) |
06:17:16 | * | ptdel quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) |
06:28:10 | * | evanj joined #nim |
07:00:23 | * | PMunch joined #nim |
07:01:32 | * | gmaggior quit (Quit: Leaving) |
07:24:01 | * | sentreen quit (Ping timeout: 256 seconds) |
07:28:06 | FromDiscord | <iWonderAboutTuatara> can nim reasonably be used as the main scripting language for Godot? |
07:28:24 | FromDiscord | <iWonderAboutTuatara> with roughly C# or slightly worse levels of support, official or not |
07:28:33 | FromDiscord | <iWonderAboutTuatara> (edit) 'support, official or not' => 'usability' |
07:28:46 | FromDiscord | <iWonderAboutTuatara> I know its very good for GDNative, but as a main language? |
07:28:55 | FromDiscord | <iWonderAboutTuatara> If anybody has tried it please let me know |
07:29:03 | FromDiscord | <Elegant Beef> There is the nim bindings for it, but i havent used it, iirc the creators of it are using it for their own project, so probably |
07:29:15 | FromDiscord | <iWonderAboutTuatara> Oh that's very good |
07:29:23 | FromDiscord | <iWonderAboutTuatara> but those are for GDNative no? |
07:29:33 | FromDiscord | <Elegant Beef> Well yea |
07:29:54 | FromDiscord | <iWonderAboutTuatara> I don't use GDN much, but I don't remember it being the most pleasant thing in the world |
07:30:05 | FromDiscord | <Elegant Beef> I mean you're writting nimcode though |
07:30:25 | FromDiscord | <iWonderAboutTuatara> Right |
07:30:55 | FromDiscord | <iWonderAboutTuatara> but I think for gamedev specifially since rapid iteration is how we do literally everything |
07:31:00 | FromDiscord | <iWonderAboutTuatara> more pain stacks up a lot |
07:31:11 | FromDiscord | <Elegant Beef> Yea i've never touched it, so no clue how it is |
07:31:21 | FromDiscord | <Elegant Beef> I've barely touched godot nevermind the nim bindings |
07:31:42 | FromDiscord | <iWonderAboutTuatara> Godot is really solid, if you're interested in making a game and don't need like hyperrealistic 3d godot is a solid choice |
07:32:56 | FromDiscord | <Elegant Beef> How are godots web build times? |
07:34:39 | FromDiscord | <iWonderAboutTuatara> pretty solid |
07:34:49 | FromDiscord | <iWonderAboutTuatara> on my computer pretty much instant for small games |
07:35:11 | FromDiscord | <Elegant Beef> Unity's take like 10 minutes for webgl build and it's horrific, as they do C# -> CPP -> WASM |
07:35:13 | Oddmonger | i've loades godot-nim, and the setup works, but i didn't understood the workflow yet |
07:35:15 | FromDiscord | <iWonderAboutTuatara> wow |
07:35:26 | FromDiscord | <iWonderAboutTuatara> oh I see is docs lacking? |
07:35:34 | FromDiscord | <Elegant Beef> Pins my cpu at 90% on top of it |
07:35:38 | FromDiscord | <iWonderAboutTuatara> Godot is meant to be super lightweight, everything is fast and there's minimal bloat |
07:35:42 | FromDiscord | <iWonderAboutTuatara> yeah |
07:35:49 | FromDiscord | <iWonderAboutTuatara> exports are near instant for me usually |
07:36:12 | FromDiscord | <iWonderAboutTuatara> on my garbage laptop from 2013 ish it took maybe a minute to export the game i was working on to html5 |
07:36:18 | Oddmonger | the advanage of godot/nim instead godot/c# is IMHO you don't have to use experimental godot C# version |
07:36:31 | FromDiscord | <iWonderAboutTuatara> but iirc you have to revert to 3.0 |
07:36:36 | FromDiscord | <iWonderAboutTuatara> meaning no sprite batching and such |
07:36:39 | Oddmonger | and the final package won't embed the mono libs |
07:36:50 | * | sentreen joined #nim |
07:37:06 | FromDiscord | <Elegant Beef> Well also web builds should be even quicker as they should be able to do straight to wasm |
07:37:21 | FromDiscord | <Elegant Beef> Instead of using il2cpp |
07:37:43 | FromDiscord | <Elegant Beef> Or equivlent rather |
07:45:48 | Oddmonger | does nim cfg files are using the same syntax as compiler arguments listed here (https://nim-lang.org/docs/nimc.html) ? |
07:46:46 | Oddmonger | just remove the "--" prefix and add "" for surrounding argument, and thats all ? |
07:48:11 | PMunch | Should be pretty much it yeah |
07:48:18 | PMunch | You can even keep the "--" prefix IIRc |
07:48:25 | PMunch | It's been defined as a template |
07:51:34 | Oddmonger | ok thank you |
07:52:24 | Oddmonger | does it worth to learn nake, too ? I've read somewhere it had been superseded by nimble |
07:52:31 | FromDiscord | <Elegant Beef> Hello pmunch |
07:52:38 | Oddmonger | it's not even mentionned in «nim in action» |
07:53:17 | FromDiscord | <lqdev> Oddmonger: use nimble |
07:53:36 | FromDiscord | <lqdev> nimble tasks can do everything nake could |
07:53:55 | Oddmonger | ok, noted |
07:55:18 | * | krux02 joined #nim |
07:55:38 | PMunch | Hi @Elegant :) |
07:56:00 | FromDiscord | <Elegant Beef> Did you see my issues in gamedev? |
07:57:26 | PMunch | Uhm, no |
07:57:34 | * | D_ quit (Ping timeout: 244 seconds) |
07:57:51 | PMunch | Hmm, is that channel logged anywhere? |
07:58:16 | FromDiscord | <Elegant Beef> not a clue remember im a discord user 😛 |
07:58:50 | FromDiscord | <Elegant Beef> Here this will explain it all https://streamable.com/ysp3zi |
07:59:38 | FromDiscord | <Elegant Beef> Enters endless state |
07:59:43 | PMunch | Hmm, well that's broken :P |
08:00:16 | PMunch | What browser are you using? |
08:00:20 | FromDiscord | <Elegant Beef> Chrome |
08:00:21 | PMunch | Works fine for me in Firefox |
08:00:52 | PMunch | Let me try in Chrome |
08:01:29 | PMunch | Hmm, it is in fact broken in Chrome |
08:01:36 | FromDiscord | <Elegant Beef> Firefox doesnt even load past the FM screen for me |
08:02:44 | PMunch | Oh really? |
08:03:14 | PMunch | Which FF version? |
08:04:15 | FromDiscord | <Elegant Beef> 80 |
08:04:59 | PMunch | Hmm, I'm on 79.0 on Linux and that works fine |
08:05:26 | PMunch | Let me upgrade to 80 and check |
08:05:56 | FromDiscord | <Elegant Beef> "on linux" wow did you just imply i'm not! 😛 |
08:08:13 | FromDiscord | <Rika> you are?? |
08:08:26 | FromDiscord | <Elegant Beef> Yes |
08:11:30 | PMunch | Just in case you weren't :P |
08:16:03 | * | Vladar joined #nim |
08:18:30 | PMunch | Hmm, still works in FF 80 for me |
08:21:24 | * | D_ joined #nim |
08:24:27 | * | hnOsmium0001 quit (Quit: Connection closed for inactivity) |
08:37:35 | * | arecacea1 quit (Remote host closed the connection) |
08:37:55 | * | arecacea1 joined #nim |
08:40:47 | FromDiscord | <iWonderAboutTuatara> @PMunch[IRC]#0000 might be abtagbyou forgot to close or something |
08:40:56 | FromDiscord | <iWonderAboutTuatara> Firefox is way more generous with that sort of thing |
08:41:04 | FromDiscord | <iWonderAboutTuatara> Also their dev console is a lot better |
08:41:36 | FromDiscord | <iWonderAboutTuatara> I wish their screen sharing worked on my system, that and the stupid icon that comes when you're In a call are deal breakers for me |
08:42:00 | FromDiscord | <iWonderAboutTuatara> In general if it works on ie it works on everything |
08:42:12 | FromDiscord | <iWonderAboutTuatara> (edit) 'abtagbyou' => 'a tag you' |
08:43:03 | PMunch | Well it's not a HTML game |
08:43:11 | PMunch | It's an Arduboy game that runs in a web based emulator |
08:43:22 | PMunch | So I don't have any tags to close :P |
08:47:11 | * | awe00 joined #nim |
08:53:58 | Araq | https://github.com/nim-lang/Nim/issues/15198 static linking of SSL requested here |
08:54:00 | disbot | ➥ Error: SMTP module compiled without SSL support ; snippet at 12https://play.nim-lang.org/#ix=2vR1 |
09:07:55 | * | supakeen quit (Ping timeout: 240 seconds) |
09:09:25 | * | D_ quit (Ping timeout: 240 seconds) |
09:09:33 | bung | Araq should I need add test case for SQL escape PR ? |
09:10:13 | * | supakeen joined #nim |
09:12:49 | * | D_ joined #nim |
09:13:11 | Araq | yes but a small unit test suffices |
09:15:53 | bung | found no existed mysql test, it would be the first one ? |
09:27:59 | * | D_ quit (Ping timeout: 244 seconds) |
09:29:11 | Araq | yeah |
09:30:09 | bung | okay |
09:31:05 | * | abm joined #nim |
09:31:14 | * | D_ joined #nim |
09:31:21 | PMunch | Hmm, where is the set type magic implemented? |
09:36:14 | PMunch | Guessing compiler/bitsets.nim -_- |
09:36:34 | * | solitudesf quit (Ping timeout: 258 seconds) |
09:39:55 | * | qwertfisch quit (Read error: Connection reset by peer) |
09:41:34 | * | qwertfisch joined #nim |
09:42:39 | PMunch | What was the command to koch to build a test build instead of running the whole bootstrapping procedure? |
09:42:50 | PMunch | Oh, ./koch temp |
09:54:03 | * | arecacea1 quit (Remote host closed the connection) |
09:54:27 | * | arecacea1 joined #nim |
09:57:24 | * | vitalvortex joined #nim |
09:57:34 | * | vitalvortex is now known as bruh___ |
09:59:08 | * | bruh___ quit (Client Quit) |
10:09:16 | FromDiscord | <mratsim> I think compiler/bitsets are for bitsets in the VM, because bitsets at runtime sure don't use seq |
10:09:48 | * | awe00_ joined #nim |
10:11:49 | * | D_ quit (Ping timeout: 244 seconds) |
10:12:11 | * | awe00 quit (Ping timeout: 240 seconds) |
10:15:09 | * | D_ joined #nim |
10:22:57 | Araq | mratsim: are you familiar with Numenta's work? |
10:30:24 | * | Tlangir joined #nim |
10:32:37 | * | Tanger quit (Ping timeout: 246 seconds) |
10:43:56 | * | D_ quit (Ping timeout: 244 seconds) |
10:47:04 | * | D_ joined #nim |
10:48:13 | * | sentreen quit (Ping timeout: 260 seconds) |
10:52:14 | * | lritter joined #nim |
10:58:55 | * | D_ quit (Ping timeout: 240 seconds) |
11:01:25 | * | sentreen joined #nim |
11:01:59 | * | D_ joined #nim |
11:35:48 | Zevv | disruptek: yeah, I know I am, but $5.00 for a coffee, that is pretty insane don't you agree |
11:47:47 | kinkinkijkin | what's this about $5 coffee |
11:49:27 | Zevv | I don't know, but it better be good |
11:59:25 | * | D_ quit (Ping timeout: 240 seconds) |
12:02:54 | * | D_ joined #nim |
12:04:19 | * | audiofile joined #nim |
12:06:01 | * | supakeen quit (Quit: WeeChat 2.9) |
12:06:33 | * | supakeen joined #nim |
12:07:02 | PMunch | Zevv, $5 for a coffee is pretty typical here |
12:07:14 | PMunch | For just normal coffee from a pot |
12:07:37 | PMunch | @mratsim, aah, that makes sense |
12:07:39 | * | rockcavera joined #nim |
12:07:50 | Zevv | really? man |
12:10:24 | PMunch | Well $5 would be a bit on the expensive end. But wouldn't be surprised to find coffee in the $3-$4 range even at something like a student house |
12:11:49 | * | bung quit (Ping timeout: 258 seconds) |
12:23:01 | Zevv | well, not surprising, given the national funds all you guys have on the bank :) |
12:33:03 | ForumUpdaterBot | New thread by ElAfalw: How to achieve better performance with arc GC?, see https://forum.nim-lang.org/t/6754 |
12:35:14 | * | Vladar quit (Quit: Leaving) |
12:40:33 | PMunch | Zevv, well those aren't really meant to be spent on coffee :P |
12:40:40 | PMunch | At least not until it's an emergency |
12:42:17 | * | Vladar joined #nim |
12:44:51 | PMunch | Name these ones: ▀ ▄ |
12:45:37 | FromDiscord | <lqdev> it's half block upper/lower or something like that |
12:46:26 | Zevv | just lookem up in the unicode table lazy man |
12:46:32 | * | bung joined #nim |
12:46:57 | Zevv | https://www.compart.com/en/unicode/U+2580 |
12:47:27 | PMunch | Haha, posted in the wrong channel :P |
12:48:18 | Zevv | and still you get your answer |
12:49:17 | PMunch | I'm tired, I wasn't actually asking for the name :P I meant to type "Namely these ones: ▀ ▄" as I was suggesting using them to create a terminal snake game with sub-character resolution |
12:50:45 | * | bung quit (Ping timeout: 240 seconds) |
12:50:46 | Zevv | use the teletekst chacter set, they give you a 2*8 grid |
12:51:44 | Araq | https://github.com/nim-lang/Nim/pull/15254 using exceptoins to make Nim's VM run incrementally |
12:51:45 | disbot | ➥ Basic VM resume support |
12:52:05 | Zevv | that is pretty handy |
12:52:38 | Araq | still making up my mind about it. The feature itself is excellent maybe there is no need to raise an exception though to leave a single loop |
12:53:12 | PMunch | Hmm, would that allow embedded NimScript to not crash the entire program in case you have a bug? |
12:53:40 | Araq | that's unrelated and already possible |
12:54:03 | Araq | at least that's how I remember it |
12:54:06 | PMunch | It is? |
12:54:14 | PMunch | I couldn't figure out how to do it.. |
12:54:32 | Zevv | Araq: what about "resume for X instructions and then return?" |
12:54:33 | Araq | depends on what you mean I guess |
12:55:00 | Araq | VM bugs usually cause exceptions you can handle via 'try' |
12:56:41 | PMunch | Ugh, still can't find where sets are implemented.. |
12:56:51 | PMunch | Been too long since I messed with the compiler |
12:57:02 | Araq | mostly in compiler/ccgexprs.nim |
12:57:38 | Araq | they are mapped to C ints and array of ints depending on the set's base type |
12:58:14 | Araq | this part of the compiler is so old that it predates most of the "compilerproc" technology |
12:58:19 | PMunch | I just ran into an issue on AVR where it wouldn't store values over 16.. |
12:58:25 | PMunch | Or from 16 and up |
12:58:48 | Araq | possible, that code never was written for AVR |
12:58:55 | PMunch | `myset.incl 17; if myset.contains 17` that if is false on AVR |
12:59:04 | Zevv | no way |
12:59:25 | PMunch | Yup.. |
12:59:40 | PMunch | Took a while to figure out what was going wrong with that one |
13:00:37 | Araq | proc genSetOp |
13:01:03 | Araq | the logic seems ok but maybe 'getSize' lies for 'int' that we mapped to int16 |
13:01:14 | PMunch | Oh joy, this'll be fun to debug.. |
13:01:39 | disruptek | yeah, it's only 4 bits on AVR. |
13:01:45 | Araq | not really, read the C code and see if your changes make it produce correct C code |
13:01:55 | Araq | no crosscompiling etc required |
13:02:13 | Araq | I mean none required beyond --compileOnly --cpu:avr |
13:02:20 | disruptek | coffee is $5 for credit-card fees reasons, iiuc. |
13:02:23 | PMunch | Size says 4 |
13:02:34 | PMunch | So yeah, that's not right |
13:03:20 | Araq | (name: "avr", intSize: 16, endian: littleEndian, floatSize: 32, bit: 16) |
13:03:30 | Araq | seems correct. Funny bug. |
13:03:46 | Zevv | so much more would be broken if that was off |
13:04:14 | disruptek | yes, but focus on turning 16 into 4... |
13:04:30 | Araq | ah we need to watch out, the set's size is not the basetype's size |
13:04:42 | disruptek | or whatever it was.. 3? |
13:04:46 | Araq | and for 17 we need a uint32 so size is 4 |
13:05:04 | Araq | the 17th bit only exists when size is > 2 |
13:05:27 | Araq | bbl |
13:05:38 | PMunch | That's true |
13:06:53 | disruptek | oh yeah, 17 bear foods. |
13:06:55 | disruptek | lol |
13:07:12 | disruptek | up here we call those campers. |
13:11:37 | PMunch | <_< |
13:12:31 | Prestige | I need to play that game today |
13:13:19 | PMunch | Hmm --cpu:avr doesn't change the generated code at all apart from setting NIM_INTBITS from 64 to 16 |
13:13:28 | PMunch | Prestige, my game? |
13:13:39 | Prestige | Yeah |
13:13:55 | PMunch | Unfortunately it plays best on an actual Arduboy or similar hardware :( |
13:14:03 | PMunch | You don't get the neat colours and stuff without it |
13:14:17 | Prestige | Ah even on desktop? Oh well |
13:14:26 | PMunch | Well, in the desktop emulator it plays fine |
13:14:34 | PMunch | But you still don't get the grayscale colours |
13:14:46 | PMunch | Still enjoyable though :) |
13:16:25 | * | waleee-cl joined #nim |
13:20:25 | * | drewr quit (Ping timeout: 240 seconds) |
13:22:26 | * | bung joined #nim |
13:26:19 | Zevv | you PWM your greyscale or what? |
13:27:38 | PMunch | Yup |
13:27:49 | PMunch | Each frame is divided into three subframes |
13:28:17 | PMunch | On the first subframe I draw white stuff, then light gray stuff, then dark gray stuff, then I clear the screen buffer and go to the next frame |
13:29:02 | PMunch | Only problem with this approach is that I can't have dark gray stuff behind brighter elements without drawing everything in each subframe |
13:36:19 | disruptek | that's the only problem? |
13:36:53 | * | narimiran quit (Ping timeout: 256 seconds) |
13:37:14 | Zevv | then you're doing it wrong |
13:37:36 | PMunch | What do you mean? |
13:38:09 | Zevv | why should'nt you be able to draw every pixel in an arbritary shade? |
13:38:52 | Zevv | oh you probably don't have a video RAM buffer, right? |
13:38:59 | Zevv | you render everything straight to your display |
13:39:30 | PMunch | Well there is a buffer |
13:39:46 | PMunch | So you can create buffers for the various shades and just switch between them |
13:39:50 | Zevv | 2 bits per pixel |
13:39:54 | PMunch | But my approach is faster |
13:40:04 | PMunch | Although every sprite can only be a single colour |
13:40:50 | PMunch | Mostly because I just wanted to do it quick and easy, and not have to bother about rewriting the actual sprite drawing logic.. |
13:41:21 | Zevv | you can have it quick, easy and good, but not all at the same time. Pick 2 out of three |
13:41:49 | PMunch | I think I picked easy twice :P |
13:42:08 | FromDiscord | <Kiloneie> I've heard plenty of times that Nim has a VM, is there any details about it, what does it do? Idiot question perhaps D: |
13:42:34 | disruptek | it's a myth. |
13:43:31 | PMunch | @Kiloneie, the VM is what runs macros and other compile-time stuff |
13:43:45 | PMunch | There are plenty of details about it, but that's the gist |
13:44:14 | FromDiscord | <Kiloneie> Ah okay, part of the compiler then |
13:44:18 | PMunch | Yup |
13:44:31 | PMunch | Well, you can import it and use it in your program to embed NimScript in it |
13:44:48 | shashlick | should a `--silent` flag for Nimble hide Nim compiler warnings as well? |
13:45:18 | disruptek | quiet, maybe, but silent should produce zero output. |
13:46:01 | FromDiscord | <Kiloneie> Import nimscript? |
13:47:24 | FromDiscord | <Kiloneie> I should learn nimscript for some automation |
13:48:13 | PMunch | You don't really need it |
13:48:28 | PMunch | Well, you probably already know it :P It's just a subset of Nim |
13:48:39 | PMunch | Well, it's mostly a subset of Nim |
13:50:32 | PMunch | Hmm, from the generated C code I can't really see what's going wrong with this.. |
13:51:10 | Zevv | still hunting the set? |
13:53:17 | PMunch | Yup |
13:53:48 | PMunch | http://ix.io/2vSv/C |
13:54:09 | PMunch | That set type is NU32 |
13:54:11 | Zevv | yeah I got the same code |
13:54:46 | Zevv | My set type is NU8[32] |
13:54:47 | disruptek | of course; that's wrong. |
13:55:07 | Zevv | what is your exact set definition PMunch ? |
13:55:12 | Zevv | the nim-side? |
13:57:58 | * | FromDiscord quit (Remote host closed the connection) |
13:58:12 | * | FromDiscord joined #nim |
14:05:55 | PMunch | var taken: set[0..20] |
14:06:16 | PMunch | Oh well, I've got to go |
14:06:20 | * | PMunch quit (Quit: Leaving) |
14:12:51 | disruptek | are you using mangling? |
14:17:57 | * | Vladar quit (Remote host closed the connection) |
14:18:59 | * | krux02_ joined #nim |
14:21:49 | * | krux02 quit (Ping timeout: 265 seconds) |
14:30:41 | * | Vladar joined #nim |
14:40:11 | * | tiorock joined #nim |
14:40:12 | * | tiorock quit (Changing host) |
14:40:12 | * | tiorock joined #nim |
14:40:12 | * | rockcavera quit (Killed (wolfe.freenode.net (Nickname regained by services))) |
14:40:12 | * | tiorock is now known as rockcavera |
14:48:35 | * | ForumUpdaterBot quit (Remote host closed the connection) |
14:48:35 | * | snowolf_ quit (Remote host closed the connection) |
14:48:36 | * | ForumUpdaterBot joined #nim |
14:48:57 | * | snowolf joined #nim |
14:52:59 | * | Sgeo joined #nim |
14:53:49 | Sgeo | https://nim-lang.org/docs/tables.html I don't see the difference between the first and second example (that's supposed to illustrate the difference between Table and TableRef. How does Nim know that a is supposed to be a TableRef, or is there a missing type annotation? |
14:55:41 | FromDiscord | <exelotl> toTable returns a Table, newTable returns a TableRef |
14:56:51 | FromDiscord | <exelotl> The type of a is inferred from the type of the expression on the right hand side |
14:57:25 | Sgeo | Oh ok, sorry I didn't see that |
15:02:41 | * | krux02_ is now known as krux02 |
15:18:18 | * | maier quit (Ping timeout: 260 seconds) |
15:20:03 | * | hnOsmium0001 joined #nim |
15:24:58 | * | endragor quit (Remote host closed the connection) |
15:25:36 | * | endragor joined #nim |
15:29:55 | * | endragor quit (Ping timeout: 240 seconds) |
15:56:38 | * | awe00_ quit (Read error: Connection reset by peer) |
15:58:43 | * | awe00_ joined #nim |
15:59:49 | FromDiscord | <dom96> Does anyone else agree? if so, upvote to change the design https://github.com/nim-lang/Nim/pull/15251#discussion_r480401706 😄 |
15:59:50 | disbot | ➥ new-style concepts implemetion, WIP |
16:02:51 | FromDiscord | <k1tt3hk4t> what exactly does it change? |
16:03:38 | FromDiscord | <Rika> removes `self` and use concept name instead |
16:19:28 | * | vicfred joined #nim |
16:25:03 | * | arecacea1 quit (Remote host closed the connection) |
16:25:34 | * | arecacea1 joined #nim |
16:34:58 | * | waleee-cl quit (Quit: Connection closed for inactivity) |
16:43:17 | * | solitudesf joined #nim |
16:45:05 | * | lritter quit (Quit: Leaving) |
16:47:12 | Yardanico | PMunch left, but yes, I'm still alive, though I didn't have much time to do Nim things recentlyt :0 |
16:47:14 | Yardanico | recently :) |
16:54:29 | * | solitudesf quit (Quit: Leaving) |
16:55:12 | * | solitudesf joined #nim |
16:56:36 | FromGitter | <matrixbot> `BarrOff` Hello, I have been trying to register for the forum, but I just don't get a confirmation mail. Tried three different mail accounts by now, none of them received one |
17:00:38 | * | Trustable joined #nim |
17:00:48 | FromDiscord | <dom96> just tell me your nick and I'll activate it for you |
17:04:49 | FromGitter | <matrixbot> `BarrOff` BarrOff25 |
17:05:29 | FromDiscord | <dom96> yeah, your email is exotic enough to make me think that your email provider is blocking the forum's emails :/ |
17:05:31 | FromDiscord | <dom96> anyway, activated |
17:06:09 | Yardanico | usually the best email provider (deliverability-wise) is gmail because their limits of what emails (from what mail servers) are accepted are very low |
17:06:15 | Yardanico | they instead rely on their very advanced spam detection |
17:06:32 | Yardanico | well, idk if it's very advanced, but it's pretty good at leaast |
17:06:40 | FromDiscord | <haxscramper> I'm still getting "Too many messages have been sent to this email address recently." when trying to register via any of my emails, could you fix this one too? |
17:07:15 | * | ForumUpdaterBot quit (Remote host closed the connection) |
17:07:23 | * | ForumUpdaterBot joined #nim |
17:08:59 | FromDiscord | <dom96> haxscramper: The forum is open source, would appreciate your help here 🙂 |
17:09:25 | * | abm quit (Ping timeout: 240 seconds) |
17:11:13 | FromDiscord | <haxscramper> I mean is there any way to fix this or I just have to use completely different email? I'd prefer to stick to my `haxscramper@` mail on the forum too, but if it can't be fixed I will of course use different one. |
17:11:22 | FromDiscord | <dk> What's the best supported async sqlite nim lib? |
17:11:26 | FromDiscord | <dk> std seems to be sync |
17:11:50 | FromDiscord | <dom96> @haxscramper just tell me your nick and I can activate your account |
17:12:26 | FromDiscord | <dom96> > What's the best supported async sqlite nim lib?↵@dk I just use the sync libs, you're unlikely to run into trouble since its in-memory |
17:13:45 | FromDiscord | <haxscramper> `@haxscramper` - but I actually deleted it a while back - I tried to change to different email but wasn't able to, so I decided to just recreate account but got stuck on sign up stage |
17:14:00 | FromDiscord | <dom96> Bah. |
17:14:18 | FromDiscord | <dom96> Yeah, that needs to be fixed. I can't easily get your account back if you delete it. |
17:14:28 | * | maier joined #nim |
17:15:19 | ForumUpdaterBot | New thread by BarrOff25: Access Nim variables from Lua, see https://forum.nim-lang.org/t/6755 |
17:17:41 | FromDiscord | <haxscramper> Okay, I will wait for the fix then - my horrible web(anything)-related skills are certainly not up to the task of fixing something like this :( |
17:19:25 | * | maier quit (Ping timeout: 240 seconds) |
17:25:19 | ForumUpdaterBot | New thread by Deech: Pros vs. Cons Of Nim In The Large?, see https://forum.nim-lang.org/t/6756 |
17:25:53 | Yardanico | maybe my ForumUpdater made the forum more active after all :P (but surely it wasn't the only factor) |
17:28:41 | * | idxu quit (Quit: ZNC - https://znc.in) |
17:29:11 | * | idxu joined #nim |
17:29:49 | FromDiscord | <dom96> maybe, or maybe it's the new Forum update that did it? 😛 |
17:30:04 | Yardanico | that's why I said it wasn't the only factor ;) |
17:30:31 | Yardanico | also since the bot also posts "new threads" messages in the Telegram group, some people probably came from there |
17:30:56 | shashlick | i've noticed that preview doesn't work as well as before - text box gets resized |
17:32:50 | alehander92 | it might be china |
17:32:55 | Yardanico | lol? |
17:33:00 | alehander92 | they had a nim community |
17:33:06 | alehander92 | they have all kinds of stuff man |
17:33:16 | alehander92 | i would be careful with china |
17:33:19 | Yardanico | well they don't post on the nim forum usually :) |
17:35:23 | FromDiscord | <haxscramper> How difficult would it be to implement reddit integration too? Forum updater just repeatedly scans forum for new posts and sends link here if new post is found, correct? |
17:35:48 | Yardanico | shouldn't be too hard, but idk if it would be welcomed :) |
17:36:56 | FromDiscord | <dom96> ooh yeah plz |
17:37:01 | FromDiscord | <dom96> I keep missing reddit posts |
17:37:08 | Yardanico | ahh |
17:37:15 | Yardanico | you mean from nim subreddit to irc/tg |
17:37:16 | Yardanico | hmm |
17:37:26 | Yardanico | I mean it's not hard, but might get spammy, no? |
17:37:39 | Yardanico | at this point we might as well add the same for stackoverflow nim and nim-lang tags :) |
17:38:09 | alehander92 | yeah people wanted to stop even the forum updater |
17:38:09 | FromDiscord | <haxscramper> I just quick-checked - about half o the new posts actually have some kind of new content (not how-to-do-X questions) and there not so many of them per day, about as much as on nim forum, maybe even less. |
17:41:13 | FromDiscord | <dom96> This one is for Status peeps: https://forum.nim-lang.org/t/6756 CC @mratsim |
17:42:13 | FromGitter | <jorjun_twitter> vscode experience with Nim - no syntax checking until save, and I can’t find a way to step thru source/debug .. is there a way? Do you native types just echo everything? |
17:42:28 | Yardanico | no checking until save sounds really weird |
17:42:34 | Yardanico | ah ok that's right I think |
17:42:59 | FromDiscord | <lakmatiol> actually, is there some editor with better support than VSC? |
17:43:07 | FromDiscord | <Recruit_main707> not really |
17:43:47 | alehander92 | it should be possible to debug |
17:43:57 | alehander92 | if one sets up using nim-gdb.py in the config |
17:44:04 | alehander92 | of the debug tool |
17:44:58 | * | ForumUpdaterBot quit (*.net *.split) |
17:44:58 | * | vicfred quit (*.net *.split) |
17:44:58 | * | snowolf quit (*.net *.split) |
17:44:58 | * | supakeen quit (*.net *.split) |
17:44:58 | * | Araq quit (*.net *.split) |
17:44:58 | * | dv-^_^ quit (*.net *.split) |
17:44:58 | * | dsrw quit (*.net *.split) |
17:44:58 | * | dv^_^ quit (*.net *.split) |
17:44:58 | * | zama quit (*.net *.split) |
17:44:58 | * | hecanjog quit (*.net *.split) |
17:44:58 | * | voltist quit (*.net *.split) |
17:44:58 | * | nisstyre quit (*.net *.split) |
17:45:00 | FromGitter | <jorjun_twitter> wingIDE for python is so damn good - debug console, hover-over variables in editor source to see current values.. was going to try this gdb python script, but on mac it is lldb .. |
17:45:58 | * | solitudesf quit (Remote host closed the connection) |
17:46:01 | FromGitter | <jorjun_twitter> I need to go back to code kindergarten and find out how native coders get things done.. |
17:46:30 | * | snowolf joined #nim |
17:46:30 | * | ForumUpdaterBot joined #nim |
17:46:30 | * | vicfred joined #nim |
17:46:30 | * | supakeen joined #nim |
17:46:30 | * | dv-^_^ joined #nim |
17:46:30 | * | Araq joined #nim |
17:46:30 | * | dsrw joined #nim |
17:46:30 | * | dv^_^ joined #nim |
17:46:30 | * | zama joined #nim |
17:46:30 | * | hecanjog joined #nim |
17:46:30 | * | voltist joined #nim |
17:46:30 | * | nisstyre joined #nim |
17:47:07 | * | snowolf is now known as Guest63113 |
17:47:47 | FromGitter | <jorjun_twitter> would be great to have a nim native IDE.. saw that one initative was stopped due to rising vscode star.. understandable.. but it really can’t do everything.. success is supposed to consist of the ‘management of the non-obvious’ I think excellent debugging and IDE are non-obvious.. |
17:48:27 | FromGitter | <jorjun_twitter> Not giving up anyway.,. |
17:51:06 | FromDiscord | <Recruit_main707> there were 2 attempts iirc, both stopped, there is now an intellij plugin being developed, but its at a really early stage |
17:51:55 | Zevv | neovim support is pretty great IMHO |
17:52:07 | Zevv | Instant highlighting, symbol lookup, error reporting |
17:52:09 | FromDiscord | <Recruit_main707> but its not an ide |
17:52:17 | FromDiscord | <Recruit_main707> as such |
17:52:18 | Zevv | let's not go there |
17:52:39 | FromDiscord | <Recruit_main707> yeah, good idea :p |
17:53:54 | FromDiscord | <lakmatiol> I might try that |
17:59:40 | * | endragor joined #nim |
18:01:45 | * | Zevv quit (Remote host closed the connection) |
18:01:53 | FromDiscord | <haxscramper> QtCreator plugin also worked flawlessly in terms of auto-completion (last time I checked). Can't say for debugging though, since I mostly do `echo` everywhere |
18:06:51 | * | Trustable quit (Remote host closed the connection) |
18:07:55 | * | Trustable joined #nim |
18:11:52 | FromDiscord | <haxscramper> I just checked again - it is even better than last time. Integration with nimble (project creation wizard), qtcreator debugging interface works out of the box, nimsuggest, nimformat, syntax highlighting etc. |
18:13:09 | FromDiscord | <Recruit_main707> qt creator is a bit ugly |
18:13:26 | FromDiscord | <Recruit_main707> and i didnt check debugging, but thats nice |
18:14:05 | FromDiscord | <Recruit_main707> the plugin is actively developed, you can see github comiits are rather common |
18:19:36 | * | ofelas quit (Quit: shutdown -h now) |
18:19:52 | disruptek | new resume: https://github.com/disruptek |
18:20:10 | disruptek | yeah, tell your friends. |
18:20:19 | disruptek | nay, tell your enemies. |
18:20:37 | * | endragor quit (Ping timeout: 264 seconds) |
18:21:45 | disruptek | if only we had computer science. |
18:22:25 | * | ofelas joined #nim |
18:25:37 | * | abm joined #nim |
18:25:51 | FromDiscord | <k1tt3hk4t> What's the correct way to have a macro fail? Can I just tell it to throw an exception and that will be considered a compile error? |
18:25:57 | Yardanico | yes |
18:26:02 | FromDiscord | <k1tt3hk4t> sweet |
18:26:04 | disruptek | error "some goats were discovered here" |
18:26:05 | Yardanico | https://nim-lang.org/docs/macros.html#error%2Cstring%2CNimNode |
18:26:33 | FromDiscord | <k1tt3hk4t> aaa ok |
18:26:35 | FromDiscord | <k1tt3hk4t> useful, ty |
18:26:56 | disruptek | alehander92: hey i have a project for you. |
18:28:07 | * | gmaggior joined #nim |
18:28:08 | * | kungtotte quit (Read error: Connection reset by peer) |
18:28:21 | * | Zevv joined #nim |
18:31:14 | * | kungtotte joined #nim |
18:33:31 | * | tane joined #nim |
18:35:00 | gmaggior | I have just installed inim with $ sudo nimble install inim, but typing inim is "command not found" |
18:35:38 | Yardanico | you need to have ~/.nimble/bin in your PATH |
18:35:48 | Yardanico | also pls |
18:35:53 | Yardanico | never use sudo |
18:35:56 | Yardanico | it installed inim in /root probably |
18:36:03 | Yardanico | just use "nimble install inim", nimble never requires root by itself |
18:36:18 | FromDiscord | <haxscramper> @dom96 I'm terribly sorry for so many troubles over simple forum re-registration -now I created different account name `@haxscramper_`, but didn't get confirmation email. Could you please activate my account? |
18:36:45 | gmaggior | Yardanico, thanks! |
18:37:06 | Yardanico | np |
18:37:16 | FromDiscord | <dom96> @haxscramper done |
18:37:44 | FromDiscord | <haxscramper> Thank you! |
18:44:38 | * | narimiran joined #nim |
18:45:13 | * | tsujp quit (Ping timeout: 264 seconds) |
19:01:11 | * | NimBot joined #nim |
19:01:17 | * | solitudesf joined #nim |
19:02:21 | FromDiscord | <Rebel> Are there any articles that talk about the performance of Nim macros and their overhead compared to functions? |
19:02:32 | disruptek | macros don't have any overhead. |
19:02:53 | disruptek | macros don't have any /runtime/ overhead. |
19:03:00 | Yardanico | @Rebel macros run on compile-time |
19:03:27 | Yardanico | they generate code (AST) from some other input, or from no input at all |
19:05:21 | FromDiscord | <Rebel> ok thanks for the quick replies trying to figure out some possible use cases for them without abusing them |
19:06:01 | disruptek | they are basically designed for abuse in the same way scissors are designed for cutting. |
19:07:54 | FromDiscord | <Rebel> haha you're not wrong at least it's hopefully harder to shoot yourself in the foot compared to using macros in C |
19:08:26 | disruptek | C macros are closer to nim templates, though that will prompt three people to wake up and argue with me. |
19:09:18 | * | solitudesf quit (Ping timeout: 260 seconds) |
19:10:33 | FromDiscord | <Rebel> Only one way to find out 🙂 |
19:10:43 | * | pbb quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
19:10:48 | disruptek | don't stick your dick in that. |
19:11:05 | * | pbb joined #nim |
19:11:15 | Yardanico | disruptek: I generally agree with that |
19:11:22 | Yardanico | about nim templates ~= c macros |
19:11:28 | Yardanico | for the simplest use cases |
19:11:35 | disruptek | they are at the same level of abstraction. |
19:11:37 | Yardanico | of course you also have bind/mixin/inject/gensym/etc |
19:15:31 | * | maier joined #nim |
19:17:44 | * | waleee-cl joined #nim |
19:20:58 | * | maier quit (Ping timeout: 260 seconds) |
19:21:23 | FromDiscord | <iWonderAboutTuatara> Weird error while I was trying to do macros |
19:21:24 | FromDiscord | <iWonderAboutTuatara> https://play.nim-lang.org/#ix=2vTY |
19:21:38 | FromDiscord | <iWonderAboutTuatara> sent a code paste, see https://play.nim-lang.org/#ix=2vTZ |
19:21:44 | Yardanico | that's not how you use quote do :) |
19:21:45 | FromDiscord | <iWonderAboutTuatara> `Error: '[]' can only be used in compile-time context` |
19:21:56 | FromDiscord | <iWonderAboutTuatara> that explains, what am I doing wrong? |
19:22:01 | FromDiscord | <iWonderAboutTuatara> A lot of stuff wasn't working |
19:22:31 | FromDiscord | <iWonderAboutTuatara> I went mostly off the nim tutorial part 3 because there aren't a whole lot of introductory resources for this kind o fthing |
19:22:39 | FromDiscord | <iWonderAboutTuatara> but what should i bo doing in quote do instead? |
19:23:06 | Yardanico | wait a bit |
19:23:15 | FromDiscord | <iWonderAboutTuatara> np |
19:27:01 | FromGitter | <alehander92> disruptek |
19:27:05 | FromGitter | <alehander92> what is the project |
19:27:29 | * | narimiran quit (Quit: leaving) |
19:27:45 | Yardanico | @iWonder https://play.nim-lang.org/#ix=2vU0 |
19:27:59 | Yardanico | just FYI there's https://nim-lang.org/docs/htmlgen.html |
19:28:15 | Yardanico | also it's duplicated quite a lot :) |
19:28:43 | FromGitter | <alehander92> disruptek this is an interesting piece of .. literature |
19:28:59 | FromGitter | <alehander92> if you're trying to get a job in movie scripts |
19:29:20 | Yardanico | you can also do a bit better |
19:30:47 | Yardanico | and just return a string from the macro |
19:30:51 | Yardanico | but it depends on you of course |
19:37:24 | * | Jesin quit (Quit: Leaving) |
19:38:20 | disruptek | wut |
19:38:58 | FromDiscord | <iWonderAboutTuatara> I know there's already an html DSL, i just wanted to learn how macros work |
19:39:08 | Yardanico | well that's a very simple case :) |
19:39:17 | FromDiscord | <iWonderAboutTuatara> agred |
19:39:29 | FromDiscord | <iWonderAboutTuatara> oh you need backticks? |
19:39:41 | FromDiscord | <iWonderAboutTuatara> and no accessing indices of the AST? |
19:40:19 | Yardanico | no |
19:40:35 | FromDiscord | <iWonderAboutTuatara> while in the quote do block i mean |
19:40:36 | Yardanico | I'd suggest you to understand Nim macros a bit better and then try https://github.com/PMunch/macroutils :) |
19:40:38 | Yardanico | yes I know |
19:40:53 | FromDiscord | <iWonderAboutTuatara> will look into that |
19:41:08 | FromDiscord | <iWonderAboutTuatara> I couldn't find very many good tutorials or such |
19:41:40 | FromDiscord | <iWonderAboutTuatara> I don't think you're supposed manuall call newLit and such functions a ton of times right, it's recommended to use quote do? |
19:42:05 | Yardanico | not always |
19:42:17 | Yardanico | you don't need to *only* use quote do |
19:42:19 | Yardanico | you can mix everything freely |
19:42:26 | FromDiscord | <iWonderAboutTuatara> oh interesting |
19:42:38 | FromDiscord | <iWonderAboutTuatara> that seems like a "find out what works best for you by trying" sort of thing though |
19:42:47 | Yardanico | for some specific use-case - yes |
19:43:43 | FromDiscord | <iWonderAboutTuatara> Thanks for the help! |
19:56:39 | * | bung quit (Quit: Lost terminal) |
19:57:24 | * | a_chou joined #nim |
20:06:05 | ForumUpdaterBot | New thread by BarrOff25: Formatted math in documentation?, see https://forum.nim-lang.org/t/6757 |
20:10:04 | FromDiscord | <iWonderAboutTuatara> that is a very useful bot |
20:10:09 | FromDiscord | <iWonderAboutTuatara> big fan of this bot |
20:10:14 | FromDiscord | <iWonderAboutTuatara> Nim server has all the coolest bots |
20:11:11 | FromDiscord | <mbenam> Hello all. First post here...can anyone please tell me what the "*" after proc name stands for. I moved some procs to a different source file. Those procs cannot be called without the "*". |
20:11:17 | FromDiscord | <Elegant Beef> Lol yardanico scrolling through reddit, see this vscode visualizer then the nim honey badger 😄 |
20:11:22 | disruptek | it means, `export this proc`. |
20:11:30 | Yardanico | @elegant hehe :) |
20:11:44 | FromDiscord | <Elegant Beef> anything marked with the asterix, is accessible from files that import it |
20:11:56 | FromDiscord | <Elegant Beef> It's nim's "access modifier" |
20:12:52 | FromDiscord | <mbenam> Got it. So, we can still call it from the current source file where the proc resides? |
20:13:09 | FromDiscord | <Elegant Beef> yea aslong as you call it after it's declared |
20:13:35 | FromDiscord | <mbenam> Great!! thanks for the quick help |
20:13:48 | FromDiscord | <mbenam> I am finding Nim to be very interesting |
20:14:00 | FromDiscord | <mbenam> But it's hard to find things online |
20:14:32 | FromDiscord | <Elegant Beef> Have you looked at the tutorial? |
20:14:38 | FromDiscord | <mbenam> And I fill there are tons of awesome tricks that are not available in the regular docs |
20:15:02 | FromDiscord | <mbenam> I did look at some. But not all of it |
20:15:13 | FromDiscord | <Elegant Beef> It's the downside of having very few people use it, and also sharing name with a game that a ton of people implement in code 😄 |
20:15:18 | FromDiscord | <mbenam> Have been doodling with it for the last 3-4 days |
20:16:16 | FromDiscord | <mbenam> Anyway, coming from python, the speed of execution is just mindblowing. |
20:16:31 | disruptek | yeah, that's the thing. |
20:16:47 | disruptek | i found i couldn't write what i wanted to in python because it was just too fucking slow. |
20:16:57 | disruptek | nim gives you a lot of headroom. |
20:17:20 | FromDiscord | <mbenam> yes it does. |
20:17:40 | FromDiscord | <Elegant Beef> The metaprogramming is really where i find the most cool stuff coming from C# |
20:17:48 | FromDiscord | <mbenam> Are you guys thinking of porting it to microcontrollers? |
20:17:56 | Yardanico | nim already runs on them |
20:17:59 | FromDiscord | <Elegant Beef> nim compiles to C so it runs there |
20:18:16 | FromDiscord | <mbenam> Oh! I did not know. |
20:18:33 | FromDiscord | <mbenam> Any pointers where I can find more information? |
20:18:34 | FromDiscord | <Elegant Beef> Nim can pretty much run anywhere that you can think of |
20:18:49 | FromDiscord | <Elegant Beef> For arduino you can check here↵https://github.com/zevv/nim-arduino |
20:18:56 | FromDiscord | <Elegant Beef> No clue for other MCs |
20:19:05 | Yardanico | https://forum.nim-lang.org/t/4009 |
20:19:09 | Yardanico | this https://forum.nim-lang.org/t/6753#41959 has a few links at the start |
20:19:16 | leorize[m] | query PMunch if he's online, he recently wrote a game for the arduboy |
20:19:21 | Yardanico | he isn't |
20:19:23 | disruptek | make an embedded footnote, please. |
20:19:23 | Yardanico | online |
20:19:30 | Yardanico | https://www.youtube.com/watch?v=eCCrkZI0rVU |
20:19:44 | Yardanico | https://forum.nim-lang.org/t/5509 |
20:19:45 | Yardanico | etc |
20:20:13 | FromDiscord | <mbenam> That's really cool. I am a fan of esp8266 |
20:20:54 | FromDiscord | <mbenam> BTW, I registered for the forum this morning. Still waiting on verification email. Checked spam. |
20:21:08 | disruptek | dom96: ^ |
20:21:46 | FromDiscord | <Elegant Beef> Does the forum have an auto-logout period or is my browser just daft? |
20:22:16 | leorize[m] | forum registration seems to be broken for a lot of people |
20:22:45 | Yardanico | well |
20:23:23 | disruptek | t'was always thus, and always thus t'will it be. |
20:23:55 | Yardanico | because we don't use some other mail service to send emails :) |
20:23:58 | Yardanico | we have our own mail serverr |
20:24:05 | Yardanico | well, not written in nim, but self-hosted I mean |
20:24:22 | disruptek | what the hell does that mean? |
20:24:41 | Yardanico | we don't use some managed service to send registration emails |
20:24:45 | Yardanico | we have a mail server |
20:24:53 | disruptek | what the fuck does that have to do with anything? |
20:25:09 | FromDiscord | <iWonderAboutTuatara> I don't remember there being a registration email for the forum |
20:25:15 | FromDiscord | <iWonderAboutTuatara> It worked very easily for me |
20:25:23 | FromDiscord | <iWonderAboutTuatara> the one time i posted went smoothly and i got a very good answer |
20:25:24 | FromDiscord | <Rika> its probably the cause of the registration email issues> |
20:25:26 | FromDiscord | <Rika> (edit) 'issues>' => 'issues?' |
20:25:44 | Yardanico | disruptek: not all mail services accept emails from small self-hosted mail services |
20:25:46 | disruptek | the cause is laziness. |
20:25:56 | disruptek | Yardanico: that's ridiculous. |
20:25:59 | Yardanico | but it's true :( |
20:26:05 | disruptek | everyone accepts my mail. |
20:26:12 | Yardanico | deliverability with custom mail servers isn't great |
20:26:21 | disruptek | you don't know what you're talking about. |
20:27:27 | Yardanico | i do |
20:27:35 | disruptek | i don't think so. |
20:28:02 | Yardanico | "Email deliverability" is a thing |
20:28:15 | disruptek | okay, buddy. |
20:28:16 | Yardanico | gmail is one of the most accepting mail services |
20:28:23 | disruptek | just, y'know, stop talking. |
20:28:29 | Yardanico | it doesn't even care if your mail server sends unencrypted emails or stuff |
20:28:39 | Yardanico | disruptek: well if you know so much about them, please share your knowledge :) |
20:30:12 | disruptek | i already did. |
20:30:28 | disruptek | i was running email for ISPs since before you were born. |
20:30:47 | disruptek | "mail deliverability" may be a thing, but if a server isn't passing mail, it's simply misconfigured. |
20:31:00 | Yardanico | nonono |
20:31:08 | Yardanico | nim mail server sends these |
20:31:10 | disruptek | i'm not going to debate it with you. |
20:31:12 | Yardanico | but the mail servers don't accept it |
20:31:13 | Yardanico | yeah sure |
20:33:29 | FromDiscord | <haxscramper> Is it possible to catch custom exception via `except Ex` *and* then get exception itself in nimscript? `getCurrentException()` is gives an `undeclared identifier` by catching only derived exception works |
20:34:54 | * | idxu quit (Quit: ZNC - https://znc.in) |
20:35:14 | * | idxu joined #nim |
20:35:41 | disruptek | leorize[m]: is there a way for me to inspect/tweak how your ci checks out a repo for testing? |
20:36:08 | FromGitter | <alehander92> disruptke |
20:36:10 | disruptek | i'm not finding .gitconfig or references i need to check libgit2. |
20:36:13 | FromGitter | <alehander92> what is th project |
20:36:29 | disruptek | i need something that can add syntax highlighting to /any/ syntax. |
20:37:04 | disruptek | it should be able to classify matched symbols like {} [] or " `` or ''. |
20:37:22 | * | idxu quit (Client Quit) |
20:37:24 | disruptek | i can write this in npeg or something but i thought it might be more up your alley. |
20:37:41 | * | idxu joined #nim |
20:38:27 | FromGitter | <alehander92> hmm |
20:38:28 | disruptek | alternatively, i could just pass nim ast to this animal and get back something with at least some basic highlighting or tagging. |
20:38:36 | FromGitter | <alehander92> isn't this more like maching learning |
20:38:41 | disruptek | nah. |
20:38:44 | FromGitter | <alehander92> or cluster |
20:38:47 | FromGitter | <alehander92> detection |
20:38:54 | FromGitter | <alehander92> i had an idea |
20:38:55 | disruptek | it doesn't need to be that sophisticated. |
20:38:57 | FromGitter | <alehander92> related to that dude |
20:38:58 | FromGitter | <alehander92> reminds me |
20:39:04 | FromGitter | <alehander92> i want to make this app |
20:39:15 | FromGitter | <alehander92> which collects info about features |
20:39:20 | FromGitter | <alehander92> for many different languages |
20:39:33 | FromGitter | <alehander92> i can do it in a very simple way |
20:39:40 | FromGitter | <alehander92> but i tend to overengineer it in my mind |
20:40:01 | disruptek | well, don't. |
20:40:19 | FromGitter | <alehander92> disruptek |
20:40:23 | disruptek | sasha |
20:40:25 | FromGitter | <alehander92> ok i'll ask for opinions |
20:40:28 | FromGitter | <alehander92> e.g. |
20:40:34 | FromGitter | <alehander92> i want a syntax search |
20:40:39 | FromGitter | <alehander92> you write an exampe syntax |
20:40:47 | FromGitter | <alehander92> and find out if any known language has it |
20:40:58 | FromGitter | <alehander92> e.g. `for <a> in <b> ..< <c>` |
20:41:06 | FromGitter | <alehander92> you get swift/nim |
20:41:10 | disruptek | that's not very hard to do. |
20:41:17 | FromGitter | <alehander92> but does it make sense |
20:41:19 | FromGitter | <alehander92> as a feature |
20:41:26 | FromGitter | <alehander92> another problem is the whole categorization thing |
20:41:32 | disruptek | not for me, but maybe for someone. |
20:41:36 | FromDiscord | <Elegant Beef> remove all identifiers, have all the valid syntax stored in a DB, then just search for nearest match 😛 |
20:41:39 | FromGitter | <alehander92> because features have subfeatures and clash in different ways |
20:41:52 | disruptek | it's pretty standard nlp stuff. |
20:41:55 | FromGitter | <alehander92> hm, i'd save a structural thing |
20:41:56 | disruptek | bayse/markov. |
20:42:01 | disruptek | bayes, too. |
20:42:07 | FromGitter | <alehander92> but is it |
20:42:10 | disruptek | yes. |
20:42:25 | FromGitter | <alehander92> like does it account for operators / symbols in structure |
20:42:31 | FromGitter | <alehander92> human languages usually have more |
20:42:40 | FromGitter | <alehander92> fuzzy word grammar rules |
20:42:46 | disruptek | of course. |
20:42:53 | FromGitter | <alehander92> so i feel like one can define syntax rules more formally |
20:42:58 | disruptek | pl is more regular so there is better signal. |
20:43:00 | FromGitter | <alehander92> and search in less statistical way |
20:43:07 | FromGitter | <alehander92> but so much work |
20:43:14 | FromGitter | <alehander92> other thing is dependencies |
20:43:16 | disruptek | the work isn't useful. |
20:43:29 | FromGitter | <alehander92> it's hard to assess how a feature comes from |
20:43:36 | FromGitter | <alehander92> but this might be subjective |
20:43:49 | FromGitter | <alehander92> so just showing the history of similar features through time |
20:44:01 | disruptek | dude. no one gives a shit. |
20:44:03 | FromGitter | <alehander92> might show a more clear picture |
20:44:06 | FromGitter | <alehander92> i do dude |
20:44:18 | disruptek | find yourself a pen and a piece of paper. |
20:44:20 | disruptek | job done. |
20:44:20 | FromGitter | <alehander92> and people constantly are like this lang that lang |
20:44:46 | disruptek | i just saw you star some repo with a graph of language origins. |
20:44:51 | disruptek | what more do you want? |
20:44:57 | FromGitter | <alehander92> that's the thing |
20:44:58 | FromGitter | <alehander92> much more |
20:45:10 | FromGitter | <alehander92> graphs can be so much useful if they contain |
20:45:13 | FromGitter | <alehander92> like dude |
20:45:15 | FromGitter | <alehander92> seriously |
20:45:34 | * | idxu quit (Quit: ZNC - https://znc.in) |
20:45:41 | FromGitter | <alehander92> sorry |
20:45:45 | FromGitter | <alehander92> couldn't explain it well |
20:45:54 | * | idxu joined #nim |
20:46:10 | FromGitter | <alehander92> it's cool to compare languages |
20:46:11 | disruptek | i get that you want a property graph with buzzwords and shit. |
20:46:21 | FromGitter | <alehander92> but we have like e.g. 200 features |
20:46:23 | disruptek | i just think it's a waste of effort. |
20:46:25 | FromGitter | <alehander92> which is more fine grained |
20:46:26 | * | Jesin joined #nim |
20:46:36 | FromGitter | <alehander92> e.g. if i want to study how bigint support or dependent type support |
20:46:38 | FromGitter | <alehander92> evolved |
20:46:43 | FromGitter | <alehander92> i can study specifically that |
20:47:02 | FromGitter | <alehander92> well it's not really, because it's useful to compare that anyway |
20:47:24 | FromGitter | <alehander92> because most of lang comparisons are X feature vs Y feature and it's just repetitions of that |
20:47:44 | disruptek | no, buzzwords are useless for comparison purposes. |
20:47:52 | FromGitter | <alehander92> but what is buzzword here |
20:48:07 | FromGitter | <alehander92> i want to see overloading |
20:48:26 | FromGitter | <alehander92> and i can see which different languages use a specific kind of overloading |
20:48:32 | FromGitter | <alehander92> this is interesting to a lang nerd |
20:48:49 | FromGitter | <alehander92> or wonder if any lang used a particular combo of features |
20:49:16 | disruptek | eh.. |
20:50:57 | FromGitter | <alehander92> or compare syntaxes for macros between all lang that define them |
20:50:59 | FromGitter | <alehander92> etc |
20:51:02 | FromGitter | <alehander92> super many cases |
20:51:06 | FromGitter | <alehander92> like it's super niche |
20:51:10 | * | idxu quit (Quit: ZNC - https://znc.in) |
20:51:22 | FromGitter | <alehander92> but not less niche than benchmarks |
20:51:23 | FromGitter | <alehander92> imo |
20:51:34 | FromDiscord | <geekrelief> Hi, I'm trying to produce a dll from a dsl. Is it possible to wrap the nim compiler? |
20:51:37 | * | idxu joined #nim |
20:52:40 | disruptek | shashlick: what do i have to do to get nimble to colorize output in ci? |
20:52:53 | disruptek | geekrelief: sure. |
20:53:03 | FromDiscord | <geekrelief> I have a voxel engine that uses a visual graph to create a "shader", and it wants to compile the shader into a dll. I want the end user to be able to d/l a single executable without any other dependencies. |
20:53:15 | disruptek | tiny example here: |
20:53:17 | disruptek | !repo dust |
20:53:18 | disbot | https://github.com/disruptek/dust -- 9dust: 11DUST is Unattended Syntax Truncation 15 3⭐ 0🍴 7& 1 more... |
20:55:10 | FromDiscord | <geekrelief> @disruptek thanks for the example code! |
20:55:18 | disruptek | sure boss, have fun. |
20:55:44 | FromDiscord | <geekrelief> just a quick question can you point me to the file/API that outputs executables |
20:56:18 | disruptek | type `which nim` into your terminal. |
20:56:23 | * | idxu quit (Client Quit) |
20:56:55 | FromDiscord | <geekrelief> I mean within the compiler API |
20:57:07 | disruptek | the compiler is 60k lines. |
20:57:16 | disruptek | almost all of it is used to output executables. |
20:57:16 | * | idxu joined #nim |
20:57:30 | disruptek | that's kinda the point of a compiler. |
20:57:41 | FromDiscord | <geekrelief> right I get that .. |
20:57:41 | FromDiscord | <Recruit_main707> the compiler outputs c/c++/js code also, not actual executable |
20:57:49 | FromDiscord | <djazz> Compiler ouputs code |
20:58:06 | FromDiscord | <Recruit_main707> (by default gcc) |
20:58:12 | FromDiscord | <djazz> Why put shader in dll? |
20:58:12 | disruptek | doesn't matter, they are equivalent for our purposes. |
20:58:14 | FromDiscord | <geekrelief> I see.. would there be a way to create a single executable for the end user without the gcc dependency |
20:58:21 | FromDiscord | <geekrelief> (edit) 'dependency' => 'dependency?' |
20:58:40 | disruptek | possibly using nvlm. |
20:58:41 | FromDiscord | <Recruit_main707> statically linking (?) |
20:58:55 | disruptek | it would be better if you focused on solving the problem you actually have. hint: this isn't it. |
20:59:22 | * | noonien joined #nim |
20:59:23 | FromDiscord | <Recruit_main707> did you mean nlvm btw? |
20:59:29 | disruptek | yes. |
21:00:10 | * | Vladar quit (Quit: Leaving) |
21:00:12 | FromDiscord | <geekrelief> ok thanks for the suggestions |
21:00:14 | FromDiscord | <Recruit_main707> ok, and as disruptek said, the dlls are not really your problem, the point of dlls were to be independent of the executables to be easily reused |
21:00:14 | FromDiscord | <geekrelief> I'll take a look |
21:00:56 | * | moerm joined #nim |
21:01:16 | moerm | Hello, everyone - the xenophobe is here |
21:01:26 | FromDiscord | <djazz> What format are the shaders? |
21:01:27 | FromDiscord | <geekrelief> yes basically the dlls are going to be loaded by the voxel engine to run |
21:01:47 | FromDiscord | <geekrelief> fyi, I'm asking for someone else |
21:02:00 | FromDiscord | <geekrelief> I assume a custom format |
21:02:11 | moerm | (Some idiot called me xenophobe because I said that my experience with russian colleagues is *pleasant*. Oh well, it seems that lobotomies are free nowadays |
21:02:12 | FromDiscord | <geekrelief> the shaders are generated with a visual graph |
21:02:25 | moerm | ) |
21:03:00 | FromDiscord | <djazz> Then what do you/they need dll/so/dylib for? Just make a file format |
21:03:12 | FromGitter | <alehander92> moerm so edgy dude |
21:03:39 | FromDiscord | <Recruit_main707> or use glsl |
21:04:15 | FromDiscord | <geekrelief> Yeah that's a good point. They could be just brainstorming the right way to do it.. |
21:04:22 | moerm | alehandler I *LIKE* russian software engineers (well, 95% of them). Here, I did it again, evil "xenophobic" me. |
21:04:24 | FromDiscord | <Recruit_main707> there are examples of using shaders from within nim with glsl, even outputing glsl |
21:04:38 | FromDiscord | <Recruit_main707> ...code and using it automatically |
21:04:38 | FromDiscord | <geekrelief> but the goal is produce an optimized C API dll |
21:05:14 | FromGitter | <alehander92> moerm no problem, i get ya, but stuff like "lobotomis are free nowadays" just sounds cringey to me |
21:05:16 | FromDiscord | <geekrelief> yeah this isn't glsl though.. it's basically a DSL for a voxel engine |
21:05:35 | FromDiscord | <djazz> NimScript maybe? |
21:06:14 | moerm | alehandler well a lobotomy seems to be the most probable explanation for that accusation. |
21:06:19 | FromGitter | <alehander92> but i love how everyone has a strong opinion about russians haha |
21:06:21 | FromDiscord | <geekrelief> not sure, but I appreciate the feedback and links. Going to take a look at nlvm |
21:06:27 | FromDiscord | <Clyybber> also a cool insult IMO |
21:06:44 | FromDiscord | <Clyybber> i'm gonna remember that one |
21:06:47 | FromGitter | <alehander92> eh requires more context |
21:07:01 | FromGitter | <alehander92> but this stuff sound a lot like "i am 17 and i am very smart" to me |
21:07:36 | moerm | Clyybber maybe but that isn't my intention. I simply tried to rationally explain how such an idiocy was uttered ... |
21:08:06 | FromGitter | <alehander92> i just feel people who need to use super-hyperbole/insults in 10% of their sentences |
21:08:16 | FromGitter | <alehander92> really can't articulate well their actual argument |
21:08:22 | moerm | alehander92, Yep, that guy looks like an idiot, talks like an idiot and highly likely is an idiot. |
21:08:28 | FromGitter | <alehander92> or lack some kind of normal empathy |
21:08:32 | FromGitter | <alehander92> or humbleness |
21:08:46 | FromGitter | <alehander92> and i despise that more than supposed "idiocy" |
21:09:29 | moerm | I couldn't comment any more (thread is closed) but he pretty much explained himself by stating that practical experience isn't needed and "smart guys" just read books instead ... |
21:09:38 | Yardanico | moerm: you can talk with him in telegram :) |
21:09:39 | moerm | Thanks, your honour, no more questions. |
21:09:46 | Yardanico | initial discussion started there and it's still on-going |
21:09:58 | Yardanico | that is, discussion even before the nim forum thread |
21:10:02 | FromGitter | <alehander92> well great, and there are so many creative way in which one can show the error and teach in love |
21:10:09 | moerm | Yardanico, Thanks but I'm not at all interested. Talking with idiots is not my habit |
21:10:25 | FromGitter | <alehander92> usually people that call other people idiots |
21:10:29 | FromGitter | <alehander92> are not very smart |
21:10:32 | FromGitter | <alehander92> in my experience |
21:10:49 | FromGitter | <alehander92> like, they are smart, but they do lack a certain objectivity about their own weakness |
21:10:56 | Zevv | I always *whisper* idiot |
21:10:59 | FromGitter | <alehander92> yeah, there are some exceptions |
21:11:03 | Zevv | in the elevator, on the toilets |
21:11:05 | disruptek | what weaknesses? |
21:11:11 | moerm | alehander92, Yay, I'm a good example, I'm not at all smart (but gladly my IQ allowds me to emulate intelligence) |
21:11:18 | FromGitter | <alehander92> but i am talking about easily dropping it for all kinds of people that have a stupid opinion |
21:11:18 | FromDiscord | <Rika> i dont know a single person who doesnt call someone an idiot |
21:11:23 | FromGitter | <alehander92> the thing is |
21:11:30 | FromGitter | <alehander92> we all say stupid stuff often |
21:11:40 | Zevv | or when I pass behind someone. Just very quietly. ᶦᵈᶦᵒᵗ |
21:11:48 | FromGitter | <alehander92> so you guys don't really know if i am not a bigger idiot |
21:11:53 | moerm | Zevv *g |
21:11:56 | FromGitter | <alehander92> (how do you do the small letters man) |
21:12:04 | Zevv | just type very softly |
21:12:09 | moerm | Hahaha |
21:13:03 | FromGitter | <alehander92> guys we discuss |
21:13:04 | moerm | alehandler My experience is that I failed miserably when trying to be holy. So I set my targets much lower, your holiness |
21:13:15 | FromGitter | <alehander92> geopolitics in nim-offtopic, so sorry if i am off sometimes |
21:13:46 | moerm | Uhm, stating that one likes (most) russian developers is *not* geopolitics |
21:14:20 | FromGitter | <alehander92> no, we are talking about geopolitics in another nim channel #nim-offtopic |
21:14:30 | FromGitter | <alehander92> actual geopolitics ;)))) |
21:14:53 | FromGitter | <alehander92> moerm i am not talking about holiness tho |
21:14:55 | moerm | O strongly prefer Nim over geopolitics |
21:15:05 | moerm | -O+I |
21:15:08 | FromGitter | <alehander92> being fair and not a douche is not holiness |
21:15:21 | FromGitter | <alehander92> yeah i suspect i am not going to be the UN leader |
21:15:23 | FromGitter | <alehander92> anytime soon |
21:15:48 | moerm | alehander92, and I'll continue to call an idiot "idiot". KISS principle |
21:16:21 | * | maier joined #nim |
21:17:03 | FromDiscord | <iWonderAboutTuatara> this seems like a stupid discussion |
21:17:20 | FromDiscord | <iWonderAboutTuatara> in all honesty, this really does not seem to make any sense |
21:17:21 | moerm | Funny, when I (honestly) state that I consider Araq brillant (~ the opposite of idiot) nobody has a problem. But when I call an idiot and idiot some people complain |
21:17:44 | Yardanico | because you might end up in some people's twitter or mastodon posts :P |
21:17:47 | disruptek | weird. |
21:17:58 | moerm | I call that woke and virtue signalling |
21:18:22 | moerm | Yardanico, Me? I don't care. May they enjoy it |
21:18:27 | Yardanico | hehe |
21:20:07 | FromGitter | <alehander92> moerm well i honestly think that nuance is super cool |
21:20:29 | FromGitter | <alehander92> so most people are not really idiots and most people are not really brilliant imo |
21:20:45 | Zevv | we're all average, statistically speaking |
21:21:04 | FromGitter | <alehander92> but overally saying good things about other people seems as a more objective thing |
21:21:05 | * | maier quit (Ping timeout: 240 seconds) |
21:21:06 | moerm | alehander92, I agree. But so is variety. Nuance for those who get it, and a clear cut "idiot!" for idiots. |
21:21:08 | FromGitter | <alehander92> more selfless |
21:21:14 | Zevv | I am *so* average, I look down at all of you from the top of the bell curve! |
21:21:39 | FromGitter | <alehander92> well.. i am not saying we are no fools, but in most cases i feel people use it in a stupid way |
21:21:53 | FromGitter | <alehander92> and when they get caught in a situation where they are idiot |
21:21:53 | moerm | Zevv BELL curve? How average! |
21:22:06 | Zevv | that's what I say. |
21:22:07 | FromGitter | <alehander92> they don't seem to actually apply the same judgmenet |
21:22:11 | FromGitter | <alehander92> (me as well) |
21:22:55 | moerm | alehander92, That idiot attacked the intelligence and the great work of Araq and the team. That does not deserve nuance but a slap in his stupid face |
21:23:44 | moerm | Zevv Sorry but I don't discuss with people whose IQ is higher than I can count *g |
21:23:49 | FromGitter | <alehander92> Araq is not some kind of art piece in the Louvre dude |
21:24:01 | FromGitter | <alehander92> he can defend himself |
21:24:21 | Zevv | you know what. I'm out of here, g'night |
21:24:23 | Yardanico | people in this channel are way above average :) |
21:24:25 | FromGitter | <alehander92> and defense is much more fruitful when it doesn't fall to the level of attackers |
21:24:26 | Yardanico | good night Zevv |
21:24:43 | moerm | alehander92, Thanks for the update, but I got to know him a bit - and trust me, I'm not gratuiously tossing the word "brillant" |
21:24:48 | FromGitter | <alehander92> Zevv you live below sea level man |
21:24:50 | moerm | n8 Zevv |
21:25:22 | FromGitter | <alehander92> moerm i am not disputting this, just the whole protection thing feels bizarre to me |
21:25:48 | FromGitter | <alehander92> like, it can be done in a more calm way |
21:25:59 | FromGitter | <alehander92> if i read people being annoyed and insulting, i feel something is getting to them |
21:26:03 | FromGitter | <alehander92> i feel weakness |
21:26:14 | FromGitter | <alehander92> it's not the high road |
21:27:00 | moerm | alehander92, Well, you are free to consider me weak. And btw, I don't care for the high road. I care for the *right* road |
21:27:03 | shashlick | let it go folks, makes no difference - the guy has spent a year on his work, he's not going to stop based on some random posts |
21:27:06 | * | arecacea1 quit (Remote host closed the connection) |
21:27:30 | * | arecacea1 joined #nim |
21:27:50 | moerm | shashlick, Probably good advice. But he chose to take a dump *here* ... and *here* I react |
21:28:44 | FromGitter | <alehander92> i don't think you're weak, but this approach is just .. meh imo |
21:29:05 | FromGitter | <alehander92> but i am not even sure who is the "bad guy" here |
21:29:09 | FromGitter | <alehander92> that attacked Araq |
21:29:10 | moerm | alehandler So? |
21:29:27 | FromDiscord | <Admin> how would i get the raw tcppayload when running a http server? |
21:29:36 | Yardanico | you don't :) |
21:29:51 | Yardanico | or write your own http server which allows that |
21:29:58 | Yardanico | you can reuse most http server code from the stdlib |
21:30:22 | FromDiscord | <Admin> oof |
21:30:24 | moerm | Admin there are tool. Or, as Yardanico said, you create your own http server |
21:30:45 | Yardanico | @Admin that's a very niche use-case |
21:30:57 | FromGitter | <alehander92> moerm i think the blog guy was a bit misguided and over-enthusiased and obviously not a nim expert |
21:31:00 | Yardanico | that's why almost no http server implementations regardless of the language has them :) |
21:31:09 | FromDiscord | <Admin> ok maybe this is implemented,↵how do i get the clienthello handshake data ? |
21:31:09 | FromGitter | <alehander92> but that's more of naivety/young thing |
21:31:44 | FromGitter | <alehander92> i suspect many people were a bit .. over-enthusiastic while fresh in something |
21:32:19 | moerm | alehander92, And I think he is an idiot and "reflects" superficially and idiotically and is greedy for attention |
21:32:59 | moerm | But I guess we already wasted too much attention on him. |
21:33:15 | FromGitter | <alehander92> a.k.a. he's green, he'll get some experience and he'll become aware of this eventually |
21:33:24 | FromGitter | <alehander92> no need for all this attention |
21:33:37 | moerm | ale I'm not his daddy nor his brother. I don't care |
21:33:47 | FromGitter | <alehander92> i'd even say that his rust treatment seemed more unfair |
21:34:00 | FromGitter | <alehander92> but i barelay had a view several hours ago so maybe not |
21:34:06 | moerm | The "Xenophobe" (hahahaha!) wishes you all a good time and leaves now |
21:34:10 | FromGitter | <alehander92> it would be such a plot twist |
21:34:13 | FromGitter | <alehander92> if you were his brother |
21:34:15 | FromGitter | <alehander92> haha |
21:34:27 | * | moerm quit (Quit: Leaving) |
21:37:18 | FromDiscord | <iWonderAboutTuatara> Does Nim currently default to ref counting? |
21:37:24 | FromDiscord | <iWonderAboutTuatara> Ie arc or orc |
21:37:46 | Yardanico | nim's default GC right now is deferred refcounting with mark&sweep for cycle collection |
21:37:57 | Yardanico | arc is just pure refcounting + move semantics, not "deferred" or anything |
21:38:07 | FromDiscord | <iWonderAboutTuatara> I see |
21:38:08 | Yardanico | ORC is arc with a cycle collector |
21:38:32 | FromDiscord | <iWonderAboutTuatara> So is arc/orc/current better for real-time applications like games? |
21:38:51 | Yardanico | well to be honest even refc can be soft realtime |
21:38:58 | Yardanico | you can set max pause, only run the GC when you need it to run, etf |
21:39:00 | Yardanico | etc |
21:39:18 | FromDiscord | <iWonderAboutTuatara> Current is honestly fine for gamedev |
21:39:21 | Yardanico | arc is hard realtime, yes, so if you are sure you don't have cycles, you can use ARC. ORC is not hard realtime |
21:39:27 | FromDiscord | <iWonderAboutTuatara> I have minimal issues with it |
21:39:29 | FromDiscord | <iWonderAboutTuatara> I see |
21:39:58 | FromGitter | <alehander92> morm good night <3 |
21:40:12 | FromDiscord | <iWonderAboutTuatara> Arc is hard real-time meaning no need to fiddle with stuff to get it to work for real-time apps? |
21:40:22 | Yardanico | well, yes |
21:40:32 | Yardanico | it's normal refcounting with move semantics |
21:49:15 | FromDiscord | <Admin> sent a code paste, see https://play.nim-lang.org/#ix=2vUH |
21:49:24 | Yardanico | -d:ssl |
21:49:50 | Yardanico | and asynchttpserver doesn't support ssl anyway |
21:49:51 | Yardanico | afaik |
21:50:01 | FromDiscord | <Admin> hmm when i got to type its there |
21:50:17 | Yardanico | because a socket *might* have a sslContent |
21:50:43 | FromDiscord | <Admin> :thonk: |
21:51:20 | * | tane quit (Quit: Leaving) |
21:51:38 | FromDiscord | <Admin> how would i fix this |
21:52:11 | * | Kaivo quit (Ping timeout: 240 seconds) |
21:54:44 | * | Kaivo joined #nim |
21:56:16 | * | lritter joined #nim |
22:03:20 | Araq | Yardanico, dunno, maybe it's now false understatement. it's not "normal refcounting" anymore when 90% of RC ops are statically elided |
22:03:26 | Yardanico | ah right |
22:03:28 | Yardanico | :P |
22:03:39 | disruptek | yes. |
22:04:17 | disruptek | these aren't normal, either: 🏀⚽ |
22:04:29 | disruptek | at least, that's what the doctor tells me. |
22:04:34 | Yardanico | 🍆🍋🍎 |
22:04:36 | disruptek | she may have a vested interest, though. |
22:05:06 | Araq | <insert Unicode beer> here |
22:05:24 | Yardanico | there are actually two different emojis for that |
22:05:32 | Yardanico | 🍻 and 🍺 |
22:05:35 | Yardanico | two beers and one beer :D |
22:05:46 | Yardanico | ah wait, first one is "🍻 Clinking Beer Mugs" |
22:05:55 | disruptek | they aren't clinking. |
22:05:58 | disruptek | they are bumping. |
22:06:00 | disruptek | !repo bump |
22:06:01 | disbot | https://github.com/disruptek/bump -- 9bump: 11a tiny tool to bump nimble versions 🍻 15 16⭐ 1🍴 |
22:06:05 | Yardanico | wow that was smooth |
22:06:07 | Araq | we need 3 beers though |
22:06:25 | Araq | see? Unicode doesn't "scale", let's invent something better |
22:06:28 | disruptek | speak for yourself; i'd rather drink horse piss. |
22:06:49 | disruptek | c'mon, you drink to get drunk. |
22:07:01 | disruptek | otherwise you may as well just gargle water. |
22:07:17 | Araq | how about encoding imagines as a 2D matrix of colors instead. nah, that's crazy talk |
22:07:29 | disruptek | this again? |
22:07:38 | disruptek | what is it with you and thus mutant unicode concept? |
22:07:57 | disruptek | don't we have this already, basically? |
22:08:17 | Araq | I simply hate textmode, sorry |
22:08:24 | disruptek | why? |
22:08:33 | disruptek | how would you prefer to render text? |
22:08:55 | disruptek | or do you want to just code visually. |
22:09:14 | Araq | oh the text is fine but then you need to add a single extension, in former times called putPixel |
22:09:19 | disruptek | chords to produce boxes, circles and arrows, diamonds and triangles. |
22:09:44 | disruptek | !repo zalgo |
22:09:46 | disbot | https://github.com/as-com/_zalgo_ -- 9_zalgo_: 11Destroying GitHub layout since 2016.͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮͈̮̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆̎̆� |
22:09:53 | Araq | you can add vector graphics for something fancier. but instead they add millions of little images to Unicode |
22:10:26 | disruptek | i dunno about you, but my unicode is rendered in svg. |
22:10:45 | * | a_chou quit (Ping timeout: 240 seconds) |
22:12:34 | disruptek | Araq: btw mangling is not incorrectly rewriting symbols that already have a loc defined. |
22:12:53 | Araq | zalgo is a good example :-) |
22:13:26 | disruptek | i'm producing two symbols for different modules and they are getting combined in the same file. |
22:13:38 | disruptek | it's mostly destructors stuff. |
22:18:00 | Araq | Error: typeless parameters are obsolete |
22:18:06 | Araq | ah the memories |
22:18:28 | disruptek | good riddance. i don't think i would ever use such a beast. |
22:18:46 | Araq | we could update the error message now, I can hardly remember this feature |
22:19:42 | Araq | so, last thing on my todo, a 'Dictionary' concept |
22:19:53 | Araq | 'Indexable' works... |
22:22:53 | Araq | once that's done I can cheat and add 'assert' to my concepts |
22:23:24 | Araq | assert compiles(x == y) # cannot infere my type variables, I don't care |
22:23:25 | disruptek | just tell me when you're ready for bug reports. |
22:23:57 | Araq | well this work is not scheduled, I should finish off 'koch boot --gc:arc' and release 1.4 |
22:24:25 | Araq | so I shouldn't be ready for bug reports this year |
22:24:47 | disruptek | when 1.4 is released, what role will 1.2 have? |
22:24:51 | Araq | but there is good news. the impl is 250 lines and you can write PRs |
22:25:23 | disruptek | my PRs start at 3k loc and go from there. |
22:25:26 | disruptek | there's no playin' aroun'. |
22:25:26 | Araq | and the code is isolated, you touch it, nothing else in the compiler breaks |
22:25:51 | disruptek | i am mangling sfGeneratedOp specially. |
22:25:57 | disruptek | well, as if it were global. |
22:26:03 | Araq | in fact, that's the biggest lesson I learned from this, re-using sigmatch for unrelated purposes is madness |
22:26:17 | disruptek | speak now or forever hold your peace. |
22:26:37 | Araq | the basic unification algorithm is easy, sigmatch is complex because of all the different type relations |
22:26:41 | disruptek | if sigmatch was rewritten, we'd be happier to use it for other stufff. |
22:26:45 | Araq | which I don't need for concept matching |
22:27:38 | Araq | code reuse is overrated :-) |
22:28:02 | disruptek | you only say that because we don't have cyclic modules. |
22:28:27 | Araq | no. |
22:28:53 | Araq | and I like to offer you cyclic modules, have given up my dislikes against them |
22:29:08 | disruptek | with flat namespace? |
22:29:40 | Araq | namespaces are independent of cycles |
22:29:51 | disruptek | but no scoping, right? |
22:30:00 | disruptek | or have you moderated on this, too. |
22:30:10 | * | endragor joined #nim |
22:32:46 | Araq | I don't understand your question |
22:32:54 | Araq | do you want "Local" imports? |
22:33:04 | disruptek | you mean local to scope? no. |
22:33:33 | disruptek | i don't have a strong opinion yet, but you had earlier said you didn't want to go the way of npm. |
22:34:21 | disruptek | i'm moving towards submodules for everything, so i'm trying to figure out how nimph is going to help the user. |
22:34:44 | * | endragor quit (Ping timeout: 258 seconds) |
22:35:41 | shashlick | No namespace! |
22:38:11 | * | awe00_ quit (Ping timeout: 258 seconds) |
22:40:42 | * | awe00_ joined #nim |
22:41:25 | disruptek | why? |
22:41:52 | disruptek | seems like a passionate statement but there's no subtext. |
22:47:03 | * | abm quit (Quit: Leaving) |
22:54:08 | FromDiscord | <dom96> shashlick: finally finished my response 🙂 https://forum.nim-lang.org/t/6738#41989 |
23:00:17 | shashlick | nice |
23:05:23 | * | a_chou joined #nim |
23:08:38 | * | endragor joined #nim |
23:10:49 | FromDiscord | <dom96> well, that's awkward |
23:10:58 | FromDiscord | <dom96> nimforum hasn't been sending emails at all |
23:11:36 | Yardanico | lol |
23:11:40 | * | awe00 joined #nim |
23:12:54 | * | a_chou quit (Read error: Connection reset by peer) |
23:13:00 | * | a_chou1 joined #nim |
23:13:29 | * | awe00_ quit (Ping timeout: 265 seconds) |
23:14:53 | FromDiscord | <dom96> all thanks to https://github.com/nim-lang/nimforum/commit/7e424792284003e88d013407e1997f2b85866d8e |
23:15:07 | FromDiscord | <dom96> Anyway, now it definitely works 🙂 |
23:15:15 | Yardanico | at least it wasn't due to my commit :P |
23:15:19 | * | a_chou1 is now known as a_chou |
23:16:35 | * | krux02 quit (Remote host closed the connection) |
23:16:48 | * | lritter quit (Quit: Leaving) |
23:17:11 | * | maier joined #nim |
23:20:08 | * | endragor quit (Ping timeout: 260 seconds) |
23:20:40 | ForumUpdaterBot | New thread by Archnim: How can i separate the integer part of a number from its decimal part ?, see https://forum.nim-lang.org/t/6758 |
23:22:28 | * | maier quit (Ping timeout: 260 seconds) |
23:44:04 | * | Trustable quit (Remote host closed the connection) |
23:49:03 | FromDiscord | <Elegant Beef> I've been logged out again on the nim forums |
23:49:06 | FromDiscord | <Elegant Beef> This is atrocious! |
23:55:29 | shashlick | the forum is like a bank - it logs you out cause, you know |