<< 03-11-2024 >>

01:00:49FromDiscord<double_spiral> Macros are so hard to read when you're new to them
01:03:20FromDiscord<Elegantbeef> You are playing compiler so to be expected
01:14:38*lucasta quit (Quit: Leaving)
01:49:38*alexdaguy joined #nim
01:52:52*alexdaguy quit (Read error: Connection reset by peer)
01:53:41*alexdaguy joined #nim
08:08:09*coldfeet joined #nim
11:56:49FromDiscord<drunkenalcoholic> Compiling a binary for executing in virtualbox, but when executing in virtualbox(Archlinux same as Host) I get the "CPU ISA level is lower than required", is there a way turn this off when compiling, from a little bit of googling it's the glibc updates or something like that, I have compiled the same binary a couple of months ago and ran it in a virtualbox without porblems
11:58:22FromDiscord<drunkenalcoholic> https://media.discordapp.net/attachments/371759389889003532/1302602767243677696/image.png?ex=6728b6dc&is=6727655c&hm=8b388a7ba62ffa1afa7b89eeab23d412cad69684209a03992f52c5a5192871f7&
12:02:19FromDiscord<demotomohiro> In reply to @drunkenalcoholic "Compiling a binary on": You probably need to check compile options of backend compiler that specify target CPU.
12:04:23FromDiscord<demotomohiro> Do you see different CPU from `/proc/cpuinfo` on host and virtualbox?
12:07:39FromDiscord<drunkenalcoholic> checking it out now, but the host is running the virtualbox, the virtualbox distro is what I use for testing standard linux installs against compiled binarys,
12:10:05FromDiscord<drunkenalcoholic> yeap same info of cpu using /proc/cpuinfo
12:10:43FromDiscord<drunkenalcoholic> I might enable PAE/NX and see if that does anything
12:19:41*ntat joined #nim
12:27:11*alexdaguy quit (Quit: w)
12:50:59FromDiscord<janakali> In reply to @drunkenalcoholic "Compiling a binary on": Check last two lines in `/etc/nim.cfg`, for some reason, Arch linux maintainers add a bunch of extra compiler flags to gcc by default. This causes errors with cross-compilation, because CPU arch is hard-coded, but might be related to your problem too.
12:56:43FromDiscord<drunkenalcoholic> I installed from choosenim script fromt he web site
13:39:52FromDiscord<bubbly_avocado_86424> is there a place to report packages pointing to a deadlink?
14:26:24FromDiscord<hjdm8pvk5t> https://chat.whatsapp.com/D5ZRM0Wso2hKycEbalvkMW
14:36:42*lucasta joined #nim
16:13:18*lucasta quit (Quit: Leaving)
16:45:41Amun-Raregarding the talk from day ago about 0-sized bitfields, I didn't know non-anonymous 0-sized bitfields are UB according to C standard
16:50:11*coldfeet quit (Remote host closed the connection)
17:06:12*lucasta joined #nim
18:18:44*learnm0re joined #nim
18:21:21*learnm0re quit (Client Quit)
19:33:18*ntat quit (Quit: Leaving)
19:37:30FromDiscord<bubbly_avocado_86424> meh, will something like this ever work ?↵↵var proceed: char = (y|Y)
19:42:10Amun-Raor this: var value: int = 1
19:42:17Amun-Raor this: var value: int = 1 | 666;
19:42:36FromDiscord<bubbly_avocado_86424> has to be char
19:42:48Amun-Rawhat'd it mean?
19:43:14FromDiscord<bubbly_avocado_86424> eh ?
19:43:44Amun-Rawhat would it mean to store value 'y' or 'Y'
19:44:17FromDiscord<bubbly_avocado_86424> no, it is to have input read and then match if this is either Y or y
19:44:49FromDiscord<bubbly_avocado_86424> thus var proceed can only accept y or Y and if true it proceeds else fails
19:45:06Amun-Raunless there's a problem with passing verbatim code to the irc side - that looks like assigning two values to a single variable
19:46:47FromDiscord<bubbly_avocado_86424> i better stop for today
19:47:27FromDiscord<bubbly_avocado_86424> a bit conflicted on what to do with a let/var which is required to be declared but waits for input
19:48:02Amun-Raget the input, parse, sanitize, then check
19:48:26FromDiscord<bubbly_avocado_86424> sent a long message, see https://pasty.ee/QsTXHtzX
19:52:18Amun-Raconst Choices: set[char] = {'y', 'Y'}
19:52:39Amun-Raand then: if answer in choices: do_sth()
19:56:35*xet7 quit (Read error: Connection reset by peer)
20:03:53FromDiscord<bubbly_avocado_86424> thanks, good evening
20:32:58FromDiscord<TFed> is it possible to generate regexp in real time?
20:33:21FromDiscord<TFed> i want to replace text with $n values, but i need to store $1 $2 as text
20:33:33FromDiscord<TFed> how to store the $ right way?
20:34:50FromDiscord<Elegantbeef> If you use the std regex, they already are generated in realtime
20:34:57FromDiscord<Elegantbeef> Assuming you mean runtime
20:35:09FromDiscord<TFed> sent a code paste, see https://play.nim-lang.org/#pasty=FXDsQcHq
20:35:48FromDiscord<TFed> regex are ok, how to store the `to` variable?
20:35:54FromDiscord<TFed> regex are ok, how to store the `to` value?
20:36:13FromDiscord<Elegantbeef> Use a string
20:36:14FromDiscord<TFed> how to store dollar simbol
20:36:48Amun-Raescape it?
20:37:03FromDiscord<TFed> yup
20:37:05FromDiscord<TFed> or actually not to escape
20:37:07FromDiscord<TFed> or actually not to escape it
20:37:21FromDiscord<Elegantbeef> I'm confused the dollar sign in a string does not need escaped
20:37:55FromDiscord<Elegantbeef> Though I'd say look at `std/strutils`'s `%` operator if you're just doing replacments
20:38:02Amun-RaI haven't used nim's regex, but it should be escaped in regex
20:38:41FromDiscord<TFed> i'm confused as well, it works
20:38:57FromDiscord<TFed> i have no idea why what happened
20:39:10FromDiscord<TFed> i will recheck the code
20:39:10FromDiscord<Elegantbeef> Cause you're not using a regex pattern to replace you're using a string
20:39:26FromDiscord<TFed> upm\://[email protected]/git↵upm\://(-\|)(.)@(.)↵upmAction=$1 pkgName=$2 source=$3↵upmAction= pkgName=git source=github.com/git
20:39:45Amun-Ra(.)@(.) - I like it
20:39:55FromDiscord<TFed> i know it's horrible, but it's url handler on regex
20:39:58FromDiscord<TFed> i know it's horrible, but it's url handlers on regex
20:40:06FromDiscord<TFed> sent a code paste, see https://play.nim-lang.org/#pasty=viGzCfgb
20:40:22FromDiscord<Elegantbeef> > url handlers on regex↵I'll pretend I didn't see that
20:41:15FromDiscord<TFed> sent a code paste, see https://play.nim-lang.org/#pasty=RxndeRhm
20:42:50FromDiscord<TFed> code is and will be published under GPL
20:43:00FromDiscord<TFed> code is published under GPL
22:56:12*lucasta quit (Quit: Leaving)
23:00:25*Lord_Nightmare quit (Quit: ZNC - http://znc.in)
23:04:00*Lord_Nightmare joined #nim
23:09:46FromDiscord<double_spiral> Whats the difference between a `macro` and `proc`
23:09:58FromDiscord<double_spiral> Cause they can both work with data from the AST
23:13:13FromDiscord<usawiniko> In reply to @double_spiral "Whats the difference between": a macro can transform code that can be passed into it
23:16:14FromDiscord<double_spiral> Interesting
23:25:27FromDiscord<michaelb.eth> In reply to @double_spiral "Interesting": see also the compileTime pragma for procs and vars:↵https://nim-lang.org/docs/manual.html#pragmas-compiletime-pragma