01:00:49 | FromDiscord | <double_spiral> Macros are so hard to read when you're new to them |
01:03:20 | FromDiscord | <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:49 | FromDiscord | <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:22 | FromDiscord | <drunkenalcoholic> https://media.discordapp.net/attachments/371759389889003532/1302602767243677696/image.png?ex=6728b6dc&is=6727655c&hm=8b388a7ba62ffa1afa7b89eeab23d412cad69684209a03992f52c5a5192871f7& |
12:02:19 | FromDiscord | <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:23 | FromDiscord | <demotomohiro> Do you see different CPU from `/proc/cpuinfo` on host and virtualbox? |
12:07:39 | FromDiscord | <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:05 | FromDiscord | <drunkenalcoholic> yeap same info of cpu using /proc/cpuinfo |
12:10:43 | FromDiscord | <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:59 | FromDiscord | <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:43 | FromDiscord | <drunkenalcoholic> I installed from choosenim script fromt he web site |
13:39:52 | FromDiscord | <bubbly_avocado_86424> is there a place to report packages pointing to a deadlink? |
14:26:24 | FromDiscord | <hjdm8pvk5t> https://chat.whatsapp.com/D5ZRM0Wso2hKycEbalvkMW |
14:36:42 | * | lucasta joined #nim |
16:13:18 | * | lucasta quit (Quit: Leaving) |
16:45:41 | Amun-Ra | regarding 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:30 | FromDiscord | <bubbly_avocado_86424> meh, will something like this ever work ?↵↵var proceed: char = (y|Y) |
19:42:10 | Amun-Ra | or this: var value: int = 1 |
19:42:17 | Amun-Ra | or this: var value: int = 1 | 666; |
19:42:36 | FromDiscord | <bubbly_avocado_86424> has to be char |
19:42:48 | Amun-Ra | what'd it mean? |
19:43:14 | FromDiscord | <bubbly_avocado_86424> eh ? |
19:43:44 | Amun-Ra | what would it mean to store value 'y' or 'Y' |
19:44:17 | FromDiscord | <bubbly_avocado_86424> no, it is to have input read and then match if this is either Y or y |
19:44:49 | FromDiscord | <bubbly_avocado_86424> thus var proceed can only accept y or Y and if true it proceeds else fails |
19:45:06 | Amun-Ra | unless there's a problem with passing verbatim code to the irc side - that looks like assigning two values to a single variable |
19:46:47 | FromDiscord | <bubbly_avocado_86424> i better stop for today |
19:47:27 | FromDiscord | <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:02 | Amun-Ra | get the input, parse, sanitize, then check |
19:48:26 | FromDiscord | <bubbly_avocado_86424> sent a long message, see https://pasty.ee/QsTXHtzX |
19:52:18 | Amun-Ra | const Choices: set[char] = {'y', 'Y'} |
19:52:39 | Amun-Ra | and then: if answer in choices: do_sth() |
19:56:35 | * | xet7 quit (Read error: Connection reset by peer) |
20:03:53 | FromDiscord | <bubbly_avocado_86424> thanks, good evening |
20:32:58 | FromDiscord | <TFed> is it possible to generate regexp in real time? |
20:33:21 | FromDiscord | <TFed> i want to replace text with $n values, but i need to store $1 $2 as text |
20:33:33 | FromDiscord | <TFed> how to store the $ right way? |
20:34:50 | FromDiscord | <Elegantbeef> If you use the std regex, they already are generated in realtime |
20:34:57 | FromDiscord | <Elegantbeef> Assuming you mean runtime |
20:35:09 | FromDiscord | <TFed> sent a code paste, see https://play.nim-lang.org/#pasty=FXDsQcHq |
20:35:48 | FromDiscord | <TFed> regex are ok, how to store the `to` variable? |
20:35:54 | FromDiscord | <TFed> regex are ok, how to store the `to` value? |
20:36:13 | FromDiscord | <Elegantbeef> Use a string |
20:36:14 | FromDiscord | <TFed> how to store dollar simbol |
20:36:48 | Amun-Ra | escape it? |
20:37:03 | FromDiscord | <TFed> yup |
20:37:05 | FromDiscord | <TFed> or actually not to escape |
20:37:07 | FromDiscord | <TFed> or actually not to escape it |
20:37:21 | FromDiscord | <Elegantbeef> I'm confused the dollar sign in a string does not need escaped |
20:37:55 | FromDiscord | <Elegantbeef> Though I'd say look at `std/strutils`'s `%` operator if you're just doing replacments |
20:38:02 | Amun-Ra | I haven't used nim's regex, but it should be escaped in regex |
20:38:41 | FromDiscord | <TFed> i'm confused as well, it works |
20:38:57 | FromDiscord | <TFed> i have no idea why what happened |
20:39:10 | FromDiscord | <TFed> i will recheck the code |
20:39:10 | FromDiscord | <Elegantbeef> Cause you're not using a regex pattern to replace you're using a string |
20:39:26 | FromDiscord | <TFed> upm\://[email protected]/git↵upm\://(-\|)(.)@(.)↵upmAction=$1 pkgName=$2 source=$3↵upmAction= pkgName=git source=github.com/git |
20:39:45 | Amun-Ra | (.)@(.) - I like it |
20:39:55 | FromDiscord | <TFed> i know it's horrible, but it's url handler on regex |
20:39:58 | FromDiscord | <TFed> i know it's horrible, but it's url handlers on regex |
20:40:06 | FromDiscord | <TFed> sent a code paste, see https://play.nim-lang.org/#pasty=viGzCfgb |
20:40:22 | FromDiscord | <Elegantbeef> > url handlers on regex↵I'll pretend I didn't see that |
20:41:15 | FromDiscord | <TFed> sent a code paste, see https://play.nim-lang.org/#pasty=RxndeRhm |
20:42:50 | FromDiscord | <TFed> code is and will be published under GPL |
20:43:00 | FromDiscord | <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:46 | FromDiscord | <double_spiral> Whats the difference between a `macro` and `proc` |
23:09:58 | FromDiscord | <double_spiral> Cause they can both work with data from the AST |
23:13:13 | FromDiscord | <usawiniko> In reply to @double_spiral "Whats the difference between": a macro can transform code that can be passed into it |
23:16:14 | FromDiscord | <double_spiral> Interesting |
23:25:27 | FromDiscord | <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 |