<< 05-09-2023 >>

00:40:27*systemdsucks quit (Server closed connection)
00:40:37*systemdsucks joined #nim
01:35:41FromDiscord<_gumbercules> Its akin to writing typescript
01:36:33FromDiscord<_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:06FromDiscord<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:59FromDiscord<sOkam! đŸ«> does nim compile with `-jN` by default?
04:19:35*rockcavera quit (Remote host closed the connection)
05:04:40FromDiscord<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:01NimEventerNew 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:34FromDiscord<sOkam! đŸ«> sent a code paste, see https://play.nim-lang.org/#ix=4FpE
06:28:19FromDiscord<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:12FromDiscord<odexine> Index the array, get the address of that indexed value
06:35:42FromDiscord<odexine> Perhaps result[len1].addr or so
06:45:08*PMunch joined #nim
06:48:16*cedb quit (Ping timeout: 250 seconds)
06:50:43PMunch@Barbie, the cons are basically just file size
06:51:15FromDiscord<pmunch> Damn it, why aren't mentions properly transformed any longer? @barbiehammer ^
07:12:39FromDiscord<mratsim> In reply to @barbiehammer "can someone explain to": Just run the Closure compiler on Nim output to optimize it further.
08:38:25FromDiscord<jaar23> https://nim-lang.org/docs/locks.html what is cond in std/locks module? Also, why and how to use it?
08:42:19FromDiscord<odexine> Condition variable
08:42:31FromDiscord<odexine> It’s a thing for threading, not sure if there are alternate names
08:49:59PMunchHmm interesting, this arbitrary math library has an included FFT module which just isn't exported
08:50:24PMunchLike the libmapm.a file contains the functions, they're just not in the .h file
08:51:10FromDiscord<odexine> Might not be stable yet?
08:51:55PMunchjaar23, this might help clear it up: https://web.stanford.edu/~ouster/cgi-bin/cs140-spring14/lecture.php?topic=locks
08:52:23PMunchodexine, it was released in 1999, last stable release was in 2010..
08:52:39PMunchThe FFT module was added in 2000
08:53:52FromDiscord<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:27PMunchHmm, it seems to use it to optimize multiplication..
09:00:02PMunchOr rather the module contains a fast multiplication function which is used in the normal multiply module
09:02:20FromDiscord<jaar23> In reply to @PMunch "<@614403538172379156>, this might help": Thanks let me take a look
09:25:25FromDiscord<kingterrytheterrible12> Guys is there a step through debugger for nim?
09:25:36PMunchkingterrytheterrible12, gdb?
09:25:48FromDiscord<kingterrytheterrible12> No i want to debug nim
09:25:50FromDiscord<kingterrytheterrible12> Not C
09:26:04PMunchYes?
09:26:09FromDiscord<kingterrytheterrible12> Bro wdym
09:26:20FromDiscord<kingterrytheterrible12> Oh wait i forgor it isnt like java
09:26:32FromDiscord<kingterrytheterrible12> Ffs native debugging is a nightmare
09:26:53PMunchhttps://nim-lang.org/blog/2017/10/02/documenting-profiling-and-debugging-nim-code.html#using-gdb-lldb
09:27:49PMunchNim is able to insert various debug information into the binary which GDB will use to display your Nim code
09:28:34FromDiscord<kingterrytheterrible12> Ah alright
09:28:40FromDiscord<kingterrytheterrible12> Thanks
09:28:45PMunchGranted it's still not the most ergonomic
09:29:10PMunchThere used to be a GDB extension shipped with Nim, a small Python script which allowed GDB to show even better information
09:30:29FromDiscord<odexine> Yet another tooling problem haha
09:31:10FromDiscord<kingterrytheterrible12> Yeah nim needs popularity
09:31:19FromDiscord<kingterrytheterrible12> That fireship video helped
09:31:57FromDiscord<System64 ~ Flandre Scarlet> @Phil Hi↔About Norm is it possible to modify a model and then save the changes into database?
09:32:37FromDiscord<Phil> In reply to @sys64 "<@180601887916163073> Hi About Norm": Sure
09:33:05FromDiscord<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:08FromDiscord<System64 ~ Flandre Scarlet> I didn't saw any example about this in the docs↔But I don't think `insert` would work
09:37:12FromDiscord<Phil> Pretty sure there's an update proc
09:38:37FromDiscord<System64 ~ Flandre Scarlet> yeah there is, thanks
09:47:58FromDiscord<mratsim> In reply to @PMunch "Hmm interesting, this arbitrary": FFT is the fastest way to multiply very large numbers
09:49:02PMunchHuh, TIL
09:49:08FromDiscord<mratsim> https://mathscholar.org/2019/04/an-n-log-n-algorithm-for-multiplication/
09:49:31*dv^_^ quit (Server closed connection)
09:49:32PMunchLooked 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:15FromDiscord<mratsim> sent a long message, see http://ix.io/4Fqb
09:52:06FromDiscord<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:52FromDiscord<mratsim> and the polynomial f(u)\g(u), f(v)\g(v), f(w)\g(w) is what you want.
09:53:39FromDiscord<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:09FromDiscord<mratsim> Why am I talking about polynomials?↔↔A bigint is a polynomial
09:54:46FromDiscord<mratsim> a + b.2^64 + c.2^128 + d.2^192 + e.2^256 + .....
09:55:05PMunchAaah
09:55:40FromDiscord<mratsim> classic multiplication is O(nÂČ) but FFT is O(n log n)
09:55:40PMunchThat makes it make more sense, I didn't connect the dots between multiplication and polynomials
09:55:57PMunchThat'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:50krux02PMunch, is nim-gdb not part of nim anymore?
11:55:07PMunchkrux02, no idea
11:55:45FromDiscord<krux02> @kingterrytheterrible12 how do you think nim will get more popular, when important tooling gets removed instead of added to the distribution?
11:56:14FromDiscord<kingterrytheterrible12> In reply to @arne "<@655759729477287956> how do you": what got removed
11:56:17krux02PMunch, https://github.com/nim-lang/Nim/blob/devel/bin/nim-gdb
11:56:25krux02it seems to still be there
11:56:38PMunchRight, so it used to be shipped with Nim, and it still is
11:56:54PMunchI just hadn't used it in a while, so I wasn't sure if it was still part of it
11:57:08krux02it is still part of the git repo
11:57:16PMunchI can see that
11:57:21krux02maybe it is not installed
11:57:27PMunchEven got an update seven months ago
11:57:50krux02people use it. Yay, my contributions to nim get actually used and are valued
11:57:54PMunchAs 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:26PMunch"/home/peter/.nimble/tools/debug/nim-gdb.py: No such file or directory."
11:58:27PMunchHmm
11:58:34krux02so the tutorial should probably reflect that
11:59:34PMunchIMO it should just put the script next to itself in the bin folder
11:59:54krux02there is also nimlldb.py in the git repo
12:00:16krux02yea, probably
12:01:29PMunchRight, so I have that script in .choosenim/toolchains/nim-2.0.0/tools/debug/nim-gdb.py
12:02:27krux02you 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:23FromDiscord<realqquantum> waiitttt
13:04:25FromDiscord<realqquantum> how do i connect
13:04:26FromDiscord<realqquantum> from irc
13:05:14FromDiscord<realqquantum> what's the ip/port
13:05:20FromDiscord<odexine> libera
13:05:31FromDiscord<odexine> room #nim
13:07:17FromDiscord<realqquantum> kk
13:09:18PMunchrealqquantum, what are we waiting for?
13:11:16FromDiscord<realqquantum> uhhhh it doesnt let me connect
13:12:29PMunchHave you registered a Libera user?
13:13:01PMunchOh wait, maybe you don't need a user
13:13:14*Guest17 joined #nim
13:13:34Guest17Nope, just checked with their webchat thingy, works just fine
13:13:40FromDiscord<realqquantum> im using irssi
13:13:41*Guest17 quit (Client Quit)
13:14:15FromDiscord<realqquantum> what would be the best way to learn nim
13:14:32PMunchHmm, not familiar with how it works, so hard to give you any help apart from just pointing you to IRSSI docs..
13:14:42PMunchrealqquantum, well that depends on what you already know
13:14:56FromDiscord<realqquantum> i know python and learning C++
13:16:11PMunchThen 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:28FromDiscord<realqquantum> kk
13:17:05PMunchThis might also help you along: https://forum.nim-lang.org/t/10394
13:17:28PMunchAnd 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:38krux02@realqquantum: just set yourself a goal/project and search for solutions for all problems on the road (True for every programming language).
13:32:05FromDiscord<realqquantum> is an info grabber a good project
13:37:14FromDiscord<enthus1ast> what is an info grabber?
13:38:04FromDiscord<odexine> something that grabs info
13:39:10FromDiscord<realqquantum> yes
13:39:22FromDiscord<realqquantum> like passwords and hardware info yk
13:41:40PMunchNot sure if stealing passwords would be considered a "good project"
13:52:05FromDiscord<demotomohiro> !eval echo "Grabs some info : ", static: staticExec "lscpu"
13:52:06NimBotCompile failed: /usercode/in.nim(1, 36) Error: 'staticExec' can only be used in compile-time context
13:52:42FromDiscord<demotomohiro> !eval echo static: staticExec "lscpu"
13:52:43NimBotCompile failed: /usercode/in.nim(1, 14) Error: 'staticExec' can only be used in compile-time context
13:53:42FromDiscord<demotomohiro> !eval echo static staticExec "lscpu"
13:53:45NimBot/bin/sh: lscpu: not found
14:00:57FromDiscord<e.e.7> @demotomohiro perhaps this? `echo staticRead("/proc/cpuinfo")`
14:05:02FromDiscord<demotomohiro> `echo static staticRead("/proc/cpuinfo")` would work, but output can be large if the server has many cores.
14:07:05krux02!eval echo staticExec("lscpu")
14:07:06NimBotCompile failed: /usercode/in.nim(1, 16) Error: 'staticExec' can only be used in compile-time context
14:07:11FromDiscord<odexine> It’s within a container and the ghost has one core
14:07:16FromDiscord<odexine> Host
14:07:52krux02!eval const tmp = staticExec("lscpu"); echo tmp
14:07:54NimBot/bin/sh: lscpu: not found
14:10:08krux02!eval const tmp = staticExec("less /proc/cpuinfo | grep 'cpu cores' | head -n 1"); echo tmp
14:10:11NimBotcpu cores : 1
14:10:32krux02there you go
14:12:41krux02!eval echo static staticExec("grep 'cpu cores' -m 1 /proc/cpuinfo")
14:12:44NimBotcpu cores : 1
14:13:36PMunch*Laughs in playground* many cores!
14:13:46PMunchIt barely has a single core
14:13:49*PMunch quit (Quit: Leaving)
14:14:59FromDiscord<realqquantum> uhhh https://media.discordapp.net/attachments/371759389889003532/1148622307351339098/image.png
14:20:42FromDiscord<BanannaMan> I wanna take part in a nim project. Any suggestions?
14:20:53FromDiscord<BanannaMan> I have to brush up on my skills somehow
14:50:30FromDiscord<kingterrytheterrible12> In reply to @realqquantum "uhhh": why nim is run as sudo
14:50:53FromDiscord<kingterrytheterrible12> compiling proton by steam is taking a long time lol
14:51:10FromDiscord<realqquantum> In reply to @kingterrytheterrible12 "why nim is run": still dont work https://media.discordapp.net/attachments/371759389889003532/1148631411901870100/image.png
14:51:21FromDiscord<kingterrytheterrible12> In reply to @realqquantum "still dont work": how did you install nim
14:51:33FromDiscord<realqquantum> x64 tarball thing
14:51:41FromDiscord<kingterrytheterrible12> remove it
14:51:45FromDiscord<kingterrytheterrible12> and install it like this
14:51:53FromDiscord<kingterrytheterrible12> `curl https://nim-lang.org/choosenim/init.sh -sSf | sh`
14:52:03FromDiscord<realqquantum> okkkk
14:52:42FromDiscord<realqquantum> done
14:52:49FromDiscord<kingterrytheterrible12> check if its fixed
14:53:30FromDiscord<realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148632000140427385/image.png
14:53:37FromDiscord<kingterrytheterrible12> restart shell
14:53:43FromDiscord<kingterrytheterrible12> close and open the terminal
14:53:47FromDiscord<realqquantum> okkk
14:53:56FromDiscord<kingterrytheterrible12> are you linux noob?
14:54:50FromDiscord<realqquantum> i have experience w/ linux
14:55:15FromDiscord<realqquantum> i usb boot it on an older laptop every once in a while
14:55:20FromDiscord<kingterrytheterrible12> ok
14:55:24FromDiscord<kingterrytheterrible12> is your problem fixed?
14:56:07FromDiscord<realqquantum> uh https://media.discordapp.net/attachments/371759389889003532/1148632659837325443/image.png
14:56:58FromDiscord<kingterrytheterrible12> hm how
14:57:04FromDiscord<kingterrytheterrible12> did you restart your terminal?
14:57:25FromDiscord<realqquantum> ye
14:57:27*blop quit (Ping timeout: 246 seconds)
14:57:37FromDiscord<kingterrytheterrible12> ok open new terminal and type `nano .bashrc`
14:57:43FromDiscord<kingterrytheterrible12> then show the bottom of it
14:57:58*blop joined #nim
14:58:02FromDiscord<realqquantum> okk
14:59:02FromDiscord<kingterrytheterrible12> if you have vscode too you can just `code .bashrc`
14:59:15FromDiscord<realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148633449993863269/image.png
14:59:22FromDiscord<realqquantum> wait no
14:59:25FromDiscord<realqquantum> not the bottom
14:59:51FromDiscord<kingterrytheterrible12> go bottom
14:59:56FromDiscord<realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148633620987269220/image.png
15:00:06FromDiscord<kingterrytheterrible12> is this the bottom?
15:00:10FromDiscord<realqquantum> ye
15:00:16FromDiscord<kingterrytheterrible12> nim is not in your path
15:00:17FromDiscord<kingterrytheterrible12> so
15:00:19FromDiscord<kingterrytheterrible12> lets add it
15:01:04FromDiscord<kingterrytheterrible12> put this at the end of the file and replace USER with your username↔`export PATH=/home/USER/.nimble/bin:$PATH`
15:01:09FromDiscord<realqquantum> kk
15:09:04FromDiscord<realqquantum> still dontwork
15:12:28FromDiscord<michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4Frz
15:12:36FromDiscord<realqquantum> kk
15:12:52FromDiscord<realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148636877109334108/image.png
15:13:18FromDiscord<michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4FrA
15:17:19FromDiscord<realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148637992219578558/image.png
15:17:21FromDiscord<realqquantum> it's wsl
15:20:17FromDiscord<michaelb.eth> okay, so the path for .nimble/bin is not in PATH, and that's the problem
15:21:45FromDiscord<michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4FrC
15:22:00FromDiscord<kingterrytheterrible12> In reply to @realqquantum "it's wsl": could have mentioned ngl
15:22:03FromDiscord<michaelb.eth> make sure to use single `'` NOT double `"`
15:22:21FromDiscord<realqquantum> In reply to @kingterrytheterrible12 "could have mentioned ngl": mb
15:22:53FromDiscord<michaelb.eth> (edit) "https://play.nim-lang.org/#ix=4FrC" => "https://play.nim-lang.org/#ix=4FrD"
15:22:59FromDiscord<michaelb.eth> (edit) "make sure to use single `'` NOT double `"` ... " added "for the outer quotes"
15:23:39FromDiscord<michaelb.eth> after adding that line to .bashrc, launch a new WSL terminal/shell
15:23:48FromDiscord<michaelb.eth> then `echo ${PATH}`
15:24:42FromDiscord<realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148639854117273620/image.png
15:25:06FromDiscord<michaelb.eth> cat .bashrc
15:25:15FromDiscord<michaelb.eth> just want to see the bottom
15:26:44FromDiscord<realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148640363825860669/image.png
15:26:54FromDiscord<michaelb.eth> okay, you didn't add the line to .bashrc
15:27:23FromDiscord<michaelb.eth> oh wait, you did, sorry, my eyes didn't catch it at first
15:27:59FromDiscord<michaelb.eth> did you open a new WSL window?
15:28:25FromDiscord<realqquantum> yes
15:29:04FromDiscord<michaelb.eth> hmm, I don't know then, maybe .bashrc isn't being sourced for some reason
15:29:26FromDiscord<michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4FrF
15:29:48FromDiscord<realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148641132172038326/image.png
15:30:22FromDiscord<michaelb.eth> ah, there's something messed up higher up in your bashrc, so the `export PATH,..` is never reached
15:30:27FromDiscord<michaelb.eth> you'll need to fix that first
15:30:44FromDiscord<michaelb.eth> looks like something wrong related to `color_prompt`
15:31:32FromDiscord<realqquantum> kk lemme try to fix
15:34:02FromDiscord<realqquantum> yoooooo it works now\
15:36:19FromDiscord<realqquantum> https://media.discordapp.net/attachments/371759389889003532/1148642775500324984/image.png
15:37:08FromDiscord<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:47FromDiscord<jaar23> sent a code paste, see https://play.nim-lang.org/#ix=4FrO
15:53:32FromDiscord<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:02FromDiscord<jaar23> https://media.discordapp.net/attachments/371759389889003532/1148647234980819004/image.png
15:54:17FromDiscord<Phil> In reply to @realqquantum "": If you wanna save time: `nim r learning.nim` will compile and immediately run the file
15:54:40FromDiscord<realqquantum> In reply to @isofruit "If you wanna save": dayum
15:54:42FromDiscord<realqquantum> thanks
15:55:23FromDiscord<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:35FromDiscord<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:57FromDiscord<Phil> Particularly for more complex proof of concepts that need 50+ lines of code or multiple files its quite nice
15:56:29FromDiscord<BanannaMan> In reply to @isofruit "Any area you're particularly": I'd like gamedev and cryptography
15:56:51FromDiscord<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:47FromDiscord<enthus1ast> @jaar23\: firewall or similar? Port already in use?
15:58:03FromDiscord<jaar23> In reply to @enthus1ast "<@614403538172379156>\: firewall or similar?": ffirewall is disabled
15:58:48FromDiscord<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:50FromDiscord<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:54FromDiscord<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:07FromDiscord<realqquantum> ngl the logo is cool af
16:00:43*cnx joined #nim
16:00:45FromDiscord<realqquantum> :nimAngry:
16:00:49FromDiscord<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:58FromDiscord<BanannaMan> Okay, thanks
16:02:29FromDiscord<BanannaMan> Can you link me to your password hashing library?
16:03:02*junaid_ joined #nim
16:03:43FromDiscord<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:02FromDiscord<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:10FromDiscord<enthus1ast> @jaar23\: what is a nano node btw?
16:05:22FromDiscord<Phil> Currently only provides argon, and 2 variations of pbkdf2
16:06:42FromDiscord<Phil> Could of course also provide bcrypt and/or scrypt
16:07:07FromDiscord<odexine> In reply to @enthus1ast "<@614403538172379156>\: what is a": probably a nanode (linode)
16:08:08FromDiscord<enthus1ast> akamai?
16:09:54FromDiscord<odexine> yes
16:09:59FromDiscord<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:00FromDiscord<odexine> formerly linode, rest in peace
16:10:03FromDiscord<odexine> i really liked their green
16:13:02FromDiscord<konsumlamm> is it possible to share `ref`s across threads with ORC?
16:15:04FromDiscord<griffith1deadly> In reply to @konsumlamm "is it possible to": channels
16:15:17FromDiscord<griffith1deadly> maybe threading/channels
16:15:49FromDiscord<konsumlamm> channels don't share values though, they move them
16:16:41FromDiscord<griffith1deadly> sry, i think lock's can help u.
16:20:54FromDiscord<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:27FromDiscord<Phil> Basically the cheapest server you can get, my web-project runs on it
16:22:44FromDiscord<Phil> They're like 6 bucks a month
16:22:50FromDiscord<Phil> (edit) "6" => "5-6"
16:23:05FromDiscord<Phil> With backup that goes up to 8 bucks a month IIRC
16:23:25FromDiscord<System64 ~ Flandre Scarlet> Documenting types in Nim https://media.discordapp.net/attachments/371759389889003532/1148654630302134393/image.png
16:23:58FromDiscord<jaar23> bUt bindaddr and listen work on localbut not on a nanonode a very weird
16:23:58FromDiscord<Phil> Ah! French!
16:24:02FromDiscord<Phil> My mortal enemy at school!
16:25:02FromDiscord<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:04FromDiscord<BanannaMan> In reply to @isofruit "As the idea is": I wonder if Blake 3 could fit in there too
16:25:33FromDiscord<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:29FromDiscord<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:57FromDiscord<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:20FromDiscord<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:30FromDiscord<BanannaMan> In reply to @isofruit "Absolutely. Anything goes. The": Core procs? What do they do?
16:28:59FromDiscord<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:00FromDiscord<System64 ~ Flandre Scarlet> In reply to @odexine "char technically does have": Char is unsigned I think
16:29:20FromDiscord<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:21FromDiscord<BanannaMan> In reply to @isofruit "Check out the docs": I gotcha. I'll have a look.
16:29:58FromDiscord<System64 ~ Flandre Scarlet> In reply to @odexine "floats also have limits": True limits↔But I have to do some researches about them
16:30:34FromDiscord<Phil> sent a long message, see http://ix.io/4FrZ
16:30:51FromDiscord<Phil> (edit) "http://ix.io/4FrZ" => "http://ix.io/4Fs0"
17:10:24NimEventerNew thread by aiac: How to properly json serialzie/deserialize DateTime?, see https://forum.nim-lang.org/t/10458
17:19:39FromDiscord<firasuke> In reply to @realqquantum "ngl the logo is": one language to rule them all :nimGlow:
17:20:09FromDiscord<realqquantum> fax
17:23:45*rockcavera joined #nim
17:31:03FromDiscord<griffith1deadly> In reply to @firasuke "one language to rule": :nim1:
17:32:55FromDiscord<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:22FromDiscord<Phil> In reply to @mratsim "Your hashed password should": As in the `hashPassword` procs should output seq[byte]?
17:35:26FromDiscord<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:14FromDiscord<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:20FromDiscord<mratsim> (edit) "out put" => "output"
17:37:52FromDiscord<mratsim> and the password should be a distinct type that can only be printed with select debug procedures, and not by accident
17:38:59FromDiscord<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:40FromDiscord<mratsim> And also people copy-paste. It's good for the ecosystem if people copy-paste good practices.
17:40:22FromDiscord<mratsim> In reply to @mratsim "and the password should": bonus is that on audit you can easily grep everywhere it's used.
17:55:39FromDiscord<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:53FromDiscord<Chronos [She/Her]> Would be useful if I could define how an object is put into a db with norm
18:11:50FromDiscord<enthus1ast> @jaar23 you can run multiple processes/threads on a single core machine
18:12:32FromDiscord<enthus1ast> just look at how many threads your system runs right now compared to your actual cores
18:12:54FromDiscord<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:05FromDiscord<Chronos [She/Her]> It's too complicated for me but I need the feature 😭
18:13:18FromDiscord<enthus1ast> my system currently runs 2501 threads with only 12 core's
18:14:32FromDiscord<enthus1ast> https://en.wikipedia.org/wiki/Computer_multitasking
18:15:53FromDiscord<piuvas> yeah
18:16:11FromDiscord<piuvas> imagine running an OS with 1 process
18:20:41FromDiscord<piuvas> even 12
18:28:10FromDiscord<roupi.rb> is there an equivalent to laravel livewire/phoenix liveview but to a nim framework?
18:28:28FromDiscord<roupi.rb> (edit) "to" => "for"
18:28:38*ntat quit (Quit: leaving)
18:29:28FromDiscord<roupi.rb> (edit) "laravel livewire/phoenix liveview" => "laravel-livewire/phoenix-liveview"
18:30:35FromDiscord<piuvas> In reply to @piuvas "on testing": its still not on extra
18:30:40FromDiscord<piuvas> does anyone know anything abt this
18:39:26FromDiscord<piuvas> idk if its because it updated recently or what
18:55:31FromDiscord<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:07NimEventerNew 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:00FromDiscord<System64 ~ Flandre Scarlet> Are template some kind of functions/procedures?
19:21:05FromDiscord<System64 ~ Flandre Scarlet> (edit) "template" => "templates"
19:32:05FromDiscord<ieltan> In reply to @sys64 "Are templates some kind": Template is compile time code substitution, they are lazily evaluated too
19:32:58FromDiscord<System64 ~ Flandre Scarlet> Oh alright
19:39:30FromDiscord<mratsim> In reply to @sys64 "Are templates some kind": It's copy-paste
19:39:53FromDiscord<mratsim> sometimes there is no difference, sometimes it matters.
19:51:11*junaid_ quit (Remote host closed the connection)
19:54:29FromDiscord<System64 ~ Flandre Scarlet> Oh alright, thanks
19:54:44FromDiscord<System64 ~ Flandre Scarlet> And what a pragma can be compared to? Some kind of flag?
19:56:30FromDiscord<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:15FromDiscord<toma400> sent a code paste, see https://play.nim-lang.org/#ix=4FsU
20:08:10FromDiscord<kingterrytheterrible12> In reply to @enthus1ast "my system currently runs": most of these threads are doing nothing
20:08:24FromDiscord<kingterrytheterrible12> just telling the os "hey if something i wants happens tell me"
20:16:42NimEventerNew 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:09FromDiscord<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:18FromDiscord<kingterrytheterrible12> does anyone appreciate CLI apps more than gui apps?
21:10:20FromDiscord<kingterrytheterrible12> also what does `untyped`do in nim?
21:10:29FromDiscord<kingterrytheterrible12> is it like C++ `std::any`?
21:13:04FromDiscord<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:36FromDiscord<demotomohiro> @kingterrytheterrible12 untyped parameter in template/macro means Nim doesn't do semcheck and you can pass undefined name.
21:14:58FromDiscord<kingterrytheterrible12> In reply to @ezquerra "<@413679055897100289> this Java enhancement": i think its already implemented in the JDK
21:15:04FromDiscord<Elegantbeef> No it's an non semantically checked code for templates and macros
21:15:22FromDiscord<kingterrytheterrible12> In reply to @demotomohiro "<@655759729477287956> untyped parameter in": wtf is semcheck?
21:16:02FromDiscord<Elegantbeef> Code that has been type checked and resolved
21:16:20FromDiscord<Elegantbeef> untyped parameters are not type checked and as such are only usable for metaprogramming
21:17:03FromDiscord<kingterrytheterrible12> alright
21:17:25FromDiscord<kingterrytheterrible12> i've seen it in some C wrapper code for nim, perhapse its like `void`?
21:17:28FromDiscord<kingterrytheterrible12> (edit) "`void`?" => "`void` in C?"
21:17:50FromDiscord<Elegantbeef> No
21:17:54FromDiscord<Elegantbeef> It's not a runtime type
21:18:00FromDiscord<Elegantbeef> It's purely for metaprogramming
21:18:25FromDiscord<kingterrytheterrible12> alright
21:18:37FromDiscord<kingterrytheterrible12> also what gui library are you guys using
21:18:48FromDiscord<kingterrytheterrible12> i've yet to find any gui lib thats worth using other than nimqml
21:19:32FromDiscord<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:50FromDiscord<kingterrytheterrible12> In reply to @Elegantbeef "I use owlkettle when": alright
21:22:43FromDiscord<kingterrytheterrible12> In reply to @Elegantbeef "I use owlkettle when": owlkettle is broken
21:22:49FromDiscord<kingterrytheterrible12> their example does not work
21:31:57FromDiscord<Elegantbeef> Works fine here
21:33:47FromDiscord<kingterrytheterrible12> strange
21:33:50FromDiscord<kingterrytheterrible12> nim 2.0?
21:35:15FromDiscord<Elegantbeef> think you need to install head
21:37:52FromDiscord<kingterrytheterrible12> In reply to @Elegantbeef "think you need to": fixed https://media.discordapp.net/attachments/371759389889003532/1148733760842506361/image.png
21:37:53FromDiscord<kingterrytheterrible12> thanks
21:40:56FromDiscord<kingterrytheterrible12> owlkettle is just... a gtk wrapper?
21:42:32FromDiscord<kingterrytheterrible12> im loving owlkettle ngl im gonna use it in my next project
21:59:32FromDiscord<System64 ~ Flandre Scarlet> In reply to @kingterrytheterrible12 "fixed": This thing doesn't work for me
22:00:34FromDiscord<kingterrytheterrible12> In reply to @sys64 "This thing doesn't work": We just discussed it
22:00:47FromDiscord<kingterrytheterrible12> You must install the head version
22:12:22FromDiscord<System64 ~ Flandre Scarlet> In reply to @kingterrytheterrible12 "You must install the": Including on Windows?
22:21:16FromDiscord<System64 ~ Flandre Scarlet> Well, doesn't work for me
22:23:51FromDiscord<System64 ~ Flandre Scarlet> https://media.discordapp.net/attachments/371759389889003532/1148745334021967892/message.txt
22:34:38NimEventerNew 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:23FromDiscord<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:32FromDiscord<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:21FromDiscord<toma400> I wish libs on GTK/SDL didn't require you to compile any dependencies/libs. Always got lost in that
23:54:42FromDiscord<Elegantbeef> They don't require you to compile dependencies/libs