00:40:27 | * | systemdsucks quit (Server closed connection) |
00:40:37 | * | systemdsucks joined #nim |
01:35:41 | FromDiscord | <_gumbercules> Its akin to writing typescript |
01:36:33 | FromDiscord | <_gumbercules> Static type safety plus you gain access to other features Nim offers that JS doesn't |
01:54:41 | * | Lord_Nightmare quit (Quit: ZNC - http://znc.in) |
01:57:12 | * | Lord_Nightmare joined #nim |
02:49:18 | * | pbsds quit (Quit: The Lounge - https://thelounge.chat) |
02:49:59 | * | pbsds joined #nim |
03:07:33 | * | krux02 quit (Remote host closed the connection) |
03:39:06 | FromDiscord | <sOkam! đ«> In reply to @chronos.vitaqua "With Nim using Zig": its explained in the ZigCC package, but you can see the idea here too:â”https://github.com/heysokam/confy/blob/ffc9668fbbe47503d7a4fd35b2d430c8f381ff82/src/confy/builder/nim.nim#L87-L107â”The heart of it is that you need to provide these parameters: https://github.com/heysokam/confy/blob/ffc9668fbbe47503d7a4fd35b2d430c8f381ff82/src/confy/builder/nim.nim#L97-L99 |
03:48:59 | FromDiscord | <sOkam! đ«> does nim compile with `-jN` by default? |
04:19:35 | * | rockcavera quit (Remote host closed the connection) |
05:04:40 | FromDiscord | <raynei486> In reply to @heysokam "does nim compile with": I think it says so in the first few lines of the system-wide `nim.cfg` |
05:42:39 | * | azimut joined #nim |
05:46:33 | * | advesperacit joined #nim |
06:14:01 | NimEventer | New question by me0045: How to serve a static directory with nim httpbeast?, see https://stackoverflow.com/questions/77042075/how-to-serve-a-static-directory-with-nim-httpbeast |
06:27:34 | FromDiscord | <sOkam! đ«> sent a code paste, see https://play.nim-lang.org/#ix=4FpE |
06:28:19 | FromDiscord | <sOkam! đ«> in C that's just moving the pointer towards the N'th element... but don't now how to do that with Nim |
06:35:12 | FromDiscord | <odexine> Index the array, get the address of that indexed value |
06:35:42 | FromDiscord | <odexine> Perhaps result[len1].addr or so |
06:45:08 | * | PMunch joined #nim |
06:48:16 | * | cedb quit (Ping timeout: 250 seconds) |
06:50:43 | PMunch | @Barbie, the cons are basically just file size |
06:51:15 | FromDiscord | <pmunch> Damn it, why aren't mentions properly transformed any longer? @barbiehammer ^ |
07:12:39 | FromDiscord | <mratsim> In reply to @barbiehammer "can someone explain to": Just run the Closure compiler on Nim output to optimize it further. |
08:38:25 | FromDiscord | <jaar23> https://nim-lang.org/docs/locks.html what is cond in std/locks module? Also, why and how to use it? |
08:42:19 | FromDiscord | <odexine> Condition variable |
08:42:31 | FromDiscord | <odexine> Itâs a thing for threading, not sure if there are alternate names |
08:49:59 | PMunch | Hmm interesting, this arbitrary math library has an included FFT module which just isn't exported |
08:50:24 | PMunch | Like the libmapm.a file contains the functions, they're just not in the .h file |
08:51:10 | FromDiscord | <odexine> Might not be stable yet? |
08:51:55 | PMunch | jaar23, this might help clear it up: https://web.stanford.edu/~ouster/cgi-bin/cs140-spring14/lecture.php?topic=locks |
08:52:23 | PMunch | odexine, it was released in 1999, last stable release was in 2010.. |
08:52:39 | PMunch | The FFT module was added in 2000 |
08:53:52 | FromDiscord | <odexine> Well that doesnât mean it would be stable, it prolly wasnât worked on so itâs still not stable, but thatâs speculation |
08:59:27 | PMunch | Hmm, it seems to use it to optimize multiplication.. |
09:00:02 | PMunch | Or rather the module contains a fast multiplication function which is used in the normal multiply module |
09:02:20 | FromDiscord | <jaar23> In reply to @PMunch "<@614403538172379156>, this might help": Thanks let me take a look |
09:25:25 | FromDiscord | <kingterrytheterrible12> Guys is there a step through debugger for nim? |
09:25:36 | PMunch | kingterrytheterrible12, gdb? |
09:25:48 | FromDiscord | <kingterrytheterrible12> No i want to debug nim |
09:25:50 | FromDiscord | <kingterrytheterrible12> Not C |
09:26:04 | PMunch | Yes? |
09:26:09 | FromDiscord | <kingterrytheterrible12> Bro wdym |
09:26:20 | FromDiscord | <kingterrytheterrible12> Oh wait i forgor it isnt like java |
09:26:32 | FromDiscord | <kingterrytheterrible12> Ffs native debugging is a nightmare |
09:26:53 | PMunch | https://nim-lang.org/blog/2017/10/02/documenting-profiling-and-debugging-nim-code.html#using-gdb-lldb |
09:27:49 | PMunch | Nim is able to insert various debug information into the binary which GDB will use to display your Nim code |
09:28:34 | FromDiscord | <kingterrytheterrible12> Ah alright |
09:28:40 | FromDiscord | <kingterrytheterrible12> Thanks |
09:28:45 | PMunch | Granted it's still not the most ergonomic |
09:29:10 | PMunch | There used to be a GDB extension shipped with Nim, a small Python script which allowed GDB to show even better information |
09:30:29 | FromDiscord | <odexine> Yet another tooling problem haha |
09:31:10 | FromDiscord | <kingterrytheterrible12> Yeah nim needs popularity |
09:31:19 | FromDiscord | <kingterrytheterrible12> That fireship video helped |
09:31:57 | FromDiscord | <System64 ~ Flandre Scarlet> @Phil Hiâ”About Norm is it possible to modify a model and then save the changes into database? |
09:32:37 | FromDiscord | <Phil> In reply to @sys64 "<@180601887916163073> Hi About Norm": Sure |
09:33:05 | FromDiscord | <Phil> I can't write a minimal example atm because fairly important meeting so eh, but shouldn't be hard and pretty sure there's docs for it in the nimibook |
09:34:08 | FromDiscord | <System64 ~ Flandre Scarlet> I didn't saw any example about this in the docsâ”But I don't think `insert` would work |
09:37:12 | FromDiscord | <Phil> Pretty sure there's an update proc |
09:38:37 | FromDiscord | <System64 ~ Flandre Scarlet> yeah there is, thanks |
09:47:58 | FromDiscord | <mratsim> In reply to @PMunch "Hmm interesting, this arbitrary": FFT is the fastest way to multiply very large numbers |
09:49:02 | PMunch | Huh, TIL |
09:49:08 | FromDiscord | <mratsim> https://mathscholar.org/2019/04/an-n-log-n-algorithm-for-multiplication/ |
09:49:31 | * | dv^_^ quit (Server closed connection) |
09:49:32 | PMunch | Looked a bit more into it and it is indeed just for internal multiplication and not arbitrary precision FFT as I first thought |
09:49:55 | * | dv^_^ joined #nim |
09:51:15 | FromDiscord | <mratsim> sent a long message, see http://ix.io/4Fqb |
09:52:06 | FromDiscord | <mratsim> (a polynomial can be represented either by it's coefficient forms, or by it's evaluation at n+1 points n being the degree, as a single polynomial of degree n can pass through n+1 points |
09:52:52 | FromDiscord | <mratsim> and the polynomial f(u)\g(u), f(v)\g(v), f(w)\g(w) is what you want. |
09:53:39 | FromDiscord | <mratsim> and passing from one representation to the other requires FFT.â”â”coefficient -> evaluation is called polynomial evaluationâ”evaluation -> coefficient is called polynomial interpolation |
09:54:09 | FromDiscord | <mratsim> Why am I talking about polynomials?â”â”A bigint is a polynomial |
09:54:46 | FromDiscord | <mratsim> a + b.2^64 + c.2^128 + d.2^192 + e.2^256 + ..... |
09:55:05 | PMunch | Aaah |
09:55:40 | FromDiscord | <mratsim> classic multiplication is O(nÂČ) but FFT is O(n log n) |
09:55:40 | PMunch | That makes it make more sense, I didn't connect the dots between multiplication and polynomials |
09:55:57 | PMunch | That's quite the improvement |
10:18:38 | * | xet7 quit (Ping timeout: 246 seconds) |
10:32:06 | * | xet7 joined #nim |
10:58:09 | * | jmdaemon quit (Ping timeout: 244 seconds) |
11:54:37 | * | krux02 joined #nim |
11:54:50 | krux02 | PMunch, is nim-gdb not part of nim anymore? |
11:55:07 | PMunch | krux02, no idea |
11:55:45 | FromDiscord | <krux02> @kingterrytheterrible12 how do you think nim will get more popular, when important tooling gets removed instead of added to the distribution? |
11:56:14 | FromDiscord | <kingterrytheterrible12> In reply to @arne "<@655759729477287956> how do you": what got removed |
11:56:17 | krux02 | PMunch, https://github.com/nim-lang/Nim/blob/devel/bin/nim-gdb |
11:56:25 | krux02 | it seems to still be there |
11:56:38 | PMunch | Right, so it used to be shipped with Nim, and it still is |
11:56:54 | PMunch | I just hadn't used it in a while, so I wasn't sure if it was still part of it |
11:57:08 | krux02 | it is still part of the git repo |
11:57:16 | PMunch | I can see that |
11:57:21 | krux02 | maybe it is not installed |
11:57:27 | PMunch | Even got an update seven months ago |
11:57:50 | krux02 | people use it. Yay, my contributions to nim get actually used and are valued |
11:57:54 | PMunch | As I said, I just wasn't sure if it was part of the install. Just checked and I have it installed on this machine :) |
11:58:26 | PMunch | "/home/peter/.nimble/tools/debug/nim-gdb.py: No such file or directory." |
11:58:27 | PMunch | Hmm |
11:58:34 | krux02 | so the tutorial should probably reflect that |
11:59:34 | PMunch | IMO it should just put the script next to itself in the bin folder |
11:59:54 | krux02 | there is also nimlldb.py in the git repo |
12:00:16 | krux02 | yea, probably |
12:01:29 | PMunch | Right, so I have that script in .choosenim/toolchains/nim-2.0.0/tools/debug/nim-gdb.py |
12:02:27 | krux02 | you can make a PR to change that. I think it would also simplify the script I guess |
12:50:52 | * | jjido joined #nim |
13:04:23 | FromDiscord | <realqquantum> waiitttt |
13:04:25 | FromDiscord | <realqquantum> how do i connect |
13:04:26 | FromDiscord | <realqquantum> from irc |
13:05:14 | FromDiscord | <realqquantum> what's the ip/port |
13:05:20 | FromDiscord | <odexine> libera |
13:05:31 | FromDiscord | <odexine> room #nim |
13:07:17 | FromDiscord | <realqquantum> kk |
13:09:18 | PMunch | realqquantum, what are we waiting for? |
13:11:16 | FromDiscord | <realqquantum> uhhhh it doesnt let me connect |
13:12:29 | PMunch | Have you registered a Libera user? |
13:13:01 | PMunch | Oh wait, maybe you don't need a user |
13:13:14 | * | Guest17 joined #nim |
13:13:34 | Guest17 | Nope, just checked with their webchat thingy, works just fine |
13:13:40 | FromDiscord | <realqquantum> im using irssi |
13:13:41 | * | Guest17 quit (Client Quit) |
13:14:15 | FromDiscord | <realqquantum> what would be the best way to learn nim |
13:14:32 | PMunch | Hmm, not familiar with how it works, so hard to give you any help apart from just pointing you to IRSSI docs.. |
13:14:42 | PMunch | realqquantum, well that depends on what you already know |
13:14:56 | FromDiscord | <realqquantum> i know python and learning C++ |
13:16:11 | PMunch | Then I guess you can have a look at learnxinyminutes/docs/nim along with https://github.com/nim-lang/Nim/wiki/Nim-for-Python-Programmers, and of course the manual |
13:16:28 | FromDiscord | <realqquantum> kk |
13:17:05 | PMunch | This might also help you along: https://forum.nim-lang.org/t/10394 |
13:17:28 | PMunch | And of course asking here or on the forum if you get stuck :) |
13:31:02 | * | jjido quit (Quit: My laptop has gone to sleep. ZZZzzzâŠ) |
13:31:38 | krux02 | @realqquantum: just set yourself a goal/project and search for solutions for all problems on the road (True for every programming language). |
13:32:05 | FromDiscord | <realqquantum> is an info grabber a good project |
13:37:14 | FromDiscord | <enthus1ast> what is an info grabber? |
13:38:04 | FromDiscord | <odexine> something that grabs info |
13:39:10 | FromDiscord | <realqquantum> yes |
13:39:22 | FromDiscord | <realqquantum> like passwords and hardware info yk |
13:41:40 | PMunch | Not sure if stealing passwords would be considered a "good project" |
13:52:05 | FromDiscord | <demotomohiro> !eval echo "Grabs some info : ", static: staticExec "lscpu" |
13:52:06 | NimBot | Compile failed: /usercode/in.nim(1, 36) Error: 'staticExec' can only be used in compile-time context |
13:52:42 | FromDiscord | <demotomohiro> !eval echo static: staticExec "lscpu" |
13:52:43 | NimBot | Compile failed: /usercode/in.nim(1, 14) Error: 'staticExec' can only be used in compile-time context |
13:53:42 | FromDiscord | <demotomohiro> !eval echo static staticExec "lscpu" |
13:53:45 | NimBot | /bin/sh: lscpu: not found |
14:00:57 | FromDiscord | <e.e.7> @demotomohiro perhaps this? `echo staticRead("/proc/cpuinfo")` |
14:05:02 | FromDiscord | <demotomohiro> `echo static staticRead("/proc/cpuinfo")` would work, but output can be large if the server has many cores. |
14:07:05 | krux02 | !eval echo staticExec("lscpu") |
14:07:06 | NimBot | Compile failed: /usercode/in.nim(1, 16) Error: 'staticExec' can only be used in compile-time context |
14:07:11 | FromDiscord | <odexine> Itâs within a container and the ghost has one core |
14:07:16 | FromDiscord | <odexine> Host |
14:07:52 | krux02 | !eval const tmp = staticExec("lscpu"); echo tmp |
14:07:54 | NimBot | /bin/sh: lscpu: not found |
14:10:08 | krux02 | !eval const tmp = staticExec("less /proc/cpuinfo | grep 'cpu cores' | head -n 1"); echo tmp |
14:10:11 | NimBot | cpu cores : 1 |
14:10:32 | krux02 | there you go |
14:12:41 | krux02 | !eval echo static staticExec("grep 'cpu cores' -m 1 /proc/cpuinfo") |
14:12:44 | NimBot | cpu cores : 1 |
14:13:36 | PMunch | *Laughs in playground* many cores! |
14:13:46 | PMunch | It barely has a single core |
14:13:49 | * | PMunch quit (Quit: Leaving) |
14:14:59 | FromDiscord | <realqquantum> uhhh https://media.discordapp.net/attachments/371759389889003532/1148622307351339098/image.png |
14:20:42 | FromDiscord | <BanannaMan> I wanna take part in a nim project. Any suggestions? |
14:20:53 | FromDiscord | <BanannaMan> I have to brush up on my skills somehow |
14:50:30 | FromDiscord | <kingterrytheterrible12> In reply to @realqquantum "uhhh": why nim is run as sudo |
14:50:53 | FromDiscord | <kingterrytheterrible12> compiling proton by steam is taking a long time lol |
14:51:10 | FromDiscord | <realqquantum> In reply to @kingterrytheterrible12 "why nim is run": still dont work https://media.discordapp.net/attachments/371759389889003532/1148631411901870100/image.png |
14:51:21 | FromDiscord | <kingterrytheterrible12> In reply to @realqquantum "still dont work": how did you install nim |
14:51:33 | FromDiscord | <realqquantum> x64 tarball thing |
14:51:41 | FromDiscord | <kingterrytheterrible12> remove it |
14:51:45 | FromDiscord | <kingterrytheterrible12> and install it like this |
14:51:53 | FromDiscord | <kingterrytheterrible12> `curl https://nim-lang.org/choosenim/init.sh -sSf | sh` |
14:52:03 | FromDiscord | <realqquantum> okkkk |
14:52:42 | FromDiscord | <realqquantum> done |
14:52:49 | FromDiscord | <kingterrytheterrible12> check if its fixed |
14:53:30 | FromDiscord | <realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148632000140427385/image.png |
14:53:37 | FromDiscord | <kingterrytheterrible12> restart shell |
14:53:43 | FromDiscord | <kingterrytheterrible12> close and open the terminal |
14:53:47 | FromDiscord | <realqquantum> okkk |
14:53:56 | FromDiscord | <kingterrytheterrible12> are you linux noob? |
14:54:50 | FromDiscord | <realqquantum> i have experience w/ linux |
14:55:15 | FromDiscord | <realqquantum> i usb boot it on an older laptop every once in a while |
14:55:20 | FromDiscord | <kingterrytheterrible12> ok |
14:55:24 | FromDiscord | <kingterrytheterrible12> is your problem fixed? |
14:56:07 | FromDiscord | <realqquantum> uh https://media.discordapp.net/attachments/371759389889003532/1148632659837325443/image.png |
14:56:58 | FromDiscord | <kingterrytheterrible12> hm how |
14:57:04 | FromDiscord | <kingterrytheterrible12> did you restart your terminal? |
14:57:25 | FromDiscord | <realqquantum> ye |
14:57:27 | * | blop quit (Ping timeout: 246 seconds) |
14:57:37 | FromDiscord | <kingterrytheterrible12> ok open new terminal and type `nano .bashrc` |
14:57:43 | FromDiscord | <kingterrytheterrible12> then show the bottom of it |
14:57:58 | * | blop joined #nim |
14:58:02 | FromDiscord | <realqquantum> okk |
14:59:02 | FromDiscord | <kingterrytheterrible12> if you have vscode too you can just `code .bashrc` |
14:59:15 | FromDiscord | <realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148633449993863269/image.png |
14:59:22 | FromDiscord | <realqquantum> wait no |
14:59:25 | FromDiscord | <realqquantum> not the bottom |
14:59:51 | FromDiscord | <kingterrytheterrible12> go bottom |
14:59:56 | FromDiscord | <realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148633620987269220/image.png |
15:00:06 | FromDiscord | <kingterrytheterrible12> is this the bottom? |
15:00:10 | FromDiscord | <realqquantum> ye |
15:00:16 | FromDiscord | <kingterrytheterrible12> nim is not in your path |
15:00:17 | FromDiscord | <kingterrytheterrible12> so |
15:00:19 | FromDiscord | <kingterrytheterrible12> lets add it |
15:01:04 | FromDiscord | <kingterrytheterrible12> put this at the end of the file and replace USER with your usernameâ”`export PATH=/home/USER/.nimble/bin:$PATH` |
15:01:09 | FromDiscord | <realqquantum> kk |
15:09:04 | FromDiscord | <realqquantum> still dontwork |
15:12:28 | FromDiscord | <michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4Frz |
15:12:36 | FromDiscord | <realqquantum> kk |
15:12:52 | FromDiscord | <realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148636877109334108/image.png |
15:13:18 | FromDiscord | <michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4FrA |
15:17:19 | FromDiscord | <realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148637992219578558/image.png |
15:17:21 | FromDiscord | <realqquantum> it's wsl |
15:20:17 | FromDiscord | <michaelb.eth> okay, so the path for .nimble/bin is not in PATH, and that's the problem |
15:21:45 | FromDiscord | <michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4FrC |
15:22:00 | FromDiscord | <kingterrytheterrible12> In reply to @realqquantum "it's wsl": could have mentioned ngl |
15:22:03 | FromDiscord | <michaelb.eth> make sure to use single `'` NOT double `"` |
15:22:21 | FromDiscord | <realqquantum> In reply to @kingterrytheterrible12 "could have mentioned ngl": mb |
15:22:53 | FromDiscord | <michaelb.eth> (edit) "https://play.nim-lang.org/#ix=4FrC" => "https://play.nim-lang.org/#ix=4FrD" |
15:22:59 | FromDiscord | <michaelb.eth> (edit) "make sure to use single `'` NOT double `"` ... " added "for the outer quotes" |
15:23:39 | FromDiscord | <michaelb.eth> after adding that line to .bashrc, launch a new WSL terminal/shell |
15:23:48 | FromDiscord | <michaelb.eth> then `echo ${PATH}` |
15:24:42 | FromDiscord | <realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148639854117273620/image.png |
15:25:06 | FromDiscord | <michaelb.eth> cat .bashrc |
15:25:15 | FromDiscord | <michaelb.eth> just want to see the bottom |
15:26:44 | FromDiscord | <realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148640363825860669/image.png |
15:26:54 | FromDiscord | <michaelb.eth> okay, you didn't add the line to .bashrc |
15:27:23 | FromDiscord | <michaelb.eth> oh wait, you did, sorry, my eyes didn't catch it at first |
15:27:59 | FromDiscord | <michaelb.eth> did you open a new WSL window? |
15:28:25 | FromDiscord | <realqquantum> yes |
15:29:04 | FromDiscord | <michaelb.eth> hmm, I don't know then, maybe .bashrc isn't being sourced for some reason |
15:29:26 | FromDiscord | <michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4FrF |
15:29:48 | FromDiscord | <realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148641132172038326/image.png |
15:30:22 | FromDiscord | <michaelb.eth> ah, there's something messed up higher up in your bashrc, so the `export PATH,..` is never reached |
15:30:27 | FromDiscord | <michaelb.eth> you'll need to fix that first |
15:30:44 | FromDiscord | <michaelb.eth> looks like something wrong related to `color_prompt` |
15:31:32 | FromDiscord | <realqquantum> kk lemme try to fix |
15:34:02 | FromDiscord | <realqquantum> yoooooo it works now\ |
15:36:19 | FromDiscord | <realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148642775500324984/image.png |
15:37:08 | FromDiscord | <realqquantum> cant wait to finally start learning |
15:37:46 | * | erich joined #nim |
15:39:47 | * | erich quit (Client Quit) |
15:49:13 | * | jjido joined #nim |
15:50:47 | FromDiscord | <jaar23> sent a code paste, see https://play.nim-lang.org/#ix=4FrO |
15:53:32 | FromDiscord | <Phil> In reply to @BanannaMan "I wanna take part": Any area you're particularly interested in?â”Cryptography, webdev, gamedev, native GUI for desktop, native GUI for mobile? |
15:53:37 | * | ntat joined #nim |
15:54:02 | FromDiscord | <jaar23> https://media.discordapp.net/attachments/371759389889003532/1148647234980819004/image.png |
15:54:17 | FromDiscord | <Phil> In reply to @realqquantum "": If you wanna save time: `nim r learning.nim` will compile and immediately run the file |
15:54:40 | FromDiscord | <realqquantum> In reply to @isofruit "If you wanna save": dayum |
15:54:42 | FromDiscord | <realqquantum> thanks |
15:55:23 | FromDiscord | <Phil> Also also:â”It might make sense to write yourself a "playground" project.â”Basically something where you can on the fly just write and copy paste stuff into to see if/how it works |
15:55:35 | FromDiscord | <Phil> (edit) "Also also:â”It might make sense to write yourself a "playground" project.â”Basically something where you can on the fly just write and copy paste stuff into ... to" added "and automatically have it compiled" |
15:55:57 | FromDiscord | <Phil> Particularly for more complex proof of concepts that need 50+ lines of code or multiple files its quite nice |
15:56:29 | FromDiscord | <BanannaMan> In reply to @isofruit "Any area you're particularly": I'd like gamedev and cryptography |
15:56:51 | FromDiscord | <Phil> In reply to @jaar23 "hi, i hit some": Is client a value type? I assume so, otherwise client is nil and that would break your info log |
15:57:47 | FromDiscord | <enthus1ast> @jaar23\: firewall or similar? Port already in use? |
15:58:03 | FromDiscord | <jaar23> In reply to @enthus1ast "<@614403538172379156>\: firewall or similar?": ffirewall is disabled |
15:58:48 | FromDiscord | <jaar23> In reply to @isofruit "Is client a value": I hope it break and I can see some error but no traffic routing there, but this code working fine locally |
15:58:50 | FromDiscord | <Phil> In reply to @BanannaMan "I'd like gamedev and": gamedev you could ask @jmgomez if he has anything he'd like help with, afaik he's working on a UE wrapper.â”Cryptography off the cuff:â”I've got a password hashing library called nimword, if you want to have it simple you could see about implementing additional hashing algo's in there (or more like calling openssl/bearssl to do the hashing for you) and squeeze that into the uniform API that |
15:59:52 | * | cnx quit (Remote host closed the connection) |
15:59:54 | FromDiscord | <Phil> (edit) "In reply to @BanannaMan "I'd like gamedev and": gamedev you could ask @jmgomez if he has anything he'd like help with, afaik he's working on" => "sent" | "UE wrapper.â”Cryptography off the cuff:â”I've got a password hashing library called nimword, if you want to have it simple you could see about implementing additional hashing algo's in there (or more like calling openssl/bearssl to do the hashing for you) and squeeze that into |
16:00:07 | FromDiscord | <realqquantum> ngl the logo is cool af |
16:00:43 | * | cnx joined #nim |
16:00:45 | FromDiscord | <realqquantum> :nimAngry: |
16:00:49 | FromDiscord | <Phil> If you want to go deep into cryptography or security, you'll need to ask mratsim if they know of anything that could be worthwhile to look into, but that seems like it would require a fair bit of getting into stuff |
16:01:58 | FromDiscord | <BanannaMan> Okay, thanks |
16:02:29 | FromDiscord | <BanannaMan> Can you link me to your password hashing library? |
16:03:02 | * | junaid_ joined #nim |
16:03:43 | FromDiscord | <Phil> https://github.com/PhilippMDoerner/nimwordâ”It's basically that every password hashing algo must be in its own module and implement the same 4 or so procs with the same mandatory parameters and however many optional ones |
16:03:47 | * | jjido quit (Quit: My laptop has gone to sleep. ZZZzzzâŠ) |
16:05:02 | FromDiscord | <Phil> As the idea is supposed to be that you easily work with a database that has mixed hashes of passwords, some using one algo, others using a different algo (due to history) and that you can swap with an input parameter of a centralized proc which algo for hashing gets used |
16:05:10 | FromDiscord | <enthus1ast> @jaar23\: what is a nano node btw? |
16:05:22 | FromDiscord | <Phil> Currently only provides argon, and 2 variations of pbkdf2 |
16:06:42 | FromDiscord | <Phil> Could of course also provide bcrypt and/or scrypt |
16:07:07 | FromDiscord | <odexine> In reply to @enthus1ast "<@614403538172379156>\: what is a": probably a nanode (linode) |
16:08:08 | FromDiscord | <enthus1ast> akamai? |
16:09:54 | FromDiscord | <odexine> yes |
16:09:59 | FromDiscord | <jmgomez> Yeah, there are a lot of things to do in NimForUE as the aiming is to have the best experience one can have in both UE and Nim. Helping requires knowing a bit of UE and C++ though |
16:10:00 | FromDiscord | <odexine> formerly linode, rest in peace |
16:10:03 | FromDiscord | <odexine> i really liked their green |
16:13:02 | FromDiscord | <konsumlamm> is it possible to share `ref`s across threads with ORC? |
16:15:04 | FromDiscord | <griffith1deadly> In reply to @konsumlamm "is it possible to": channels |
16:15:17 | FromDiscord | <griffith1deadly> maybe threading/channels |
16:15:49 | FromDiscord | <konsumlamm> channels don't share values though, they move them |
16:16:41 | FromDiscord | <griffith1deadly> sry, i think lock's can help u. |
16:20:54 | FromDiscord | <jaar23> In reply to @enthus1ast "<@614403538172379156>\: what is a": a server from linode https://www.linode.com/community/questions/211/what-is-a-nanode |
16:22:27 | FromDiscord | <Phil> Basically the cheapest server you can get, my web-project runs on it |
16:22:44 | FromDiscord | <Phil> They're like 6 bucks a month |
16:22:50 | FromDiscord | <Phil> (edit) "6" => "5-6" |
16:23:05 | FromDiscord | <Phil> With backup that goes up to 8 bucks a month IIRC |
16:23:25 | FromDiscord | <System64 ~ Flandre Scarlet> Documenting types in Nim https://media.discordapp.net/attachments/371759389889003532/1148654630302134393/image.png |
16:23:58 | FromDiscord | <jaar23> bUt bindaddr and listen work on localbut not on a nanonode a very weird |
16:23:58 | FromDiscord | <Phil> Ah! French! |
16:24:02 | FromDiscord | <Phil> My mortal enemy at school! |
16:25:02 | FromDiscord | <Phil> In reply to @sys64 "Documenting types in Nim": Though IIRC a lot of those will be transferrable to other langs as well.â”Pretty nice table ! |
16:25:04 | FromDiscord | <BanannaMan> In reply to @isofruit "As the idea is": I wonder if Blake 3 could fit in there too |
16:25:33 | FromDiscord | <Phil> In reply to @BanannaMan "I wonder if Blake": Absolutely.â”Anything goes. The only thing I want is basically the 4 core procs and having them added to the "central" procs in nimword.nim |
16:26:29 | FromDiscord | <Phil> As long as the central API is satisfied that means the user can literally swap out hashing algos on the fly as they want (assuming the libs you likely dynamically link to are present), that flexibility is the goal. |
16:27:57 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @isofruit "Though IIRC a lot": Thanks! I want to show to my teacher I learned a lot about Nim |
16:28:20 | FromDiscord | <odexine> In reply to @sys64 "Documenting types in Nim": char technically does have limits, 0 and 255 (iirc it might be 127, but im not sure on what it depends on) |
16:28:30 | FromDiscord | <BanannaMan> In reply to @isofruit "Absolutely. Anything goes. The": Core procs? What do they do? |
16:28:59 | FromDiscord | <Phil> In reply to @BanannaMan "Core procs? What do": Check out the docs / issues I just opened up for scrypt/bcrypt.â”It's basically just the API every module must have so that it neatly integrates into the overall library |
16:29:00 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @odexine "char technically does have": Char is unsigned I think |
16:29:20 | FromDiscord | <odexine> floats also have limits but they have more nuances too, as in it depends on what limit you're talking about (like limit of representing integers? true limits? etc) |
16:29:21 | FromDiscord | <BanannaMan> In reply to @isofruit "Check out the docs": I gotcha. I'll have a look. |
16:29:58 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @odexine "floats also have limits": True limitsâ”But I have to do some researches about them |
16:30:34 | FromDiscord | <Phil> sent a long message, see http://ix.io/4FrZ |
16:30:51 | FromDiscord | <Phil> (edit) "http://ix.io/4FrZ" => "http://ix.io/4Fs0" |
17:10:24 | NimEventer | New thread by aiac: How to properly json serialzie/deserialize DateTime?, see https://forum.nim-lang.org/t/10458 |
17:19:39 | FromDiscord | <firasuke> In reply to @realqquantum "ngl the logo is": one language to rule them all :nimGlow: |
17:20:09 | FromDiscord | <realqquantum> fax |
17:23:45 | * | rockcavera joined #nim |
17:31:03 | FromDiscord | <griffith1deadly> In reply to @firasuke "one language to rule": :nim1: |
17:32:55 | FromDiscord | <mratsim> In reply to @isofruit "https://github.com/PhilippMDoerner/nimword It's bas": Your hashed password should use seq[byte] for output, and arguably for inputs as well. https://github.com/nim-lang/RFCs/issues/32 |
17:34:22 | FromDiscord | <Phil> In reply to @mratsim "Your hashed password should": As in the `hashPassword` procs should output seq[byte]? |
17:35:26 | FromDiscord | <Phil> Hmm might put that into a refactoring. I'm perfectly happy accepting that that is the better way to do it, but for learning purposes: What for?â”Is it just that ideally you want to represent randomness in its most original form, which is just a bunch of bytes? |
17:37:14 | FromDiscord | <mratsim> The out put is not a string, not meant to be displayed, is incompatible with C because you might have NUL bytes in the middle |
17:37:20 | FromDiscord | <mratsim> (edit) "out put" => "output" |
17:37:52 | FromDiscord | <mratsim> and the password should be a distinct type that can only be printed with select debug procedures, and not by accident |
17:38:59 | FromDiscord | <mratsim> For learning purpose, it's important to teach how to write cryptography in a misuse-resistant manner. All the more so when the base is simple. |
17:39:40 | FromDiscord | <mratsim> And also people copy-paste. It's good for the ecosystem if people copy-paste good practices. |
17:40:22 | FromDiscord | <mratsim> In reply to @mratsim "and the password should": bonus is that on audit you can easily grep everywhere it's used. |
17:55:39 | FromDiscord | <jaar23> In reply to @enthus1ast "<@614403538172379156>\: firewall or similar?": guess i found the issue, i running multi thread on a single core server, where the first process is blocking the next server start up, but i haven't explicitly log it out... |
18:01:53 | FromDiscord | <Chronos [She/Her]> Would be useful if I could define how an object is put into a db with norm |
18:11:50 | FromDiscord | <enthus1ast> @jaar23 you can run multiple processes/threads on a single core machine |
18:12:32 | FromDiscord | <enthus1ast> just look at how many threads your system runs right now compared to your actual cores |
18:12:54 | FromDiscord | <Chronos [She/Her]> In reply to @chronos.vitaqua "Would be useful if": Trying to hack together something for Norm and byte types but I just... Can't figure it out aha |
18:13:05 | FromDiscord | <Chronos [She/Her]> It's too complicated for me but I need the feature đ |
18:13:18 | FromDiscord | <enthus1ast> my system currently runs 2501 threads with only 12 core's |
18:14:32 | FromDiscord | <enthus1ast> https://en.wikipedia.org/wiki/Computer_multitasking |
18:15:53 | FromDiscord | <piuvas> yeah |
18:16:11 | FromDiscord | <piuvas> imagine running an OS with 1 process |
18:20:41 | FromDiscord | <piuvas> even 12 |
18:28:10 | FromDiscord | <roupi.rb> is there an equivalent to laravel livewire/phoenix liveview but to a nim framework? |
18:28:28 | FromDiscord | <roupi.rb> (edit) "to" => "for" |
18:28:38 | * | ntat quit (Quit: leaving) |
18:29:28 | FromDiscord | <roupi.rb> (edit) "laravel livewire/phoenix liveview" => "laravel-livewire/phoenix-liveview" |
18:30:35 | FromDiscord | <piuvas> In reply to @piuvas "on testing": its still not on extra |
18:30:40 | FromDiscord | <piuvas> does anyone know anything abt this |
18:39:26 | FromDiscord | <piuvas> idk if its because it updated recently or what |
18:55:31 | FromDiscord | <Phil> In reply to @mratsim "bonus is that on": Alrighty, input shall become distinct string, output seq byte, I'll write myself an issue |
18:58:02 | * | jjido joined #nim |
19:02:40 | * | jjido quit (Client Quit) |
19:09:07 | NimEventer | New thread by buster_blue: Nimsaem extension stops working correctly when there's an error in the code, see https://forum.nim-lang.org/t/10459 |
19:11:26 | * | jjido joined #nim |
19:16:34 | * | jmdaemon joined #nim |
19:21:00 | FromDiscord | <System64 ~ Flandre Scarlet> Are template some kind of functions/procedures? |
19:21:05 | FromDiscord | <System64 ~ Flandre Scarlet> (edit) "template" => "templates" |
19:32:05 | FromDiscord | <ieltan> In reply to @sys64 "Are templates some kind": Template is compile time code substitution, they are lazily evaluated too |
19:32:58 | FromDiscord | <System64 ~ Flandre Scarlet> Oh alright |
19:39:30 | FromDiscord | <mratsim> In reply to @sys64 "Are templates some kind": It's copy-paste |
19:39:53 | FromDiscord | <mratsim> sometimes there is no difference, sometimes it matters. |
19:51:11 | * | junaid_ quit (Remote host closed the connection) |
19:54:29 | FromDiscord | <System64 ~ Flandre Scarlet> Oh alright, thanks |
19:54:44 | FromDiscord | <System64 ~ Flandre Scarlet> And what a pragma can be compared to? Some kind of flag? |
19:56:30 | FromDiscord | <nervecenter> Yeah, a flag to the compiler that changes the C that is generated. Pragmas are often used to test eventual syntax and keywords, so think of them like that. Syntax and keywords generate specific output code, so do pragmas. |
20:05:15 | FromDiscord | <toma400> sent a code paste, see https://play.nim-lang.org/#ix=4FsU |
20:08:10 | FromDiscord | <kingterrytheterrible12> In reply to @enthus1ast "my system currently runs": most of these threads are doing nothing |
20:08:24 | FromDiscord | <kingterrytheterrible12> just telling the os "hey if something i wants happens tell me" |
20:16:42 | NimEventer | New thread by konsumlamm: Is it possible to safely share refs across threads?, see https://forum.nim-lang.org/t/10460 |
20:36:32 | * | xet7_ joined #nim |
20:36:41 | * | xet7 quit (Quit: Leaving) |
20:45:09 | FromDiscord | <intellij_gamer> In reply to @toma400 "Is there a way": [toSeq](https://nim-lang.org/docs/sequtils.html#toSeq.t%2Cuntyped) can handle that |
21:06:18 | FromDiscord | <kingterrytheterrible12> does anyone appreciate CLI apps more than gui apps? |
21:10:20 | FromDiscord | <kingterrytheterrible12> also what does `untyped`do in nim? |
21:10:29 | FromDiscord | <kingterrytheterrible12> is it like C++ `std::any`? |
21:13:04 | FromDiscord | <ezquerra> @_araq this Java enhancement proposal about âvirtual threadsâ might be interesting to you given your recent work on malebolgia:â”â”https://openjdk.org/jeps/425 |
21:14:36 | FromDiscord | <demotomohiro> @kingterrytheterrible12 untyped parameter in template/macro means Nim doesn't do semcheck and you can pass undefined name. |
21:14:58 | FromDiscord | <kingterrytheterrible12> In reply to @ezquerra "<@413679055897100289> this Java enhancement": i think its already implemented in the JDK |
21:15:04 | FromDiscord | <Elegantbeef> No it's an non semantically checked code for templates and macros |
21:15:22 | FromDiscord | <kingterrytheterrible12> In reply to @demotomohiro "<@655759729477287956> untyped parameter in": wtf is semcheck? |
21:16:02 | FromDiscord | <Elegantbeef> Code that has been type checked and resolved |
21:16:20 | FromDiscord | <Elegantbeef> untyped parameters are not type checked and as such are only usable for metaprogramming |
21:17:03 | FromDiscord | <kingterrytheterrible12> alright |
21:17:25 | FromDiscord | <kingterrytheterrible12> i've seen it in some C wrapper code for nim, perhapse its like `void`? |
21:17:28 | FromDiscord | <kingterrytheterrible12> (edit) "`void`?" => "`void` in C?" |
21:17:50 | FromDiscord | <Elegantbeef> No |
21:17:54 | FromDiscord | <Elegantbeef> It's not a runtime type |
21:18:00 | FromDiscord | <Elegantbeef> It's purely for metaprogramming |
21:18:25 | FromDiscord | <kingterrytheterrible12> alright |
21:18:37 | FromDiscord | <kingterrytheterrible12> also what gui library are you guys using |
21:18:48 | FromDiscord | <kingterrytheterrible12> i've yet to find any gui lib thats worth using other than nimqml |
21:19:32 | FromDiscord | <Elegantbeef> I use owlkettle when I want gui, but I rarely use a GUI |
21:19:52 | * | advesperacit quit () |
21:20:21 | * | blop quit (Remote host closed the connection) |
21:20:49 | * | blop joined #nim |
21:20:50 | FromDiscord | <kingterrytheterrible12> In reply to @Elegantbeef "I use owlkettle when": alright |
21:22:43 | FromDiscord | <kingterrytheterrible12> In reply to @Elegantbeef "I use owlkettle when": owlkettle is broken |
21:22:49 | FromDiscord | <kingterrytheterrible12> their example does not work |
21:31:57 | FromDiscord | <Elegantbeef> Works fine here |
21:33:47 | FromDiscord | <kingterrytheterrible12> strange |
21:33:50 | FromDiscord | <kingterrytheterrible12> nim 2.0? |
21:35:15 | FromDiscord | <Elegantbeef> think you need to install head |
21:37:52 | FromDiscord | <kingterrytheterrible12> In reply to @Elegantbeef "think you need to": fixed https://media.discordapp.net/attachments/371759389889003532/1148733760842506361/image.png |
21:37:53 | FromDiscord | <kingterrytheterrible12> thanks |
21:40:56 | FromDiscord | <kingterrytheterrible12> owlkettle is just... a gtk wrapper? |
21:42:32 | FromDiscord | <kingterrytheterrible12> im loving owlkettle ngl im gonna use it in my next project |
21:59:32 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @kingterrytheterrible12 "fixed": This thing doesn't work for me |
22:00:34 | FromDiscord | <kingterrytheterrible12> In reply to @sys64 "This thing doesn't work": We just discussed it |
22:00:47 | FromDiscord | <kingterrytheterrible12> You must install the head version |
22:12:22 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @kingterrytheterrible12 "You must install the": Including on Windows? |
22:21:16 | FromDiscord | <System64 ~ Flandre Scarlet> Well, doesn't work for me |
22:23:51 | FromDiscord | <System64 ~ Flandre Scarlet> https://media.discordapp.net/attachments/371759389889003532/1148745334021967892/message.txt |
22:34:38 | NimEventer | New thread by panno: How can I shorten the compile time?, see https://forum.nim-lang.org/t/10461 |
22:41:03 | * | jmdaemon quit (Ping timeout: 255 seconds) |
22:56:39 | * | jmdaemon joined #nim |
23:05:00 | * | azimut quit (Ping timeout: 246 seconds) |
23:06:48 | * | jmdaemon quit (Ping timeout: 246 seconds) |
23:10:23 | FromDiscord | <Phil> In reply to @sys64 "And what a pragma": Decorator or metadata annotation would be my comparison |
23:11:12 | * | jjido quit (Quit: My laptop has gone to sleep. ZZZzzzâŠ) |
23:29:16 | * | jmdaemon joined #nim |
23:40:32 | FromDiscord | <takemichihanagaki3129> In reply to @kingterrytheterrible12 "owlkettle is just... a": A bit more than this, I would say.â”It use gtk in the back, but it's a totally different way to write GUI. |
23:54:21 | FromDiscord | <toma400> I wish libs on GTK/SDL didn't require you to compile any dependencies/libs. Always got lost in that |
23:54:42 | FromDiscord | <Elegantbeef> They don't require you to compile dependencies/libs |