02:07:19 | * | xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in) |
02:11:43 | * | xutaxkamay joined #nim |
02:43:21 | * | greaser|q quit (Changing host) |
02:43:21 | * | greaser|q joined #nim |
02:43:24 | * | greaser|q is now known as GreaseMonkey |
04:09:00 | * | tiorock joined #nim |
04:09:00 | * | tiorock quit (Changing host) |
04:09:00 | * | tiorock joined #nim |
04:09:00 | * | rockcavera quit (Killed (erbium.libera.chat (Nickname regained by services))) |
04:09:00 | * | tiorock is now known as rockcavera |
04:11:04 | * | tiorock joined #nim |
04:11:04 | * | rockcavera is now known as Guest3476 |
04:11:04 | * | Guest3476 quit (Killed (iridium.libera.chat (Nickname regained by services))) |
04:11:04 | * | tiorock is now known as rockcavera |
04:34:25 | * | derpydoo joined #nim |
04:35:05 | FromDiscord | <litlighilit> anyone know what's the name of the algorithm used by `!&` and `!$` in std/hashes? |
04:38:18 | FromDiscord | <leorize> wangyi |
04:38:35 | FromDiscord | <litlighilit> I'm implementing [NPython](https://github.com/nimpylib/NPython)'s sys.hash\_info and it just uses `!&` `!$` for str/bytes/bytearray hash (Py\_hashBuffer) |
04:39:18 | FromDiscord | <leorize> the source code has references to the algo in use iirc |
04:39:49 | FromDiscord | <litlighilit> It seems only integers uses it |
04:40:24 | FromDiscord | <litlighilit> yes for others like hash for string/cstring but for this one |
04:41:33 | FromDiscord | <litlighilit> I've read a lot about source.↵Maybe I shall ask the author 😅 |
04:43:25 | FromDiscord | <leorize> hash functions are rarely novel, LLMs might be able to figure out the construct if you prompt it (ofc, always double check) |
04:49:37 | FromDiscord | <litlighilit> Ops I see.↵Jenkins hashhttps://en.m.wikipedia.org/wiki/Jenkins_hash_function |
04:57:39 | FromDiscord | <microssd.> how do I fix can't evaluate at compile time, when getting a value from rand? |
04:58:43 | FromDiscord | <microssd.> sent a long message, see https://pasty.ee/SGWKWoid |
05:01:36 | FromDiscord | <litlighilit> use seq over tuple for `good` and `bad` |
05:03:48 | FromDiscord | <litlighilit> Because index used for `[]` (getitem) of tuple must be a static (compiletime) variable |
05:05:34 | FromDiscord | <litlighilit> As long as you didn't want a compiletime random |
05:08:05 | * | tiorock joined #nim |
05:08:05 | * | rockcavera is now known as Guest3889 |
05:08:05 | * | tiorock is now known as rockcavera |
05:10:08 | * | tiorock joined #nim |
05:10:08 | * | rockcavera is now known as Guest2436 |
05:10:08 | * | tiorock is now known as rockcavera |
05:11:52 | * | Guest3889 quit (Ping timeout: 256 seconds) |
05:13:34 | * | Guest2436 quit (Ping timeout: 256 seconds) |
05:16:16 | * | 073AAADTC joined #nim |
05:19:48 | * | rockcavera quit (Ping timeout: 256 seconds) |
05:21:55 | FromDiscord | <microssd.> Thanks |
05:22:41 | FromDiscord | <microssd.> do I have to free the seq? |
05:24:42 | * | derpydoo quit (Ping timeout: 244 seconds) |
05:29:40 | FromDiscord | <leorize> you don't |
05:38:32 | FromDiscord | <Robyn [She/Her]> In reply to @Tóth Alfréd "True, but it's still": ehh... idk, Nim seems to not support some OS module features in the VM which ain't great |
05:44:35 | * | rockcavera joined #nim |
05:46:43 | * | tiorock joined #nim |
05:46:43 | * | rockcavera quit (Killed (tantalum.libera.chat (Nickname regained by services))) |
05:46:43 | * | tiorock is now known as rockcavera |
05:48:37 | * | 073AAADTC quit (Ping timeout: 264 seconds) |
06:15:36 | FromDiscord | <lainlaylie> sent a code paste, see https://play.nim-lang.org/#pasty=gDQSMiyL |
06:16:49 | FromDiscord | <Elegantbeef> strint |
06:18:30 | FromDiscord | <Elegantbeef> Or the superior intering |
06:31:26 | * | derpydoo joined #nim |
06:43:04 | FromDiscord | <litlighilit> well if u really want such to compile,↵use seq/openArray of Any in std/typeinfo (lol)↵(@lainlaylie) |
06:54:21 | * | tiorock joined #nim |
06:54:21 | * | rockcavera is now known as Guest7112 |
06:54:21 | * | tiorock is now known as rockcavera |
06:56:29 | * | rockcavera is now known as Guest7357 |
06:56:29 | * | tiorock joined #nim |
06:56:29 | * | Guest7357 quit (Killed (platinum.libera.chat (Nickname regained by services))) |
06:56:29 | * | tiorock is now known as rockcavera |
06:56:50 | FromDiscord | <janakali> In reply to @yedco.12 "Is nim repl stable?": nlvm has real repl that is not a VM: https://github.com/arnetheduck/nlvm#repl--running-your-code↵on unix systems you can run it through `rlwrap` to get line-editing and history: `rlwrap ./nlvm-x86_64.AppImage r` |
06:57:28 | FromDiscord | <yedco.12> But does it work on windows? |
06:57:42 | FromDiscord | <yedco.12> Or I'll use wsl ig |
06:58:49 | * | Guest7112 quit (Ping timeout: 264 seconds) |
07:08:28 | * | tiorock joined #nim |
07:08:28 | * | tiorock quit (Changing host) |
07:08:28 | * | tiorock joined #nim |
07:08:28 | * | rockcavera quit (Killed (lithium.libera.chat (Nickname regained by services))) |
07:08:28 | * | tiorock is now known as rockcavera |
07:10:33 | * | tiorock joined #nim |
07:10:33 | * | tiorock quit (Changing host) |
07:10:33 | * | tiorock joined #nim |
07:10:33 | * | rockcavera is now known as Guest7303 |
07:10:33 | * | Guest7303 quit (Killed (tantalum.libera.chat (Nickname regained by services))) |
07:10:33 | * | tiorock is now known as rockcavera |
07:11:41 | FromDiscord | <systemblue_whale> I'm considering to move intellij to kate |
07:12:27 | FromDiscord | <systemblue_whale> intellij has good function like git.. git... git...↵for nim↵intellij has nothing good |
07:39:16 | * | beholders_eye joined #nim |
07:39:37 | FromDiscord | <tauruuuuuus> In reply to @systemblue_whale "intellij has good function": https://tenor.com/view/doubt-press-x-la-noire-meme-x-button-gif-19259237 |
07:43:49 | * | beholders_eye quit (Ping timeout: 264 seconds) |
07:45:36 | * | beholders_eye joined #nim |
08:02:02 | * | tiorock joined #nim |
08:02:02 | * | tiorock quit (Changing host) |
08:02:02 | * | tiorock joined #nim |
08:02:02 | * | rockcavera is now known as Guest3810 |
08:02:02 | * | Guest3810 quit (Killed (erbium.libera.chat (Nickname regained by services))) |
08:02:02 | * | tiorock is now known as rockcavera |
08:27:56 | * | nils` quit (Ping timeout: 256 seconds) |
08:41:25 | * | nils` joined #nim |
09:00:33 | * | Jhonny2x4 quit (Quit: Jhonny2x4) |
09:00:41 | * | Jhonny2x4 joined #nim |
09:00:49 | * | nils` quit (Ping timeout: 255 seconds) |
09:15:29 | * | nils` joined #nim |
09:23:55 | * | nils` quit (Ping timeout: 244 seconds) |
09:38:06 | * | nils` joined #nim |
09:48:48 | * | tiorock joined #nim |
09:48:48 | * | rockcavera is now known as Guest6905 |
09:48:49 | * | Guest6905 quit (Killed (tungsten.libera.chat (Nickname regained by services))) |
09:48:49 | * | tiorock is now known as rockcavera |
09:50:53 | * | tiorock joined #nim |
09:50:53 | * | rockcavera quit (Killed (tantalum.libera.chat (Nickname regained by services))) |
09:50:53 | * | tiorock is now known as rockcavera |
09:51:15 | * | nils` quit (Ping timeout: 252 seconds) |
09:51:17 | FromDiscord | <Tóth Alfréd> Unfortunately, the Nim plugin for IntelliJ isn't maintained regularly, and it doesn't support the latest IntelliJ version. The best editors for nim I've used so far are VSCode and Emacs, but even on them, the language server is painfully slow. If you want to use a GUI git frontend, I recommend [Sublime Merge](https://www.sublimemerge.com). It's very powerful and easy to use.↵(@systemblue_whale) |
09:54:09 | * | nils` joined #nim |
10:04:15 | * | rockcavera quit (Remote host closed the connection) |
10:10:34 | FromDiscord | <ayyyyyyyyyyyyyyyyyyyyyyyyyyyyyy> sent a code paste, see https://play.nim-lang.org/#pasty=FXKATRsF |
10:14:16 | FromDiscord | <griffith1deadly> In reply to @Tóth Alfréd "Unfortunately, the Nim plugin": zed is very good for nim |
10:23:11 | * | ormiret quit (Read error: Connection reset by peer) |
10:24:07 | * | blackbeard420 quit (Quit: ZNC 1.10.1 - https://znc.in) |
10:24:10 | * | przmk quit (Read error: Connection reset by peer) |
10:24:14 | * | bgupta quit (Read error: Connection reset by peer) |
10:24:14 | * | blackbeard420 joined #nim |
10:24:23 | * | bgupta joined #nim |
10:24:24 | * | przmk joined #nim |
10:24:30 | * | ursa-major quit (Ping timeout: 245 seconds) |
10:24:35 | * | GreaseMonkey quit (Quit: No Ping reply in 180 seconds.) |
10:24:51 | * | ormiret joined #nim |
10:25:20 | * | attah quit (Ping timeout: 245 seconds) |
10:25:52 | * | greaser|q joined #nim |
10:26:31 | * | attah joined #nim |
10:27:43 | * | ursa-major joined #nim |
10:36:01 | * | nils` quit (Ping timeout: 264 seconds) |
10:48:59 | * | nils` joined #nim |
10:49:55 | * | greaser|q quit (Changing host) |
10:49:55 | * | greaser|q joined #nim |
10:50:05 | * | greaser|q is now known as GreaseMonkey |
11:25:16 | * | ormiret quit (Read error: Connection reset by peer) |
11:25:54 | * | ormiret joined #nim |
11:42:06 | FromDiscord | <tauruuuuuus> tbh clion + nim plugin is good enough, ime it's the best experience altough it is not perfect, YMMV |
11:42:36 | FromDiscord | <tauruuuuuus> I completely abandoned vscode/codium and unfortunately terminal editors are not for me |
12:06:18 | * | nils` quit (Ping timeout: 248 seconds) |
12:19:49 | * | nils` joined #nim |
12:21:29 | * | nils` quit (Read error: Connection reset by peer) |
12:27:46 | FromDiscord | <ayex> is that the same nim addon one gets via pycharm?↵(@tauruuuuuus) |
12:29:37 | FromDiscord | <ayex> as term editor for nim I like micro. (surely not a full ide experience, but nice syntax highlighting and check on save out of the box without any extra configuration) |
12:34:34 | FromDiscord | <janakali> In reply to @ayyyyyyyyyyyyyyyyyyyyyyyyyyyyyy "Hey, I'm quite new": well, Linux + Nim 2.2.4 + clang cross-compiler with windows target (zigcc) seems to compile and run this dll just fine, so you can try that |
12:35:11 | FromDiscord | <janakali> I've tested Wine, so it still might fail on real machine |
12:37:13 | FromDiscord | <janakali> sent a code paste, see https://play.nim-lang.org/#pasty=fTjDTrim |
12:38:45 | * | nils` joined #nim |
12:47:09 | FromDiscord | <ayex> yes, linux cross compile with zigcc on wsl2 to win target works very well for me as well. especially since I did not have a single false-positive from the win-installed shitty av since then. 😉 |
12:52:09 | FromDiscord | <janakali> In reply to @ayyyyyyyyyyyyyyyyyyyyyyyyyyyyyy "Hey, I'm quite new": update: it works in Windows 7 too https://media.discordapp.net/attachments/371759389889003532/1420754749891805285/dllTest.jpg?ex=68d68c78&is=68d53af8&hm=b8b2bfebcfff7beef22ac66eb72e88802ac96d1efe5960164a411fc257b174e1& |
13:45:13 | FromDiscord | <tauruuuuuus> In reply to @ayex "is that the same": I think so, I guess it's for any jetbrains editor |
13:46:25 | FromDiscord | <tauruuuuuus> Don't expect a perfect experience tho, unfortunately I've come to terms that for now, the tooling story is a sort of "choose the lesser evil" in nim |
13:47:40 | FromDiscord | <tauruuuuuus> And syntax highlighting + customizable tasks (sort of) + code navigation + code hints (not always working) is the least I require for my personal experience to be good, I jsut cannot stand the crashes/infinite loading on vscode/codium |
13:49:09 | * | derpydoo quit (Quit: derpydoo) |
14:27:07 | FromDiscord | <yedco.12> In reply to @janakali "well, Linux + Nim": What about c++? |
14:35:06 | FromDiscord | <whisperecean> Is there a good library / bindings for git? I want to git clone, and git log with Nim essentially |
14:57:30 | * | Avinash joined #nim |
15:09:34 | FromDiscord | <griffith1deadly> libgit? |
15:09:43 | FromDiscord | <griffith1deadly> or libgit2 |
15:09:50 | FromDiscord | <griffith1deadly> distruptek has one |
15:09:57 | FromDiscord | <griffith1deadly> (edit) "distruptek" => "disruptek" |
15:10:14 | FromDiscord | <griffith1deadly> https://github.com/disruptek/gittyup |
15:18:01 | * | beholders_eye quit (Ping timeout: 264 seconds) |
15:22:31 | * | Avinash quit (Quit: Have a nice day!) |
16:02:26 | FromDiscord | <nasuray> I feel like everytime I see an app try to use bindings to git it eventually breaks or lacks support for something and they fallback to the CLI |
16:06:26 | * | Lord_Nightmare quit (Quit: ZNC - http://znc.in) |
16:13:40 | * | Lord_Nightmare joined #nim |
16:22:37 | FromDiscord | <yedco.12> In reply to @janakali "nlvm has real repl": Wsl crashes again and again when I build it lol |
16:27:48 | FromDiscord | <kiloneie> sent a code paste, see https://play.nim-lang.org/#pasty=lEDDMhJM |
16:29:02 | FromDiscord | <nocturn9x> hmm how common is it for nim to generate code that builds fine under clang but doesn't under gcc? |
16:29:23 | FromDiscord | <nocturn9x> I am casting a string constant to a ptr Stuff and it works in clang as intended |
16:29:30 | FromDiscord | <nocturn9x> but won't compile in gcc |
16:29:51 | FromDiscord | <yedco.12> In reply to @nocturn9x "but won't compile in": That's a gcc problem then |
16:29:59 | FromDiscord | <nocturn9x> could also be a clang problem |
16:30:05 | FromDiscord | <nocturn9x> i.e. accepting broken code |
16:30:22 | FromDiscord | <yedco.12> Which version are you using? |
16:30:41 | FromDiscord | <nocturn9x> sent a code paste, see https://play.nim-lang.org/#pasty=lLizwPpS |
16:31:41 | FromDiscord | <yedco.12> Try 15.1 |
16:31:58 | FromDiscord | <nocturn9x> not exactly easy to install a different gcc version, I'm on a rolling release distro |
16:32:01 | FromDiscord | <nocturn9x> lemme check AUR |
16:32:21 | FromDiscord | <yedco.12> Oh okay |
16:32:26 | FromDiscord | <nocturn9x> yeah nop |
16:32:27 | FromDiscord | <nocturn9x> only 14 |
16:32:37 | FromDiscord | <nocturn9x> and older |
16:33:07 | FromDiscord | <yedco.12> Try using pre-installed binaries |
16:33:25 | FromDiscord | <nocturn9x> ?? |
16:33:27 | FromDiscord | <nocturn9x> of what lol |
16:33:32 | FromDiscord | <yedco.12> Gcc |
16:33:46 | FromDiscord | <nocturn9x> what part of "I'm on a rolling release distro" did not register? :| |
16:33:53 | FromDiscord | <nocturn9x> there is only one gcc, and it's gcc 15.2 |
16:33:54 | FromDiscord | <nocturn9x> :p |
16:35:00 | FromDiscord | <yedco.12> Dude, pre-installed binaries, from a archived file. You can get them in official gcc. Or you can install gcc14 using your package manager . |
16:35:07 | FromDiscord | <nocturn9x> In reply to @yedco.12 "Dude, pre-installed binaries, from": oh that |
16:35:35 | FromDiscord | <Robyn [She/Her]> In reply to @nasuray "I feel like everytime": I'm just invoking CLI because it's ez |
16:35:59 | FromDiscord | <yedco.12> In reply to @nocturn9x "oh that": Because clang is really better than gcc, you can use it. |
16:36:15 | FromDiscord | <nocturn9x> lol I know I can use it, clang generates faster code toio |
16:36:16 | FromDiscord | <nocturn9x> (edit) "toio" => "too" |
16:36:24 | FromDiscord | <yedco.12> Use what works for you |
16:36:26 | FromDiscord | <nocturn9x> I just wanted to figure out if it's a gcc, clang or nim bug |
16:36:32 | FromDiscord | <nocturn9x> In reply to @yedco.12 "Use what works for": :| |
16:36:39 | FromDiscord | <janakali> sent a code paste, see https://play.nim-lang.org/#pasty=XoaAspTs |
16:36:45 | FromDiscord | <nocturn9x> In reply to @nocturn9x "I just wanted to": . |
16:37:04 | FromDiscord | <yedco.12> In reply to @janakali "works as well (argh..": That's man 😂 |
16:37:12 | FromDiscord | <yedco.12> (edit) "That's" => "Thanks" |
16:38:01 | FromDiscord | <yedco.12> In reply to @nocturn9x ".": Not a nim bug |
16:38:09 | FromDiscord | <nocturn9x> In reply to @yedco.12 "Not a nim bug": you don't know that lol |
16:38:15 | FromDiscord | <nocturn9x> it could be generating broken code that clang just accepts |
16:38:23 | FromDiscord | <yedco.12> Ohh okay |
16:41:32 | FromDiscord | <yedco.12> In reply to @janakali "works as well (argh..": Also nlvm isn't building on wsl, ig i can't use it 😕 |
16:42:08 | FromDiscord | <yedco.12> Its terminates when it reaches close to finishing |
16:43:40 | FromDiscord | <nocturn9x> In reply to @janakali "works as well (argh..": hmm |
16:43:44 | FromDiscord | <nocturn9x> I'm trying something similar |
16:43:49 | FromDiscord | <nocturn9x> cross compiling with zigcc I mean |
16:43:53 | FromDiscord | <nocturn9x> not zigcpp |
16:43:56 | FromDiscord | <nocturn9x> but I get a weird error |
16:43:57 | FromDiscord | <janakali> In reply to @yedco.12 "Also nlvm isn't building": appimage should work on linux, even in wsl: https://github.com/arnetheduck/nlvm/releases/tag/continuous |
16:44:00 | FromDiscord | <nocturn9x> `ld.lld: error: /home/nocturn9x/heimdall/bin/heimdall.lto.o: not an ELF file` |
16:44:10 | FromDiscord | <nocturn9x> sent a code paste, see https://play.nim-lang.org/#pasty=wuFlNQBs |
16:44:17 | FromDiscord | <nocturn9x> most options are specific to my project |
16:44:56 | FromDiscord | <nocturn9x> what am I doing wrong? |
16:47:43 | FromDiscord | <nocturn9x> oh, LTO seems to be the problem here |
16:52:43 | FromDiscord | <nocturn9x> can't make LTO builds apparently :( |
16:53:08 | FromDiscord | <nocturn9x> nor any builds for that matter |
16:55:40 | FromDiscord | <nocturn9x> nim seems hellbent on using `ld.lld` to link |
16:55:47 | FromDiscord | <janakali> I think it's missing`-l:"-target x86_64-windows-gnu"`, in general you need to always pass same flags to compiler and linker with zigcc |
16:55:49 | FromDiscord | <nocturn9x> despite me passing `-fuse-ld=lld-link` to the linker |
16:56:01 | FromDiscord | <nocturn9x> In reply to @janakali "I think it's missing`-l:"-target": let me try |
16:57:21 | FromDiscord | <nocturn9x> it worked! |
16:59:02 | * | def- quit (Quit: -) |
16:59:33 | FromDiscord | <nocturn9x> let's see if the performance is as expected |
16:59:55 | FromDiscord | <nocturn9x> the numbers with wine look promising |
17:00:19 | * | def- joined #nim |
17:59:30 | FromDiscord | <mitranim> Dereferencing with `x[]` rather than `x` is such a neat design, reuses syntax, saves on syntax, and `[]` for deref matches assembly notation too |
17:59:51 | FromDiscord | <mitranim> (edit) "`[]`" => "using the characters `][`" |
18:56:05 | FromDiscord | <nocturn9x> is there a way to get rid of an imported reference? |
18:56:18 | FromDiscord | <nocturn9x> I have a `File` type (as in a chessboard file) and it clashes with `syncio.File` |
18:56:24 | FromDiscord | <nocturn9x> so I have to do `pieces.File(x)` |
18:56:41 | FromDiscord | <nocturn9x> which is very annoying because stuff like `File.high()` obviously works because there's no ambiguity |
18:57:14 | FromDiscord | <nocturn9x> In reply to @nocturn9x "I have a `File`": which I am not importing explicitly btw, seems to be from system |
20:00:30 | FromDiscord | <Elegantbeef> @nocturn9x`import x except y` |
20:00:49 | FromDiscord | <nocturn9x> fair enough, but isn't system imported by default already? |
20:01:23 | FromDiscord | <yedco.12> In reply to @janakali "works as well (argh..": hey do, can you paste the example you compiled for c++? |
20:01:32 | FromDiscord | <Elegantbeef> You can use `-d:nimPreviewSlimSystem` but that'll likely explode \:D |
20:02:00 | FromDiscord | <yedco.12> (edit) "hey do, can" => "hey,can" |
20:02:56 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=hpxbwYgC |
20:03:39 | FromDiscord | <yedco.12> sent a code paste, see https://play.nim-lang.org/#pasty=EmSynGtn |
20:04:08 | FromDiscord | <yedco.12> (edit) "https://play.nim-lang.org/#pasty=CfXDfhmZ" => "https://play.nim-lang.org/#pasty=akgbXkGQ" |
20:04:22 | FromDiscord | <yedco.12> (edit) "https://play.nim-lang.org/#pasty=hhvgHlzi" => "https://play.nim-lang.org/#pasty=ZfrTddYj" |
20:05:07 | FromDiscord | <yedco.12> even simple c++ is not compiling |
21:20:28 | * | rockcavera joined #nim |
22:03:28 | FromDiscord | <DetermiedNim1> Does nimscript support threads currently |
22:36:25 | * | rockcavera quit (Remote host closed the connection) |
22:39:07 | * | rockcavera joined #nim |
22:49:43 | FromDiscord | <janakali> In reply to @yedco.12 "hey,can you paste the": already posted it here: https://discord.com/channels/371759389889003530/371759389889003532/1420750987924209797↵it's the same code for c and cpp |
23:01:49 | FromDiscord | <janakali> sent a code paste, see https://play.nim-lang.org/#pasty=oTMJVCfJ |
23:02:18 | FromDiscord | <janakali> (edit) "https://play.nim-lang.org/#pasty=jeVdEdHr" => "https://play.nim-lang.org/#pasty=DkfzYLKD" |
23:55:06 | * | mal`` quit (Ping timeout: 248 seconds) |