<< 16-05-2026 >>

00:08:20*shanoaice quit (Quit: The Lounge - https://thelounge.chat)
00:08:34*shanoaice joined #nim
02:41:51*xet7 quit (Remote host closed the connection)
02:43:59*xet7 joined #nim
02:51:27*mal`` quit (Ping timeout: 255 seconds)
03:03:06*rockcavera joined #nim
03:06:52*mal`` joined #nim
03:47:09*SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev)
04:53:24*SchweinDeBurg joined #nim
07:01:26*tiorock joined #nim
07:01:26*tiorock quit (Changing host)
07:01:26*tiorock joined #nim
07:01:26*rockcavera is now known as Guest8964
07:01:26*tiorock is now known as rockcavera
07:03:55*Guest8964 quit (Ping timeout: 244 seconds)
07:08:27*kick455 quit (Ping timeout: 246 seconds)
07:09:58*oculux joined #nim
08:32:57FromDiscord<lluevtyvn> I need help. Generic doesn't work . https://media.discordapp.net/attachments/371759389889003532/1505125894916669440/EEB023A9-F7C5-4583-80B3-5FBDF8554AF7.png?ex=6a097d39&is=6a082bb9&hm=570ab49831277a3cb5335f7b03d7b1157b32ab69c8dcfbde8884fca77dc081a7&
08:33:15FromDiscord<lluevtyvn> https://media.discordapp.net/attachments/371759389889003532/1505125970451890176/D8F36C5A-2552-41EF-B759-51A84B025957.png?ex=6a097d4b&is=6a082bcb&hm=3d2c890e9d2646599bb938eb4cce487b867d996be9cfa1425424bbc89aa7a72a&
08:35:19FromDiscord<lluevtyvn> https://media.discordapp.net/attachments/371759389889003532/1505126488800759988/B383C11C-D34C-41FF-88EA-BC128F8FF393.png?ex=6a097dc6&is=6a082c46&hm=6d512ec42ae59d89819e1eed55059f2a0bdd1ff1de1df977a7246ae20d10db54&
08:40:11FromDiscord<mratsim> In reply to @lluevtyvn "I need help. Generic": you cannot deduce based on return value and you should use `[T: int32 or uint32]`
08:40:37FromDiscord<mratsim> you will need to do `read[:uint32]()` if you use method call syntax
08:40:58FromDiscord<mratsim> (edit) "`read[:uint32]()`" => "`br.read[:uint32]()`"
08:41:13FromDiscord<mratsim> This is for parsing disambiguation.
08:41:38FromDiscord<mratsim> In reply to @lluevtyvn "I need help. Generic": you have proper primitives in stew/endians2 though
08:42:33FromDiscord<mratsim> sent a code paste, see https://play.nim-lang.org/#pasty=RsswuOzq
08:43:50FromDiscord<lluevtyvn> In reply to @mratsim "you cannot deduce based": oh , it worked, thank you
09:19:38FromDiscord<nevillegg> In reply to @lluevtyvn "I need help. Generic": manually managing memoery?
09:26:48FromDiscord<asviest> In reply to @lluevtyvn "I need help. Generic": Btw unsafeAddr deprecated, `addr` replaces it
09:27:00FromDiscord<asviest> (edit) "In reply to @lluevtyvn "I need help. Generic": Btw unsafeAddr deprecated, `addr` ... replaces" added "in modern nim versions"
09:33:02FromDiscord<nevillegg> sent a code paste, see https://play.nim-lang.org/#pasty=MctmNnHN
10:06:04FromDiscord<lluevtyvn> In reply to @nevillegg "manually managing memoery?": no , memory is still managed by nim default memory manager
10:29:59*tk quit (Remote host closed the connection)
10:31:07*tk joined #nim
10:34:43*beholders_eye joined #nim
11:42:39*rockcavera quit (Read error: Connection reset by peer)
11:42:58*rockcavera joined #nim
11:42:58*rockcavera quit (Changing host)
11:42:58*rockcavera joined #nim
12:15:11*beholders_eye quit (Quit: WeeChat 4.9.0)
12:55:23*rockcavera quit (Remote host closed the connection)
13:40:24*deavmi quit (Quit: Eish, load shedding!)
13:58:31*rockcavera joined #nim
14:02:38*rockcavera quit (Read error: Connection reset by peer)
14:02:57*rockcavera joined #nim
14:02:57*rockcavera quit (Changing host)
14:02:57*rockcavera joined #nim
14:07:52*deavmi joined #nim
14:10:50*kick455 joined #nim
14:12:28*oculux quit (Ping timeout: 276 seconds)
15:08:05*rockcavera quit (Read error: Connection reset by peer)
15:08:25*rockcavera joined #nim
15:08:25*rockcavera quit (Changing host)
15:08:25*rockcavera joined #nim
16:33:21FromDiscord<manekobox> Hello Nim communityyyy, I'm thinking of using Nim but I was wondering how well you guys would say Nim works in a fully offline environment?
17:12:13FromDiscord<mr_rowboto> In reply to @manekobox "Hello Nim communityyyy, I'm": `nim` will definitely wotk.↡`nimble` won't.
17:14:23FromDiscord<mratsim> In reply to @nevillegg "I wonder if we": There was a nim syntax skin that allowed this
17:15:15FromDiscord<mratsim> In reply to @manekobox "Hello Nim communityyyy, I'm": as long as you don't need to connect to the internet you'' be fine
17:15:52FromDiscord<manekobox> In reply to @mr_rowboto "`nim` will definitely wotk.": Well is there a way to manually install libraries without using Nim's package manager?
17:16:06FromDiscord<mr_rowboto> yes
17:16:23FromDiscord<manekobox> In reply to @mratsim "as long as you": Yeah my phone can connect but my PC can't so I technically don't need to
17:16:37FromDiscord<mr_rowboto> you can git clone, or download and set `--path:the-path` as an arg for `nim`
17:16:51FromDiscord<mr_rowboto> (edit) "you can git clone, or download ... and" added "your dependency"
17:16:52FromDiscord<mratsim> In reply to @manekobox "Well is there a": you can clone repo to an USB key, copy it on your machine and call nimble develop in each so it points to the local clone.↡↡And atlas can surely do something about it as well
17:17:05FromDiscord<mr_rowboto> (edit) "`--path:the-path`" => "`--path:the/path`"
17:17:17FromDiscord<mratsim> ah yeah the path thing for the compiler too
17:17:39FromDiscord<mr_rowboto> yeah I honestly ditched package managers for building...
17:18:31FromDiscord<mratsim> In reply to @mr_rowboto "yeah I honestly ditched": I ditched dependencies
17:18:59FromDiscord<mr_rowboto> What I do is setting several `--path`s on a `nim.cfg`, then have a custom tool to build things.
17:19:16FromDiscord<mr_rowboto> In reply to @mratsim "I ditched dependencies": for real? what's your strategy?
17:19:40FromDiscord<manekobox> In reply to @mratsim "you can clone repo": Yeah I think that solves my worries with my setup thanks for the infoooo
17:19:51FromDiscord<manekobox> In reply to @mratsim "I ditched dependencies": -# you can do that?
17:20:12FromDiscord<mr_rowboto> well... you can always `git submodule`
18:49:30FromDiscord<mratsim> In reply to @mr_rowboto "for real? what's your": Well, I wrote Arryamancer and Constantine both from scratch
18:49:46FromDiscord<mratsim> ah Arraymancer does have a BLAS dependency which still bugs me
18:59:08FromDiscord<mr_rowboto> Yeah, I see
18:59:20FromDiscord<mr_rowboto> BLAS as in "Bottom Level Acceleration Structure"?
19:00:10FromDiscord<mr_rowboto> Oh, Basic Linear Algebra Subprograms
19:00:12FromDiscord<mr_rowboto> overload
19:00:13FromDiscord<nasuray> In reply to @manekobox "Hello Nim communityyyy, I'm": Do you need to run offline or develop offline? If the former you can just copy a compiled binary over
19:06:05FromDiscord<manekobox> In reply to @nasuray "Do you need to": The latter
19:06:51FromDiscord<manekobox> The PC I'd be writing and compiling in won't have an internet connection
19:06:59FromDiscord<manekobox> (edit) "in" => "on"
19:43:52tarzeauso nim appears orphaned in debian since mid 2024... version 2.2.4
19:44:28tarzeaui download nim 2.2.10 and the tarball is only 4,4mb. but the debian src pkg is 125mb
19:44:48tarzeauwhy is it not standard build system like configure make make install, or cmake, or something common?
19:45:02tarzeauhow do i build it without reading all the manuals?
19:45:06FromDiscord<mr_rowboto> In reply to @tarzeau "i download nim 2.2.10": `choosenim` or `grabnim` or even `nimby use` are far better ways to get nim
19:45:44FromDiscord<mr_rowboto> In reply to @tarzeau "how do i build": well...
19:45:46tarzeaunot just go to nim github page download source tarball?
19:46:00tarzeau2nd test, just re-use 2.2.4 debian/ ...
19:46:06FromDiscord<mr_rowboto> if you want to build from source...
19:46:45tarzeauof course i build from source... anything else is not an option
19:47:37FromDiscord<mr_rowboto> may I ask why is it not?
19:47:52tarzeaubecause debian builds everything from source?
19:48:13FromDiscord<mr_rowboto> only if you consume deb-src?
19:48:15tarzeauor do you work on nim binaries to improve it? no people work on source code...
19:48:20FromDiscord<mr_rowboto> .deb are usually binary distributions
19:48:53tarzeauFromDiscord: users that consume binaries need other users create deb src packages building binary packages for users to consume binary packages
19:49:16tarzeauFromDiscord: i know what .deb is. i'm talking about creating .dsc to run debuild on to generate .deb
19:49:17FromDiscord<mr_rowboto> oh, you want to update the debian package, I see.
19:49:24tarzeau+1
19:49:42tarzeauonly because i want to package chawan. not because i want to learn another language
19:49:55tarzeaui'm fine with C, obj-c, and shell. well basic and some assembly too
19:50:14tarzeauof course i've seen and patched stuff like python. but i don't want to. i don't like it
19:50:40tarzeauthen i also wait for zig lang to be packaged, only to package a software synthisizer which was written in zig
19:52:07FromDiscord<planetis_m> tarzeau: get a .deb from here: https://launchpad.net/~planetis/+archive/ubuntu/nim or try the build files from: https://github.com/planetis-m/nim-deb
19:55:44tarzeaunot built from source: https://github.com/planetis-m/nim-deb/blob/master/debian/rules
19:56:16tarzeauFromDiscord: this guy is right! he recommends debian: https://launchpad.net/~gagarin
20:08:38*greaser|q quit (Changing host)
20:08:38*greaser|q joined #nim
20:08:40*greaser|q is now known as GreaseMonkey
20:11:35FromDiscord<planetis_m> In reply to @tarzeau "not built from source:": Its a couple of extra steps. You can do it easily.
20:21:53tarzeauFromDiscord: how ? or which file do i read, that explains me in 5 lines?
20:22:03tarzeauor, i mean why is it not just make or cmake?
20:29:45yetitarzeau: the nim deb src from sid builds with a minor quirk still on older debian. I tried down to deb11
20:30:07yetibut it has a phase in building where load may hit >160
20:30:27yetithe build process survives that even on a pi2 but it looks scary
20:30:58yetimem/swap doesnt overflow in that phase
20:31:06tarzeauyeti: ok so on sid i have src:nim 2.2.4-2, but upstream is on 2.2.10...
20:31:41tarzeaui have some powerful machines, don't care about loads hitting >160
20:32:16tarzeaufonts-iosveka built on 300+ cores machine took 160 gb memory... this is fine :)
20:32:41yetiI need to add a 1 line change to chawan to build with that version
20:32:48tarzeauchromium or firefox are painful to build!
20:33:07tarzeauyeti: which chawan pkg? i just did a 0.3.3-1 upload into debian
20:33:28tarzeauhttps://dfsg-new-queue.debian.org/reviews/chawan
20:33:31yetiv0.4-dev
20:34:05tarzeauwhen is 0.4 released? i'm concerned about: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1136881 (2nd mail)
20:34:29tarzeauUNLESS chawan authors transpile/develop in something else? guess not likely to happen
20:34:45tarzeauwish chawan authors were on irc...
20:34:53tarzeauor they used github (for easier issue reporting)
20:36:48yetiI see no problen in keeping nim and chawan in /opt bonsais
20:37:06yetithere is an ubunti nim ppa
20:37:22yetimaybe their sources can be kept uptodate and deboian compatible?
20:41:49*beholders_eye joined #nim
20:42:15tarzeaui have philosophy: if you can't build it from source, you are not entitled to run it!
20:42:21tarzeausince 1999
20:43:05yetidebian's mackaging is more buerocratic thann all other aspects of my life together
20:43:10yetiit no longer is fun
20:43:36yetiin the beginning debian/rules just was a makefile with readable stuff
20:43:57yetinow it's layers on layers of helpers and no chance to understand any more
20:44:50tarzeauit's still a makefile, and it's much easier than with < debhelper v 9
21:18:11FromDiscord<shalokshalom> In reply to @yeti "debian's mackaging is more": As someone who is packaging Arch: Debian is a fucking nightmare. I do understand many of the concepts made sense 20 years ago, and I do appreciate all open source contributions, while this does appear pretty nuts standing here.
21:20:37yetiI saw it grow from 1st versions without even relase names. debian turned from being a solution to being a problem over the decades.
21:21:49yetistill I fell more at home in debian/devuan than elsewhere but that HAS to change.
21:22:10FromDiscord<shalokshalom> In case you wanna see fine packaging, I recommend you the distro called [KaOS](https://kaosx.us) that is also using Pacman, although for an independent distro.
21:22:48FromDiscord<shalokshalom> demm is the one individual that maintains the entire distro: Including 2400 packages or something similar to that effect. πŸ™‚
21:22:48yetiI'll look for a nonlinux
21:22:56FromDiscord<shalokshalom> Ah, interesting.
21:23:18FromDiscord<shalokshalom> In what capacity?
21:23:32yetithe linux foundation's board of directors looks like a horrorshow
21:23:52FromDiscord<shalokshalom> Yeah... The whole Linux Foundation does
21:24:09FromDiscord<shalokshalom> So funny as it sounds : I don't think they have much influence on the kernel
21:24:29FromDiscord<shalokshalom> Linux is like Democracy
21:24:56yetithen democracy is pushing granny downstairs because of being slow
21:25:13FromDiscord<shalokshalom> The best thing we have because of the balance it provides, and overall still severly lacking. πŸ˜„
21:32:20tarzeauwhat's your problem with debian packaging? you dh_make and debuild
21:32:31tarzeauupstream got no release? use git2deb & debuild
21:33:01tarzeauit's like. automatic. unless, of course, upstream rewrites a new build system because of NIH
21:34:58tarzeauhaha https://kaosx.us/gallery maintains 2400+ pakcages. but gallery 404
21:35:11tarzeaukde and gnome. can't wait they die. team gnustep!
21:39:09FromDiscord<muddmaker> In reply to @shalokshalom "So funny as it": It's less about the influence they have on the kernel and more about the influence they have on everything around the kernel
22:08:18*redj quit (Ping timeout: 246 seconds)
23:01:40*beholders_eye quit (Quit: WeeChat 4.9.0)