<< 25-02-2021 >>

00:06:03FromDiscord<Nerdie> well
00:06:06FromDiscord<Nerdie> now i know my issue
00:06:15FromDiscord<Nerdie> i can't make a 32bit dll with 64 bit mingw
00:06:31FromDiscord<Nerdie> where can i get 32 bit mingw and how do i use it instead of the 64 bit one
00:09:57FromGitter<awr1> @Nerdie there are 32-bit versions of mingw here https://nim-lang.org/install_windows.html
00:10:21FromDiscord<Nerdie> thank youuuu
00:12:41FromGitter<awr1> use `--cpu:i386` in nim
00:15:10FromGitter<awr1> this could theoretically be slightly easier if we used `zig cc` but idk what happened to that backend
00:18:18FromDiscord<Rika> you can still use it, just have to fuck a bit with --cc:clang and stuff
00:21:39*sagax quit (Ping timeout: 264 seconds)
00:22:05*kaputse[m] quit (Ping timeout: 268 seconds)
00:22:05*oswin[m] quit (Ping timeout: 268 seconds)
00:22:05*Yardanico[m] quit (Ping timeout: 268 seconds)
00:23:50*Yardanico[m] joined #nim
00:24:40*oswin[m] joined #nim
00:24:49*kaputse[m] joined #nim
00:27:48FromDiscord<Nerdie> well
00:27:51FromDiscord<Nerdie> it doesn't work
00:28:04FromDiscord<Nerdie> i have both 64 and 32 bit nim
00:28:20FromDiscord<Nerdie> i tried modifying my 64 bit's cfg file
00:28:43FromDiscord<Nerdie> added this `gcc32.path = r"C:\Program Files\nim-1.4.4_x32\dist\mingw32\bin"`
00:28:55FromDiscord<Nerdie> https://nerdie.is-part-of-the.lgbt/​​‌‌​‌‌‌​‌​​‌​​‌​‌‌​‌‌​​​‌​‌‌​‌​​‌‌​‌​‌‌​‌​‌​​‌​​‌​​‌‌‌​​​‌‌​​​‌​‌​‌‌‌‌‌
00:29:11FromDiscord<Nerdie> doesn't let me choose gcc32
00:34:19FromDiscord<Nerdie> i have made the dll work
00:34:21FromDiscord<Nerdie> but
00:34:25FromDiscord<Nerdie> i can't make it 32bit
00:34:30FromDiscord<Nerdie> so no injecting into csgo
00:40:23FromDiscord<ElegantBeef> Did you see this? https://www.reddit.com/r/nim/comments/hkrpxm/32_bit_dll_in_nim/
00:42:37FromDiscord<Nerdie> oh
00:42:37FromDiscord<Nerdie> crap
00:42:40FromDiscord<Nerdie> t h a n k
00:47:04*wasted_youth2 joined #nim
00:47:38FromDiscord<Rika> what's the pragma for checked exceptions again?
00:49:36FromDiscord<Yjuq> I'm not sure if I understand bitfields correct. Do I just put them together in `{Bit1, Bit2, Bit3}` in order to `or` them together?
00:49:55FromDiscord<exelotl> yep!
00:49:58FromDiscord<Yjuq> Ah, I see
00:50:07FromDiscord<Yjuq> I'm used to add them or either or them
00:50:10FromDiscord<Yjuq> x)
00:50:21FromDiscord<Yjuq> Why is this a thing in nim? What is the reasoning
00:50:38FromDiscord<Rika> because its more conceptually consistent to our mental models
00:50:40FromDiscord<Rika> is it not?
00:51:25FromDiscord<Rika> ALTHOUGH sets being bitfields is an implementation detail i believe...
00:51:43FromDiscord<Rika> aka "treat it as a coincidence" or such
00:51:55FromDiscord<exelotl> oh well if that changes I'm screwed lol
00:52:15FromDiscord<Rika> well i believe it wont change for nim's base compiler (of course)
00:52:37FromDiscord<Rika> but dont expect it to be the same for other implementations of the nim compiler, if any ever pop up
00:53:07FromDiscord<Rika> (and even then they would most probably follow the ref. compiler, but its not a guarantee...)
00:53:33FromDiscord<Rika> let me check again if it really is just an implementation detail tho
00:53:42FromDiscord<ElegantBeef> Nah sets being bitfields is totally expected
00:53:48FromDiscord<ElegantBeef> They're after all the same thing
00:53:57FromDiscord<ElegantBeef> Cause it's a bitset
00:54:16FromDiscord<exelotl> sent a code paste, see https://play.nim-lang.org/#ix=2QKN
00:54:22FromDiscord<exelotl> (edit) "https://play.nim-lang.org/#ix=2QKN" => "https://play.nim-lang.org/#ix=2QKO"
00:54:24FromDiscord<Rika> yes i mean that if someone were to implement nim again, sets being a bitset is not a requirement of the spec... i think
00:54:36FromDiscord<Yjuq> anyways, i have troubles using the opengl procedure `glClear` with the bitfields. I got type mismatches all over the place
00:54:44FromDiscord<ElegantBeef> Well idk how else you'd do it 😄
00:54:45FromDiscord<Yjuq> I'm using the NimGL library
00:54:52FromDiscord<ElegantBeef> What's the proc siganture?
00:55:00FromDiscord<Nerdie> how can i get key events w/ nim?
00:55:22FromDiscord<Yjuq> sent a code paste, see https://play.nim-lang.org/#ix=2QKP
00:55:39FromDiscord<Yjuq> sent a code paste, see https://play.nim-lang.org/#ix=2QKQ
00:55:41FromDiscord<Yjuq> I'm way to confused
00:55:49FromDiscord<exelotl> @Yjuq bitwise OR also exists in Nim, so you can do `FLAG_1 or FLAG_2 or FLAG_3`
00:56:00FromDiscord<ElegantBeef> Ah cause it's a non idiomatic Nim wrapper you have to do the bitwise ops like exelotl pointed out
00:56:53FromDiscord<ElegantBeef> Welcome to C interop, where it's just C with a different syntax 😛
00:57:05FromDiscord<Nerdie> man
00:57:07FromDiscord<Nerdie> nim is hard
00:57:08FromDiscord<Rika> In reply to @Rika "what's the pragma for": someone pls help xd
00:57:10FromDiscord<exelotl> yep, if you're doing bitfields in your own project it's better to use sets, but a lot of wrappers are done in this way instead :(
00:57:10FromDiscord<Nerdie> but its easy
00:57:33FromDiscord<ElegantBeef> I mean most of us dont use windows so we cannot help you, but winnim probably has the how to somewhere
00:57:58FromDiscord<Yjuq> usually i would just add or or them together
00:57:59FromDiscord<ElegantBeef> Sorry `winim` 😄
00:58:06FromDiscord<Yjuq> but this looks like it doesn't work either
00:58:10FromDiscord<Rika> are you winim son
00:58:17FromDiscord<ElegantBeef> What's the error?
00:58:37FromDiscord<ElegantBeef> You might have to convert to uint32 or them then convert to the GlbitField
00:58:54FromDiscord<exelotl> oh yeah it's a distinct type 😠
00:59:22FromDiscord<Yjuq> Oh i see... "or" is the bitor operation in nim. I thought it would be a standard "|" and or for logical stuff?
00:59:23FromDiscord<ElegantBeef> Reasons i dont like using generated wrappers 101 😛
00:59:32FromDiscord<ElegantBeef> Well you can `import bitops`
00:59:43FromDiscord<ElegantBeef> though with a distinct 0 clue if it'll work properly
00:59:50FromDiscord<ElegantBeef> with bitops you get `bitOr`
01:00:39FromDiscord<Yjuq> what does borrow mean?
01:00:40FromDiscord<Yjuq> sent a code paste, see https://paste.rs/HUH
01:00:44FromDiscord<ElegantBeef> It takes from the base type
01:00:52FromDiscord<Rika> fuck you and your quick typiung
01:00:54FromDiscord<Rika> (edit) "typiung" => "typing"
01:01:02FromDiscord<ElegantBeef> since it's a distinct it takes the `uint32.or`
01:01:10FromDiscord<Yjuq> Ah
01:01:16FromDiscord<Yjuq> and this is defined as? x)
01:01:19FromDiscord<Yjuq> god damnit
01:01:19FromDiscord<ElegantBeef> No problem rika, i can teach you to type faster, you only use two fingers with your right hand
01:01:41FromDiscord<Rika> are you on a phone or something?
01:01:45FromDiscord<ElegantBeef> Me?
01:02:09FromDiscord<ElegantBeef> Nah i just only use two fingers on my right hand to type on the right side of my keyboard
01:02:28FromDiscord<ElegantBeef> It's weird, but i cannot unlearn this behaviour
01:02:31FromDiscord<ElegantBeef> I'm too fargone
01:02:50FromDiscord<Yjuq> I mean,... I personally have a keyboard down to me feets as well x)
01:02:53*superbia1 joined #nim
01:03:01FromDiscord<Yjuq> If my hands are busy doing other things
01:03:30FromDiscord<ElegantBeef> Cannot tell if you're serious or not
01:03:41FromDiscord<Yjuq> This is sadly serious
01:03:52FromDiscord<Nerdie> what even
01:05:00FromDiscord<exelotl> I use my nose to gain a few extra wpm
01:05:01FromDiscord<Yjuq> I got used to it. It's a habit from my hardcore gaming times
01:05:16FromDiscord<Yjuq> I got used to play this way 2 characters in online games at the same time
01:05:22FromDiscord<Yjuq> x)
01:05:46FromDiscord<ElegantBeef> I was being serious and now i'm being mocked, this is why i dont open up! 😛
01:05:55FromDiscord<exelotl> that's pretty impressive lol
01:05:57*superbia quit (Ping timeout: 264 seconds)
01:06:00FromDiscord<Yjuq> nobody is mocking you
01:06:00FromDiscord<Rika> man what
01:06:13FromDiscord<Yjuq> i'm just sharing as well
01:06:18FromDiscord<Yjuq> I like to talk :D
01:06:33FromDiscord<ElegantBeef> ~~As always my insincere comedy marked with an emoji passed enemy radar~~
01:06:34FromDiscord<Nerdie> talking is fun
01:09:33FromDiscord<Yjuq> You have strange games my friend. i never heard of this game "python" before that you are playing since 2 hours now
01:09:42FromDiscord<Yjuq> Oh, almost 3 hours
01:10:03FromDiscord<ElegantBeef> Making a selfbot... interesting
01:11:29FromDiscord<Nerdie> nope
01:11:31FromDiscord<Nerdie> no selfbots here
01:11:36FromDiscord<Nerdie> forgot to disable fucking rpc
01:11:45FromDiscord<Rika> sorry reported xddd
01:11:48FromDiscord<Nerdie> bruh
01:11:52FromDiscord<Rika> im joking
01:12:02FromDiscord<ElegantBeef> I think Rika knows a furry or two so one might be a discord admin 😛
01:12:10FromDiscord<Nerdie> dude
01:12:13FromDiscord<Rika> i know no furries
01:12:14FromDiscord<Nerdie> idfk why i can't just
01:12:18FromDiscord<Nerdie> post a pink embed without a selfbot
01:12:25FromDiscord<Rika> weebs are basically rivals with furries
01:12:30FromDiscord<Yjuq> No furries? In which kind of world are you living?
01:12:30FromDiscord<ElegantBeef> Cause discord is shite
01:12:34FromDiscord<Nerdie> i had to make a bypass for fucking dyno just so i can post pink embeds anywhere
01:12:52FromDiscord<Rika> In reply to @Yjuq "No furries? In which": i mean more of i am not friends with one
01:13:08FromDiscord<Nerdie> imagine furry and not femboy
01:13:33FromDiscord<ElegantBeef> So uh, that Nim huh?
01:13:49FromDiscord<Yjuq> smooth attempt, but already to late
01:13:58FromDiscord<Yjuq> Nerdie hooked me now in this topic
01:14:47FromDiscord<Rika> nim? yeah nim is nice
01:14:48FromDiscord<Nerdie> i was only talking about selfbots
01:14:51FromDiscord<Nerdie> nim hits p100
01:14:55FromDiscord<Nerdie> https://github.com/NurdAlert/NimDLL
01:15:00FromDiscord<Rika> p hundred?
01:15:04FromDiscord<Nerdie> i modified @Recruit_main707's source
01:15:08FromDiscord<Nerdie> to make it uh
01:15:09FromDiscord<Nerdie> fucking work
01:15:16FromDiscord<Yjuq> Eh, go back to the furry and femboy topic. I'm highly interested :(
01:15:29FromDiscord<Rika> what furry and femboy topic
01:15:31FromDiscord<Nerdie> furries = bad↵femboys = good
01:15:32FromDiscord<Nerdie> there
01:15:35FromDiscord<Rika> lol
01:16:08FromDiscord<Nerdie>
01:16:16FromDiscord<Nerdie> sent a code paste, see https://play.nim-lang.org/#ix=2QKW
01:16:22FromDiscord<Rika> sorry reported
01:16:25FromDiscord<Nerdie> mannn
01:16:31FromDiscord<Nerdie> :pepejail:
01:16:40FromDiscord<Rika> srsly tho be careful
01:16:44FromDiscord<Nerdie> yeahhh
01:16:50FromDiscord<Nerdie> it only does embeds
01:17:00FromDiscord<Nerdie> i really like using the fix code highlighting in a pink embed
01:17:02FromDiscord<Rika> thats already enough to get banned
01:17:04FromDiscord<Nerdie> it looks so nice
01:17:05FromDiscord<Nerdie> really?
01:17:10FromDiscord<Rika> yes
01:17:18FromDiscord<Nerdie> what the fuck discord
01:17:31FromDiscord<Nerdie> someone can spam me with porn that's of underage people but i can't post a pink embed
01:17:39FromDiscord<Nerdie> fuck discord
01:17:45FromDiscord<Rika> xd
01:17:58FromDiscord<Nerdie> like whats wrong with selfbotting
01:18:00FromDiscord<Nerdie> just don't like
01:18:02FromDiscord<Nerdie> spam shit
01:18:12FromDiscord<ElegantBeef> Dont use discord, problem solved
01:18:16FromDiscord<Rika> its using unintended features, and discord doesnt want that
01:18:23FromDiscord<ElegantBeef> Go become a matrix evangelist
01:18:26FromDiscord<Rika> theyve the right to ban you for anything really
01:18:34FromDiscord<Rika> they dont because thatll cause backlash
01:19:05FromDiscord<Rika> but most people think its reasonable for discord to ban you if you break their rules (if the rule is reasonable)
01:19:31FromDiscord<ElegantBeef> Well that's the general consensus for any privately owned platform
01:19:32FromDiscord<Rika> most people also dont care enough to report though
01:19:51FromDiscord<Rika> yeah im just explaining it
01:21:38FromDiscord<Yjuq> @Nerdie ↵https://support.discord.com/hc/en-us/articles/115002192352-Automated-user-accounts-self-bots-
01:21:58FromDiscord<Nerdie> wha
01:22:00FromDiscord<Nerdie> (edit) "wha" => "what"
01:22:04FromDiscord<Nerdie> i know they're not allowed lol
01:22:21FromDiscord<Nerdie> i just don't care
01:22:43FromDiscord<Yjuq> Just pointing it out :P - I don't mind what you do. I actually like that pink
01:23:04FromDiscord<Nerdie> ye
01:23:08FromDiscord<Nerdie> i've got like 4 accounts with nitro
01:23:55FromGitter<awr1> @Yjuq set[enum] internally works as bitfields. The reason of "why sets and not raw bitfields" is: ⏎ ⏎ 1) Type safety - distinct from standard integer types ⏎ 2) Being a distinct type, sets have their own procedures (which makes intent clearer), e.g. `incl`, `excl`, `in` etc. ⏎ 3) Cleaner syntax ... [https://gitter.im/nim-lang/Nim?at=6036fc2b004546620950cb53]
01:24:20FromGitter<awr1> Apologies for the multi-line, I forgot.
01:24:35FromDiscord<Nerdie> doesn't nim have imgui support lol
01:24:50FromDiscord<ElegantBeef> Yes you can get imgui bindings
01:24:51FromGitter<awr1> There are imgui bindings
01:25:00FromDiscord<Yjuq> In reply to @Nerdie "doesn't nim have imgui": they are in the NimGL package as well
01:25:31FromDiscord<Nerdie> oh yeah
01:25:36FromDiscord<Nerdie> i can get that using nimble right?
01:26:12FromDiscord<Yjuq> yes
01:26:19FromDiscord<Yjuq> nimble install NimGL
01:26:24FromDiscord<Nerdie> pog
01:29:32FromGitter<Yjuq> The IRC looks pretty full as well huh - 995 people
01:39:03*njoseph quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
01:39:21*njoseph joined #nim
01:45:50*abm quit (Read error: Connection reset by peer)
01:49:11FromDiscord<Nerdie> https://github.com/nimgl/nimgl
01:49:22FromDiscord<Nerdie> can i do everything that c++ imgui can w/ this lol
01:52:59FromDiscord<Rika> depends on if its updated or not
01:53:22FromDiscord<Nerdie> 7 days ago
01:53:27FromDiscord<Nerdie> 5
01:53:38FromDiscord<Rika> i mean updated for newest imgui
01:54:33FromDiscord<Nerdie> well yeah
01:54:40asdflkj_Yjuq: so it looks like ~995 people like to chat without a using a client that takes 1_000–10_000 times as much RAM as the Apollo Guidance Computer (or risk getting banned from Discord, or maybe use a Matrix/Gitter client that probably can't implement the full spec including the widgets proposal, etc.)
01:54:43FromDiscord<Nerdie> i wanna make a csgo cheat with csgo and imgui seems to be the way to make a menu lol
01:55:09FromDiscord<ElegantBeef> asdflkj tell me how you really feel
01:55:13FromDiscord<Nerdie> man
01:55:15FromDiscord<Nerdie> discord sucks
01:56:20asdflkj_I used to use Discord, I'm grateful that it taught me markdown, but I don't regret leaving
01:56:53FromDiscord<ElegantBeef> without matrix supporting channeled voip i cannot reasonably suggest it to any of my friends... so here i am 😄
01:57:08FromDiscord<Rika> all my homies use discord xddd
01:57:11FromDiscord<Nerdie> ^^^
01:57:33FromDiscord<Rika> got no choice yo unless i want to have no friends
01:57:38FromDiscord<Nerdie> it's really easy to find communities on discord aswell
01:57:47FromDiscord<Nerdie> there is a discord for everything((
01:57:48FromDiscord<Nerdie> (edit) "everything((" => "everything"
01:57:52FromDiscord<ElegantBeef> Well element makes it easy to find communities aswell
01:58:01FromDiscord<ElegantBeef> It has an intergrated matrix search
01:58:02asdflkj_there's mumble for voip
01:58:14FromDiscord<ElegantBeef> Ah yes seperate applications
01:58:19FromDiscord<ElegantBeef> Just what all my friends want!
01:58:57asdflkj_I have lost contact with friends leaving discord but quality > quantity
01:59:53FromDiscord<ElegantBeef> I mean these are my friends that i went to highschool with, not like i'm going to abandon them over the merits of shitty software
02:00:35FromDiscord<Nerdie> man
02:00:38FromDiscord<Nerdie> i wanna make a discord hack
02:00:42FromDiscord<Nerdie> inject something into discord
02:00:45FromDiscord<Nerdie> fuck with it
02:01:43FromDiscord<ElegantBeef> Dude it's html + css injection is just playing with the DOM
02:02:00FromDiscord<Nerdie> wel
02:02:01FromDiscord<Nerdie> (edit) "wel" => "well"
02:02:02FromDiscord<Nerdie> true
02:02:10FromDiscord<Nerdie> man
02:02:11FromDiscord<Nerdie> https://nerdie.is-part-of-the.lgbt/​‌​​‌‌​​​‌‌​‌‌‌‌​‌‌‌​​​‌​‌‌​​‌​‌​​‌‌‌​​​​‌​​​​‌​​‌​​‌‌‌​​​‌‌​‌‌‌​‌​‌‌‌‌‌
02:02:19FromDiscord<Nerdie> 1440p at 240hz is so nice
02:03:37FromDiscord<Rika> im not rich enough to buy a 1440p 240hz monitor so i only have a 1440p 144hz one, though a really good one
02:04:20FromDiscord<ElegantBeef> I've got to 1080p 60hz 😄
02:04:22FromDiscord<ElegantBeef> (edit) "to" => "two"
02:04:38FromDiscord<ElegantBeef> So that's like 1/2 4k 120 hz right? 😛
02:04:51FromDiscord<Nerdie> In reply to @Rika "im not rich enough": i could've gotten a 1440p, 300hz lol
02:04:57FromDiscord<Nerdie> on a laptop
02:05:13FromDiscord<Rika> i mean i dont play games too often anymore so i dont know why i still went with a 144hz monitor
02:05:27FromDiscord<Rika> ig the games i do play sometimes are very sensitive to refresh rate anyway
02:06:04FromDiscord<Nerdie> i just think it looks nice
02:06:08FromDiscord<Nerdie> much easier on the eyes lol
02:11:59*vicfred quit (Quit: Leaving)
02:21:56*asdflkj_ quit (Ping timeout: 240 seconds)
02:43:31*Tanger joined #nim
02:46:18*Tanger quit (Client Quit)
02:48:15*Tanger joined #nim
03:13:04FromDiscord<Nerdie> stupid question but
03:13:13FromDiscord<Nerdie> can i import .nim files as if they were modules
03:13:18FromDiscord<Nerdie> like in python where you make a python file w/ functions
03:13:21FromDiscord<Nerdie> then import it into a main file
03:13:31FromDiscord<Nerdie> and if so how can i pack it all into a dll
03:15:37FromDiscord<Rika> uh all imports are just nim files
03:15:41FromDiscord<Rika> wdym
03:15:51FromDiscord<Rika> do you mean include?
03:16:41FromDiscord<Nerdie> well
03:16:42FromDiscord<Nerdie> like
03:16:46FromDiscord<Nerdie> i have a folder
03:16:51FromDiscord<Nerdie> w/ a main and then like
03:16:54FromDiscord<Nerdie> another file w/ procs
03:17:01FromDiscord<Nerdie> can i import the other file w/ the procs
03:17:02FromDiscord<ElegantBeef> In nim you have to export anything you want to access with ``
03:17:03FromDiscord<Nerdie> and use them in the main
03:17:05FromDiscord<ElegantBeef> Yes you can
03:17:07FromDiscord<Nerdie> oh
03:17:09FromDiscord<Nerdie> just like
03:17:12FromDiscord<ElegantBeef> `proc a = discard`
03:17:14FromDiscord<Nerdie> import file_with_procs?
03:17:21FromDiscord<ElegantBeef> `import modulename`
03:17:31FromDiscord<Nerdie> shit
03:17:34FromDiscord<Nerdie> cool
03:17:38FromDiscord<ElegantBeef> then anything exported can be access from that main file
03:17:39FromDiscord<Nerdie> when i compile it
03:17:44FromDiscord<Nerdie> (edit) "when i compile it ... " added "into my dll"
03:17:50FromDiscord<Nerdie> will it include it
03:18:00FromDiscord<ElegantBeef> I mean do you have access to anything else you've imported?
03:18:05FromDiscord<ElegantBeef> IE system and the like
03:18:08FromDiscord<Nerdie> like
03:18:13FromDiscord<ElegantBeef> The answer is yes
03:18:25FromDiscord<Nerdie> https://nerdie.is-part-of-the.lgbt/​​‌‌​​‌‌​‌​​​​‌​​‌‌​​‌​​​‌‌‌​​​‌​‌‌​​‌​‌​‌​‌​​​​​​‌‌​‌​‌​​‌‌​‌​​​‌​‌‌‌‌‌
03:18:28FromDiscord<Nerdie> i have this
03:18:28FromDiscord<ElegantBeef> If it didnt emit C code it'd be pointless
03:18:35FromDiscord<Nerdie> i import offsets in main
03:18:35FromDiscord<ElegantBeef> Read the tutorial
03:18:38FromDiscord<Rika> its included, but if you mean included as in accessible by external programs, you have to exportc them
03:18:40FromDiscord<ElegantBeef> I highly suggest reading the tutorial
03:18:43FromDiscord<Nerdie> i am lol
03:18:51FromDiscord<Nerdie> i'm just asking
03:18:53FromDiscord<ElegantBeef> https://nim-lang.org/docs/tut1.html#modules
03:21:46*wasted_youth2 quit (Quit: Leaving)
03:32:23*muffindrake quit (Ping timeout: 260 seconds)
03:33:48*muffindrake joined #nim
03:40:04FromDiscord<Rika> how do i securely wipe a string from memory?
03:42:06FromDiscord<Nerdie> you wash it with water
03:48:43FromDiscord<juan_carlos> zeroMem ?.
03:49:43FromDiscord<Rika> thats guaranteed to zero the memory? okay
03:50:03FromDiscord<flywind> or `setLen(0)` I guess
03:50:20FromDiscord<ElegantBeef> Does set len change the capacity?
03:50:30FromDiscord<ElegantBeef> I always forget 😄
03:50:42FromDiscord<flywind> I misread
03:51:03FromDiscord<ElegantBeef> Hey you can do that, that's my thing
03:51:16FromDiscord<Rika> "can" lol
03:51:23FromDiscord<flywind> s.setLen(0) + s.setLen(originalLen)
03:51:28FromDiscord<ElegantBeef> Lol
03:51:31FromDiscord<ElegantBeef> I cannot write
03:52:30FromDiscord<Nerdie> h
03:52:31FromDiscord<Nerdie> m
03:52:48leorize[m]@Rika you need to bind `explicit_bzero`
03:52:57FromDiscord<Nerdie> https://github.com/frk1/hazedumper
03:53:01FromDiscord<Nerdie> are there any ways i can just
03:53:06FromDiscord<Nerdie> haha copy paste into a .nim and be done with it
03:53:06leorize[m]all other methods might be optimized away by the compiler
03:53:17FromDiscord<Rika> okay
03:53:19FromDiscord<Nerdie> i wanna have csgo offsets
03:53:38FromDiscord<Rika> or i can use those provided by crypto libs right?
03:55:25leorize[m]@Rika yea
03:55:32FromDiscord<Rika> okay thanks
03:55:44FromDiscord<Rika> also yardanico the bot doesnt seem to be pinging properly
03:56:24*vicfred joined #nim
04:03:06*blackpawn quit (Quit: ZNC 1.7.2+deb3 - https://znc.in)
04:04:52*blackpawn joined #nim
04:15:31*rockcavera quit (Remote host closed the connection)
04:31:36*spiderstew_ joined #nim
04:33:48*spiderstew quit (Ping timeout: 260 seconds)
05:10:41*njoseph quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
05:10:48*njoseph joined #nim
05:57:09*haxscramper joined #nim
05:59:01*letto quit (Quit: Konversation terminated!)
06:02:31*letto joined #nim
06:11:38*waleee-cl quit (Quit: Connection closed for inactivity)
06:12:18*superbia1 is now known as superbia
06:28:58*narimiran joined #nim
06:37:14*phpostrich joined #nim
06:38:13phpostrichWhat's a good ide for nim?
06:41:17phpostrichI couldn't get NimEdit to work. I really like the language and want to get into it but I am not having much luck with ide plugins and whatnot.
06:42:28FromDiscord<ElegantBeef> The number one editor used is vscode
06:42:38FromDiscord<ElegantBeef> Jetbrains has a nim extension
06:42:45FromDiscord<ElegantBeef> Then finally you have emacs/vim
06:43:23FromDiscord<Nerdie> i've found the vscode nim
06:43:29FromDiscord<Nerdie> extension to be really good
06:43:40phpostrichYe its straight
06:43:50FromDiscord<Nerdie> like
06:43:54FromDiscord<Nerdie> i get most auto completion
06:43:54PrestigeI thought the JetBrains IDE for Nim wasn't great?
06:43:59FromDiscord<Nerdie> even get basic docstrings
06:44:21FromDiscord<ElegantBeef> I was going through the list of accessibillity
06:44:37FromDiscord<Rika> wdym accessibility
06:44:55phpostrichyeah, pop quiz. wtf does this mean "usr/lib/nim/system.nim(42, 3) Error: implementation of 'ptr' expected
06:44:56FromDiscord<ElegantBeef> As in what are the most easily to use
06:44:57phpostrich"
06:45:10PrestigeMakes sense
06:45:17FromDiscord<Rika> your install is fucked prolly
06:45:21FromDiscord<ElegantBeef> ^
06:45:40FromDiscord<Nerdie> In reply to @phpostrich "yeah, pop quiz. wtf": pointer
06:46:08phpostrichyeah ik what it stands for but how do i fix it
06:46:09FromDiscord<Nerdie> you're clearly referencing a null pointer
06:46:27FromDiscord<ElegantBeef> That's not a nil pointer exception
06:46:32FromDiscord<Nerdie> it clearly is
06:46:34phpostrichim not trying to compile and run my own sh**
06:46:41phpostrichNimEdit
06:46:46phpostrichim trying to run it
06:46:51phpostrichbut no luck :<
06:46:53FromDiscord<ElegantBeef> !eval var a: ptr int; echo a[]
06:46:55NimBotTraceback (most recent call last)↵/usercode/in.nim(1) in↵SIGSEGV: Illegal storage access. (Attempt to read from nil?)
06:47:03FromDiscord<ElegantBeef> That's a nill pointer exception
06:47:07FromDiscord<Nerdie> no
06:47:08FromDiscord<Nerdie> its not
06:47:10FromDiscord<Nerdie> that means
06:47:13FromDiscord<Nerdie> your nim install
06:47:14FromDiscord<Nerdie> is wrong
06:47:31FromDiscord<Nerdie> sent a code paste, see https://play.nim-lang.org/#ix=2QMo
06:47:32FromDiscord<Nerdie> is it gonna
06:47:35FromDiscord<Nerdie> what is it doing
06:47:38FromDiscord<Rika> no
06:47:38phpostrichive reinstalled three different operating systems trying to get that to work
06:47:40FromDiscord<Rika> it wont work
06:47:41FromDiscord<ElegantBeef> Nimedit is old deprecated software afaik
06:47:43FromDiscord<Nerdie> WHY
06:47:44FromDiscord<Rika> eval works on irc
06:47:48FromDiscord<Nerdie> bruh
06:47:48FromDiscord<Rika> irc has no line breaks
06:47:50phpostrichThree different linux one
06:47:52FromDiscord<Nerdie> oh
06:47:53FromDiscord<haxscramper> !eval echo "test"
06:47:55NimBottest
06:47:57FromDiscord<Nerdie> lol
06:47:58FromDiscord<haxscramper> Only for single-line messages
06:48:01FromDiscord<Nerdie> oh
06:48:04FromDiscord<Nerdie> thats stupid
06:48:07FromDiscord<Rika> use play.nim-lang.org
06:48:08FromDiscord<Nerdie> why not have a bot that evals
06:48:09FromDiscord<haxscramper> t
06:48:10FromDiscord<Nerdie> yeah ik
06:48:12FromDiscord<Nerdie> but discord
06:48:18FromDiscord<haxscramper> https://play.nim-lang.org/
06:48:19FromDiscord<Rika> because most people dont use discord
06:48:21FromDiscord<ElegantBeef> Cause the bot is on the irc side
06:48:30phpostrichDoes anyone run linux?
06:48:34PrestigeI do
06:48:34FromDiscord<ElegantBeef> Yes i do
06:48:39FromDiscord<haxscramper> I do
06:48:44FromDiscord<Nerdie> eww
06:48:45FromDiscord<ElegantBeef> Most nim programmers do
06:48:45phpostrichNim works alright for you?
06:48:49FromDiscord<ElegantBeef> Yea
06:48:49FromDiscord<Nerdie> linux
06:48:50FromDiscord<Nerdie> gaer
06:48:51FromDiscord<Rika> what is this, wedding vows?
06:48:51FromDiscord<Nerdie> (edit) "gaer" => "gae"
06:48:54PrestigeYep works great
06:48:56phpostrichIve been having like so many problems
06:49:08FromDiscord<ElegantBeef> Did you use your package manager or install using choosenim?
06:49:09FromDiscord<Rika> nim's been running swell for me as well
06:49:10PrestigeRika: We're all married now
06:49:12FromDiscord<ElegantBeef> If the former, use choosenim
06:49:13narimiranphpostrich: `nim -v` ?
06:49:29phpostrichholup...
06:49:34FromDiscord<ElegantBeef> My money is that they have an outdated nim version 😄
06:49:41phpostrichNim Compiler Version 1.4.2 [Linux: amd64]
06:49:47FromDiscord<ElegantBeef> The fuck
06:49:58phpostrichisnt the newest like 1.4.4
06:50:05Prestigemaybe broken install?
06:50:06FromDiscord<Rika> thats one version off innit
06:50:12FromDiscord<Rika> its not much
06:50:21narimiranphpostrich: yeah, you're ok with 1.4.2, we thought you might be on 0.19 or sth like that
06:50:40phpostrichi just did "apt install nim" on a fresh install of debian buster
06:50:51FromDiscord<Nerdie> would i be able to make a nim ide in like c#?
06:50:58FromDiscord<Rika> oh how fun, i'm having concept issues
06:51:01FromDiscord<Rika> wonderful
06:51:06FromDiscord<ElegantBeef> New or old?
06:51:06phpostrichYou can make an ide in anything
06:51:11FromDiscord<Rika> old concepts
06:51:18FromDiscord<Nerdie> In reply to @phpostrich "You can make an": batch
06:51:19narimiran@Rika using concepts. there's your issue. :P
06:51:22FromDiscord<Nerdie> (edit) "batch" => "batch"
06:51:33FromDiscord<Rika> what do you want me to do, concepts are such a nice... concept
06:51:39narimiran:)
06:52:12phpostrichI wanted to make a nim ide using dart/flutter. I might do that now ig.
06:52:46PrestigeHow about writing it in Nim?
06:52:55FromDiscord<Nerdie> hm
06:52:58FromDiscord<Nerdie> a nim ide
06:53:03FromDiscord<Nerdie> made in nim?
06:53:07FromDiscord<ElegantBeef> Radical idea
06:53:08FromDiscord<Nerdie> hey y
06:53:17narimiranhow about giving saem and co. a hand and work on improving nimsuggest/vscode?
06:53:22FromDiscord<Nerdie> (edit) "y" => "y'all how would i like start my gui and shit w/ this?↵https://play.nim-lang.org/#ix=2QMq"
06:53:34FromDiscord<Nerdie> also still unable to make a 32 bit dll
06:55:09FromDiscord<Rika> `Error: cannot instantiate DiskCache, got: <typedesc[LruStrategy]>, but expected: <S: Strategy>`
06:55:11FromDiscord<Rika> maaaaaaan
06:55:34FromDiscord<Rika> `echo LruStrategy is Strategy` says `true` as well... no clue whats the issue
06:55:40phpostrichI just found out about nim last night. So I am going to leave this and maybe come back when my brain is bigger. Bye :)
06:56:06FromDiscord<Nerdie> goodbye
06:56:55FromDiscord<Nerdie> could anyone help me w/ my issue?
07:03:38*krux02 joined #nim
07:15:10*zedeus joined #nim
07:27:55*phpostrich quit (Remote host closed the connection)
07:40:39*phpostrich joined #nim
07:56:03*qwr quit (Ping timeout: 244 seconds)
07:58:41*phpostrich quit (Quit: phpostrich)
08:00:38*phpostrich joined #nim
08:01:50*krux02` joined #nim
08:12:08*phpostrich quit (Quit: phpostrich)
08:16:39*phpostrich joined #nim
08:17:18FromDiscord<flywind> can I open a file with `O_EXCL` flags like Python?
08:17:27FromDiscord<flywind> https://docs.python.org/3/library/functions.html#open
08:17:51*krux02` is now known as krux02_
08:22:14FromDiscord<flywind> I don't want to use `fileExists` which is more likely to race. I want to open a file when the file already exists then the procs should error.
08:24:28krux02_@flywind: doesn't look like it exists.
08:25:04krux02_seems to me like a useful flag for file creation
08:25:26FromDiscord<flywind> I see, thanks
08:26:04FromDiscord<hamidb80> channels are removed?
08:26:26FromDiscord<ElegantBeef> Channels still exist
08:27:05FromDiscord<hamidb80> In reply to @ElegantBeef "Channels still exist": in which module?
08:27:16FromDiscord<ElegantBeef> `channels`
08:27:38FromDiscord<ElegantBeef> You dont import it directly though
08:27:41FromDiscord<ElegantBeef> as the docs mention
08:28:18FromDiscord<flywind> c11 begins to support exclusive file open
08:28:19FromDiscord<flywind> https://en.cppreference.com/w/c/io/fopen
08:28:50FromDiscord<flywind> > File access mode flag "x" can optionally be appended to "w" or "w+" specifiers. This flag forces the function to fail if the file exists, instead of overwriting it. (C11)
08:29:27FromDiscord<hamidb80> `undeclared identifier: 'Channel'` vscode says.↵but the code complies successfully!
08:29:38FromDiscord<hamidb80> (edit) "complies" => "compiles"
08:29:47FromDiscord<ElegantBeef> Well vscode doesnt know if you're compiling with the `--threads:on`
08:30:05FromDiscord<ElegantBeef> Make a config file and put it in their and vscode will be happy
08:30:13FromDiscord<ElegantBeef> (edit) "their" => "thetr"
08:30:19FromDiscord<ElegantBeef> Jesus i cannot hit keys
08:38:35*PMunch joined #nim
08:39:34FromDiscord<hamidb80> why using `channels` with `spawn` is a bad idea?
08:46:46FromDiscord<mratsim> ?
08:46:56FromDiscord<mratsim> what's the point of channels without spawn?
08:48:43FromDiscord<hamidb80> However, The Nim creator Andreas Rumpf said using Spawn/Channels is a bad idea and channels are meant to be used with Threads, So I tried to move it to threads↵↵https://xmonader.github.io/nim/2018/12/06/nim-good-ok-hard.html
08:48:53FromDiscord<hamidb80> (edit) "However," => ""However," | "threads↵↵https://xmonader.github.io/nim/2018/12/06/nim-good-ok-hard.html" => "threads"↵↵https://xmonader.github.io/nim/2018/12/06/nim-good-ok-hard.html"
08:49:12FromDiscord<hamidb80> (edit) ""However," => "> However,"
08:49:39FromDiscord<hamidb80> (edit) "Spawn/Channels" => "`Spawn/Channels`" | "channels" => "`channels`" | "Threads," => "`Threads`," | "threads"↵↵https://xmonader.github.io/nim/2018/12/06/nim-good-ok-hard.html" => "`threads`"↵↵https://xmonader.github.io/nim/2018/12/06/nim-good-ok-hard.html"
08:49:46FromDiscord<hamidb80> (edit) "Andreas Rumpf" => "`Andreas Rumpf`"
08:49:54FromDiscord<hamidb80> (edit) "bad idea" => "bad idea"
08:50:39FromDiscord<mratsim> Ah I see.
08:51:15FromDiscord<hamidb80> so why it's a bad idea?
08:52:11FromDiscord<mratsim> no idea. In general I write my own threading and channels solutions 😉
08:52:25*tane_ joined #nim
09:15:17FromDiscord<Nerdie> can someone tell me how they compile stuff to 32 bit?
09:15:17FromDiscord<Nerdie> i can't seem to get nim to do it
09:15:17FromDiscord<Nerdie> i have installed 32 bit nim
09:15:20FromDiscord<Nerdie> w/ the 32bit mingw
09:15:24FromDiscord<Nerdie> but it just yells at me
09:16:57*idf joined #nim
09:17:45kaletaa@Nerdie read the fucking manual
09:17:49kaletaafithy windows user
09:18:12FromDiscord<Nerdie> i fucking did
09:18:15FromDiscord<Nerdie> it yells at me
09:18:30FromDiscord<Nerdie> it says the path provided doesn't exist
09:18:47PMunchWhat is the actual error?
09:18:56PMunchAnd kaletaa, don't be rude
09:19:14kaletaathe recent influx of new """friends""" is quite annoying
09:19:25PMunchHuh?
09:20:40PMunch@Nerdie, first of you can't run 32bit Nim on a 64bit machine
09:20:49PMunchSo go ahead and install 64bit Nim
09:21:00PMunchAnd 64bit mingw
09:21:07PMunchAssuming you are on a 64bit machine
09:22:45PMunchThen you probably need something like `nim c --cpu:i386 --passC:"-m32" --passL:"-m32" --gcc.exe:"i686-w64-mingw32-gcc" --gcc.linkerexe:"i686-w64-mingw32-gcc" myfile.nim
09:22:58PMunchOf course you can put those into a nim.cfg file
09:23:23PMunchAnd put them behind a define conditional
09:23:50PMunchSo you can just do something like `nim c -d:arch32 myfile.nim`
09:26:08*lbart quit (Ping timeout: 256 seconds)
09:27:13krux02kaletaa, what do you mean with """friends"""
09:27:33kaletaanewfags but i said friends instead of fags because dom would rape me
09:27:39kaletaawhoops i said the word
09:28:02FromDiscord<Solitude> D:
09:28:06kaletaaD:
09:28:41krux02kaletaa, you seem to miss the point that this chat is for newcomers.
09:29:08krux02Don't get me wrong, I am not against insults, but I think insulting people for being new isn't helping anyone.
09:29:37Clonkk[m]Also missing the point that everybody was a beginner at some point. Gatekeeping a programming language is a ridiculous, ego-driven attitude that is counter productive.
09:29:51krux02^ yes
09:30:28krux02also here are the people who write the documentation. I personally see this chat as a feedback loop if the documentation is good enugh.
09:30:39krux02constant questions are probably handled badly in the documentation.
09:31:17FromDiscord<Solitude> documentation is never good enough, there will always be a person who just refuses to read
09:31:58PMunchBut if there are a lot of questions about a certain topic that's an indicator that that part of the documentation might be worse than the rest
09:31:58krux02Well you can give up right there, or try.
09:32:09krux02PMunch, yes
09:32:32FromDiscord<Yardanico> @PMunch no matter how good documentation is there always will be people who ask a lot of questions
09:33:01Clonkk[m]It's easy to get lost in a sea of information you haven't processed yet
09:33:04PMunchAnd kaletaa, please behave. As the others have pointed out just insulting people for being new isn't okay. And try to not use such divisive language in the official Nim channels.
09:33:28FromDiscord<Yardanico> Because, as you might know, nowadays people prefer the "just search it" approach instead of reading proper documentation
09:33:43FromDiscord<Yardanico> But that method only works for popular languages
09:33:52FromDiscord<Solitude> In reply to @Yardanico "Because, as you might": people prefer "just ask in chat" approach
09:34:08Clonkk[m]<FromDiscord "<Solitude> In reply to @Yardanic"> And what's wrong with that ?
09:34:26idfI dont know how to read so i dont use documentation a lot
09:34:35Clonkk[m]Isn't that the whole point of open communication channel ?
09:34:48FromDiscord<Solitude> nothing, its just an indicator
09:35:07FromDiscord<Nerdie> well
09:35:25FromDiscord<Yardanico> @Clonkk yes that's true, but it would be better if people didn't ask a single question in 6 messages if you understand what I mean :)
09:36:23FromDiscord<Nerdie> well
09:37:06FromDiscord<Nerdie> damn
09:37:22Clonkk[m]<FromDiscord "<Yardanico> @Clonkk yes that's t"> I'm on a Matrix. I know exactly what you mean 😛. Every message edited in discord becomes a novel for me. But it's not always easy to ask question clearly in one go especially in real time chat
09:37:26krux02I think it is fine to ask a question in 6 messages in a row.
09:37:31Clonkk[m]> <@freenode_FromDiscord:matrix.org> <Yardanico> @Clonkk yes that's true, but it would be better if people didn't ask a single question in 6 messages if you understand what I mean :)
09:37:31Clonkk[m] * I'm on Matrix/ Element. I know exactly what you mean 😛. Every message edited in discord becomes a novel for me. But it's not always easy to ask question clearly in one go especially in real time chat
09:37:33FromDiscord<Nerdie> sent a long message, see http://ix.io/2QN8
09:37:54FromDiscord<Solitude> In reply to @Nerdie "`nim c --cpu:i386 --passC:"-m32"": your mingw is probably not in PATH
09:38:06FromDiscord<Solitude> or no, its
09:38:08FromDiscord<Solitude> (edit) "its" => "it is"
09:38:09FromDiscord<Nerdie> it is
09:38:15FromDiscord<Nerdie> cant see it there
09:38:16FromDiscord<Nerdie> but it's there
09:38:30PMunchMight it be called something else?
09:38:36FromDiscord<Nerdie> not sure
09:38:42FromDiscord<Nerdie> haven't changed anything abt my nim install
09:38:47FromDiscord<Solitude> is that file actually there?
09:38:54krux02I am on IRC and edits are posted as extra (edit) messages
09:38:55PMunchI just copied that from my cross-compile build script, so the names are whatever they are called on my Linux machine
09:39:00FromDiscord<Nerdie> i have a few ideas
09:39:07FromDiscord<Nerdie> on what might be making it not work
09:39:22krux02so the original messages always stays the same it just follows the convention the people on IRC follow anyway if they can't edit their past messages.
09:39:45PMunchI mean do you have a file called: C:\Program Files\nim-1.4.4\dist\mingw64\bin\i686-w64-mingw32-gcc.exe
09:40:02PMunchkrux02, yeah edit messages are just confusing
09:40:03FromDiscord<Nerdie> alright
09:40:12idfi am on irc and half of the text is covered in funny symbols my client wont decode because of discord formatting
09:40:19FromDiscord<Nerdie> i don't have a file called i686-w65-blahblahblah
09:40:20kaletaaworks on my machine
09:40:28PMunchI can see them in the case of editing a typo in the last sent message, but anything else is just confusing
09:40:30FromDiscord<Nerdie> (edit) "i686-w65-blahblahblah" => "i686-w64-blahblahblah"
09:40:36PMunchBecause you need to re-read arbitrary messages in the log
09:40:52FromDiscord<Nerdie> so yeah
09:40:54FromDiscord<Nerdie> i don't have that file
09:40:57FromDiscord<Nerdie> why
09:41:02PMunchidf, I'm on IRC as well and it works fine
09:41:04krux02idf, what about italic bold underline 2colored text?
09:41:11PMunch@Nerdia, how did you install MinGW?
09:41:19kaletaawhat client are you using idf
09:41:19FromDiscord<Nerdie> i just installed nim
09:41:22FromDiscord<Nerdie> legit just nim
09:41:27FromDiscord<Nerdie> clicked 64 bit download
09:41:32FromDiscord<Nerdie> put it in program files
09:41:36FromDiscord<Nerdie> ran finish.exe as admin
09:41:39FromDiscord<Nerdie> a few times
09:41:55PMunchSo you don't actually have a C compiler that is able to cross-compile?
09:42:10FromDiscord<Nerdie> um
09:42:11krux02idf, I think your IRC client just laks the ability to interpret officially documented escape charactors for font styles and coloring
09:42:11kaletaashouldn't it be included?
09:42:12FromDiscord<Nerdie> no i guess
09:42:17idfhttps://0x0.st/-Kox.png
09:42:21PMunch(Sorry I don't really know what `finish.exe` does as I've never really used Nim on Windows)
09:42:27kaletaaamazing client idf
09:42:33FromDiscord<Nerdie> it just installs nim lol
09:42:34kaletaano sane person does anything on windows
09:42:42FromDiscord<Nerdie> installs 64 bit mingw
09:42:42Clonkk[m]Starts by making sure you can compile C code with minGW, you can make a simple hello world in C and call gcc.exe on it just to make sure your system installation of minGW is correct.
09:42:45FromDiscord<Nerdie> i do mostly gaming
09:42:53kaletaayeah i noticed
09:42:54FromDiscord<Nerdie> and fuck linus
09:42:55FromDiscord<Nerdie> (edit) "linus" => "linux"
09:42:58kaletaauser issue
09:43:06FromDiscord<Nerdie> just don't like it
09:43:12kaletaayou're too retarded to like it
09:43:20FromDiscord<Nerdie> what the fuck is your issue
09:43:21PMunchkaletaa, behave
09:43:22krux02idf, I literally inserted those weired symbols in my text and my IRC client then interprets them for formatting.
09:43:23kaletaaok mom
09:43:43idfERC is supposed to parse those but it doesnt
09:43:46FromDiscord<Nerdie> In reply to @Clonkk "Starts by making sure": i can compile things
09:43:48idfi just got used to it and i redraw it in my mind
09:43:51FromDiscord<Nerdie> i've compiled a dll
09:43:52krux02idf, https://modern.ircdocs.horse/formatting.html
09:43:54FromDiscord<Nerdie> just not a 32 bit one
09:44:00kaletaaidf bro why are you using emacs as an OS
09:44:02krux02yea edf doesn't parse them properly
09:44:06FromDiscord<Nerdie> my target application is 32 bit
09:44:10krux02It doesn't parse italic at all as far as I know
09:44:18Clonkk[m]<FromDiscord "<Nerdie> In reply to @Clonkk "St"> Can you compile C code in 32 bit ?
09:44:43FromDiscord<Nerdie> nope
09:44:48FromDiscord<Nerdie> it always yells at me
09:44:51FromDiscord<Nerdie> with an error
09:44:56FromDiscord<Nerdie> that should've been fixed by installing 32 bit nim
09:45:03FromDiscord<Nerdie> but nope
09:45:04PMunch@Nerdie, I think you need a special MinGW version for 32-bit compilation on a 64-bit machine
09:45:20*NimBot joined #nim
09:45:22FromDiscord<Nerdie> thats why i installed 32 bit nim
09:45:23PMunchAnd no 32-bit Nim is for compiling Nim programs on a 32-bit machine
09:45:24kaletaajust use hexchat bro
09:45:32Clonkk[m]Nim generate C code and then calls C compiler. If your system can't compile C code, Nim can't compile C code.
09:45:40FromDiscord<Nerdie> it can compile things
09:45:43FromDiscord<Nerdie> just not 32 bit things
09:45:58FromDiscord<Nerdie> the way i've been testing my dll is by compiling it then just injecting into notepad
09:46:04PMunchAs I said, I think you need a special version of MinGW that is able to cross compile to 32-bit
09:46:04Clonkk[m]So you're looking to cross compile 32 bit program on a 64bit architecture
09:46:06FromDiscord<Nerdie> because i can't make it 32 bit to inject into csgo
09:46:08krux02_idf, I am on ERC right now and except for italic escape symbols, it works
09:46:12FromDiscord<Nerdie> In reply to @Clonkk "So you're looking to": yep
09:46:24FromDiscord<Nerdie> that is my goal
09:46:27Clonkk[m]You don't need a 32 bit version of stuff, you need a 64 bit version (because your machine is 64 bit) that do cross compilation
09:46:32idfweird
09:46:40FromDiscord<Nerdie> mingw can't do cross compilation?
09:46:50krux02_idf: I think EDF should be at least able to filter out all those escape charactors for you without interpreting them at all.
09:46:50Clonkk[m]No idea, I'ver never used it
09:46:53PMunchYes, MinGW can do cross compilation, but you need the right version..
09:46:54Clonkk[m]It probably can
09:47:01Clonkk[m]But as @PM
09:47:03FromDiscord<Nerdie> what version do i need lol
09:47:10Clonkk[m] * But as @PMunch said, right version
09:47:24FromDiscord<Nerdie> which version
09:48:02PMunchApparently not the version finish.exe installs :P
09:48:13FromDiscord<Nerdie> well
09:48:16PMunchI guess it just grabs the one for the architecture you're on
09:48:17FromDiscord<Nerdie> thats very helpful.
09:48:30FromDiscord<Nerdie> i can install the 32 bit version of mingw
09:48:32PMunchThis one should be the one you need: https://sourceforge.net/projects/mingw-w64/
09:48:36FromDiscord<Nerdie> oh
09:48:37FromDiscord<Nerdie> thanks lol
09:48:40FromDiscord<Nerdie> question
09:48:45PMunchAgain, you can't run the 32-bit version of MinGW
09:48:46FromDiscord<Nerdie> how do i make nim use that
09:48:50FromDiscord<Nerdie> well
09:48:51FromDiscord<Nerdie> yeah
09:49:00PMunchYou need a 64-bit version of MinGW that is able to produce 32-bit binaries
09:49:08FromDiscord<Nerdie> alright
09:49:12FromDiscord<Nerdie> which this seems to be able to do
09:49:16FromDiscord<Nerdie> but how do i make nim use this
09:49:17kaletaai'm glad i no longer use windows
09:49:24FromDiscord<Solitude> In reply to @Nerdie "how do i make": delete whatever mingw you had and just normally install this
09:49:39FromDiscord<Nerdie> where the fuck do i put this
09:49:42kaletaaseems like a pain in the ass
09:49:43PMunchYou install it somewhere and then use the --gcc.exe and --gcc.linkerexe flags that I showed you earlier
09:49:43PMunchkaletaa, this is just as much of a pain on Linux
09:49:43PMunchPossibly even more, I had to compile MinGW on my machine..
09:49:51PMunchAnywhere
09:49:57kaletaai mean crosscompiling to windows is painful everywhere
09:49:58FromDiscord<Solitude> In reply to @Nerdie "where the fuck do": doesnt matter, you should just add it to PATH
09:50:07FromDiscord<Nerdie> WHAT DO I ADD TO PATH
09:50:13FromDiscord<Solitude> bin directory
09:50:14PMunchOr give --gcc:exe the full path
09:50:16FromDiscord<Nerdie> https://nerdie.is-part-of-the.lgbt/​‌‌​​‌‌​​‌‌​‌​​‌​​‌‌‌​​‌​​‌‌​‌‌​​‌‌​‌​​​​‌​​‌​‌‌​​‌‌​​‌‌​‌‌​‌​​‌​‌​‌‌‌‌‌
09:50:24FromDiscord<Nerdie> i don't see a bin here
09:50:24kaletaauc skid moment
09:50:27kaletaajust paste the image
09:50:37FromDiscord<Nerdie> no
09:50:40FromDiscord<Nerdie> i like using pays.hsot
09:50:42FromDiscord<Nerdie> (edit) "pays.hsot" => "pays.host"
09:50:47kaletaa"i like being retarded"
09:50:52kaletaaok i stop
09:50:56kaletaadont snap at me PMunch
09:50:59FromDiscord<Nerdie> "i like being an asshole to beginners"
09:51:14kaletaaI mean, you're trying to write a CS:GO cheat
09:51:18kaletaanot really a beginner's project
09:51:27liblq-devthe more i see this community tumble downhill like this the more i want to quit this channel
09:51:31*idf left #nim ("ERC (IRC client for Emacs 27.1)")
09:51:37FromDiscord<Solitude> In reply to @Nerdie "i don't see a": can you search?
09:51:42*idf joined #nim
09:51:43FromDiscord<Nerdie> In reply to @Solitude "can you search?": no
09:51:47FromDiscord<Solitude> amazing
09:51:54FromDiscord<Nerdie> there isn't a bin lmao
09:51:54idffellas, i have fixed my erc
09:52:01krux02idf, yay
09:52:05krux02can you share with me?
09:52:06kaletaagreat job, idfren
09:52:07FromDiscord<Solitude> you probably downloaded srouce instead of compiled release
09:52:11FromDiscord<Nerdie> man
09:52:16krux02I am interested in fixing it for myself as well
09:52:20FromDiscord<Nerdie> this is a lot of goddamn work
09:52:24FromDiscord<Nerdie> just to make a dll
09:52:27FromDiscord<Araq> In reply to @liblq-dev "the more i see": yeah, agreed
09:52:27kaletaaidf, does it actually render stuff
09:52:33krux02I want to use emacs for more things including chatting
09:52:40FromDiscord<Solitude> In reply to @Nerdie "this is a lot": yes, that why i stick with painting, programming sucks
09:52:42kaletaaor does it just strip
10:03:35*NimBot joined #nim
10:03:42*mwbrown_ is now known as mwbrown
10:03:43*Amun_Ra_ is now known as Amun_Ra
10:03:55*FromDiscord joined #nim
10:04:12FromDiscord<Nerdie> like `nim compile cc:vcc app:lib --NoMain --cpu:i386 path to file here`?
10:04:34FromDiscord<mratsim> --cc:vcc
10:04:44PMunchAraq, fair enough, I'll be more pro-active with my kicks in the future
10:04:44FromDiscord<Nerdie> ah
10:04:48FromDiscord<Nerdie> sorry lol
10:04:53FromDiscord<Nerdie> so yeah --
10:04:56PMunchAnd --app:lib
10:04:56FromDiscord<mratsim> I don't know how MSVC does cross compilation though
10:05:02FromDiscord<Nerdie> In reply to @mratsim "I don't know how": it does.
10:05:21PMunchAnd can NoMain be capitalised like that?
10:05:37FromDiscord<Nerdie> yep
10:05:41FromDiscord<Nerdie> idk what it does lol
10:06:02AraqPMunch, we need to be stricter, it's going downhill.
10:06:35PMunch@Nerdie, it means your program won't have a main() procedure. Which is often the case with DLLs
10:06:36FromDiscord<Nerdie> well
10:06:40FromDiscord<Nerdie> oooh
10:06:42FromDiscord<Nerdie> wait
10:06:44FromDiscord<Nerdie> did it just
10:06:44FromDiscord<Nerdie> fucking
10:06:46FromDiscord<Nerdie> compile
10:06:47FromDiscord<Nerdie> a 32 bit dll?
10:06:49FromDiscord<Nerdie> nope nvm
10:06:54FromDiscord<Nerdie> `nim compile --cc:vcc --app:lib --NoMain --cpu:i386 main.nim`
10:06:58FromDiscord<Nerdie> Error: execution of an external compiler program 'vccexe.exe /c --platform:x86 /nologo /I"C:\Program Files\nim-1.4.4\lib" /I"C:\Users\Server\Desktop\nim projects\73hz" /nologo /FoC:\Users\Server\nimcache\main_d\@mmain.nim.c.obj C:\Users\Server\nimcache\main_d\@mmain.nim.c' failed with exit code: 2
10:06:58FromDiscord<Nerdie> god
10:07:00FromDiscord<Nerdie> this sucks
10:07:07FromDiscord<Nerdie> it looked like it was gonna work
10:07:09PMunchHaha, what a wild ride that was. But try not spam lines like that :P
10:07:18FromDiscord<Nerdie> i was just pasting my error
10:07:42FromDiscord<Solitude> In reply to @Nerdie "i was just pasting": hes talking about you writing a word per message.
10:07:47PMunchI was talking about the nine lines before that :P
10:07:48FromDiscord<Nerdie> oh
10:08:00FromDiscord<Nerdie> sorry
10:08:12PMunchNo worries
10:08:12FromDiscord<Nerdie> but can ANYONE help me with my error
10:08:31FromDiscord<Nerdie> i've got no idea why it just doesn't wanna compile
10:08:37FromDiscord<Nerdie> i just wanna make a dll to inject into csgo
10:08:39PMunchHmm, unfortunately I think you need someone a bit more versed with VCC to help you with that one..
10:08:49FromDiscord<Nerdie> well
10:08:52FromDiscord<Nerdie> what other compilers are there
10:08:53PMunchI've only done cross compilation with MinGW
10:08:57FromDiscord<Nerdie> what else can i just throw at it
10:09:03FromDiscord<Nerdie> how'd you do cross compilation?
10:09:12PMunchLike I told you earlier
10:09:14FromDiscord<hamidb80> > Note: Channels are designed for the Thread type. They are unstable when used with spawn
10:09:14FromDiscord<Solitude> either you research how to install mingw properly or you're stuck
10:09:27FromDiscord<Nerdie> i've installed mingw
10:09:35PMunchThe correct version?
10:09:35FromDiscord<Nerdie> i tried installing the bs fucking sourceforge thing
10:09:37FromDiscord<Nerdie> idfk
10:09:41FromDiscord<Nerdie> whatever installs w/ nim
10:09:46FromDiscord<Nerdie> and lets me compile 64 bit things
10:09:53FromDiscord<hamidb80> In reply to @hamidb80 "> Note: Channels are": what does `unstable` exactly mean
10:09:56PMunchThat includes i686-mingw-w64 thingy?
10:10:01FromDiscord<Nerdie> nope
10:10:06FromDiscord<Nerdie> im not sure why thats not there
10:10:12FromDiscord<Nerdie> can you just send me the exe or somethinggg
10:10:19PMunchBecause 95% of people don't need it
10:10:23PMunchSo for those it's just bloat
10:10:35FromDiscord<hamidb80> (edit) "mean" => "mean?"
10:10:38FromDiscord<Nerdie> omfg
10:10:45FromDiscord<Nerdie> where do i get the exe
10:10:51PMunchI mean I could certainly go scouring the internet for a binary distribution of MinGW, but so could you
10:10:58PMunchI'm just a friendly stranger, not you butler
10:11:00FromDiscord<Nerdie> i couldn't find one
10:11:03FromDiscord<Nerdie> i know lol
10:11:15FromDiscord<Nerdie> but i couldn't find a binary distro of mingw
10:11:21PMunchMight be that there aren't any binary distributions, I had to compile from source on Linux I think
10:11:31FromDiscord<Nerdie> i really dont wanna do that
10:12:15FromDiscord<Solitude> can you try installing this? https://sourceforge.net/projects/mingw-w64/
10:12:23FromDiscord<Nerdie> thats what i installed
10:12:40FromDiscord<Nerdie> you've linked that before
10:12:53FromDiscord<Solitude> no, i didnt link anything
10:12:56FromDiscord<Nerdie> someone linked that
10:12:58FromDiscord<Solitude> an it was another link
10:13:05FromDiscord<Nerdie> its the same thing
10:13:08PMunchI linked something
10:13:10FromDiscord<Solitude> no, it isnt
10:13:23FromDiscord<Nerdie> im going to yell at you if its the same fucking thing
10:13:31FromDiscord<Solitude> In reply to @Nerdie "im going to yell": you are welcome
10:13:31FromDiscord<Araq> @hamidb80 the problem is that `spawn` can block and programms that use channels usually assume that it cannot block
10:13:34PMunchIt's the same thing I told him to install
10:13:40PMunchBut that's the source repo
10:13:44PMunchSo you need to build it
10:13:51FromDiscord<Nerdie> oh man
10:13:54FromDiscord<Nerdie> guess what it is
10:14:05FromDiscord<Nerdie> how do i compile this bs
10:14:07FromDiscord<Nerdie> just for a single exe
10:15:24PMunchThis might be what you need: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/download
10:16:26FromDiscord<Araq> @Nerdie if you're on Windows, install a 32 bit Nim and compile a DLL. No need for a cross compile then.
10:16:39FromDiscord<Nerdie> DUDE
10:16:41FromDiscord<Nerdie> THESE MFS
10:16:43FromDiscord<Nerdie> KEEP SAYING
10:16:53FromDiscord<Nerdie> "THAT WONT WORK 64 BIT DOESN'T EQUAL 32 BIT"
10:17:05PMunchWait what?
10:17:12PMunchDoes that work Araq?
10:17:13FromDiscord<Nerdie> people were saying
10:17:16FromDiscord<Nerdie> it should
10:17:22FromDiscord<Nerdie> i saw a stackoverflow article on it
10:17:25*Vladar joined #nim
10:17:29FromDiscord<Nerdie> i was being small brain when i tried it
10:17:33FromDiscord<Nerdie> but i think it might work
10:17:41PMunchMy bad then.. I had no idea that was a thing..
10:17:42FromDiscord<Nerdie> man
10:17:49FromDiscord<Araq> it does work, I did it successfully...
10:17:51FromDiscord<Nerdie> i don't wanna play with nim anymore
10:18:30FromDiscord<Nerdie> i wanna play with python
10:18:33FromDiscord<Nerdie> and never switch
10:18:34FromDiscord<Nerdie> python just works
10:18:45FromDiscord<hamidb80> please be patient
10:18:48FromDiscord<Nerdie> im installing mingw
10:18:52FromDiscord<Nerdie> just
10:18:53FromDiscord<Nerdie> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
10:18:57FromDiscord<hamidb80> python sucks at threading
10:19:01FromDiscord<Nerdie> python is the shit
10:19:03FromDiscord<Nerdie> it just fucking works
10:19:09FromDiscord<Nerdie> no need for like 50 c compilers
10:19:25FromDiscord<Solitude> tell em, dude
10:19:54narimirangoodbye @Nerdie, we will miss you very much
10:20:09FromDiscord<Nerdie> alright
10:20:14FromDiscord<Nerdie> i've installed mingw
10:20:18FromDiscord<Nerdie> what next
10:20:21FromDiscord<Nerdie> do i add the bin to path?
10:20:27FromDiscord<Solitude> yas
10:20:33FromDiscord<Araq> run finish.exe but beware
10:20:41FromDiscord<Nerdie> no
10:20:44FromDiscord<Nerdie> not finish.exe
10:20:51FromDiscord<Nerdie> i installed mingw binaries
10:21:08FromDiscord<Araq> that you have a clean %PATH% environment variable
10:22:39FromDiscord<Araq> but you can also simply use Python to create a 32 bit DLL, totally fair comparison
10:22:47FromDiscord<Nerdie> WHAT THE FUCK
10:22:49FromDiscord<Nerdie> HOW D
10:22:54FromDiscord<Nerdie> (edit) "D" => "DO I MAKE A DLL IN FUCKING PYTHON"
10:23:05FromDiscord<Araq> nobody knows but it just works
10:23:37FromDiscord<Nerdie> i give upo
10:23:38FromDiscord<Nerdie> (edit) "upo" => "up"
10:23:41FromDiscord<Nerdie> anyway
10:23:41narimiranagain?
10:23:44FromDiscord<Nerdie> do i add my new mingw
10:23:48FromDiscord<Nerdie> bin file thing
10:23:49FromDiscord<Nerdie> to path
10:24:06FromDiscord<Solitude> yes
10:24:28FromDiscord<Nerdie> what do i call it
10:24:43FromDiscord<Nerdie> just mingw?
10:24:51narimiranSteven.
10:25:06FromDiscord<Araq> finish.exe does install the right mingw and can add it to the path...
10:25:12FromDiscord<Nerdie> NOT FUCKING FINISH
10:25:25FromDiscord<Yardanico> ahahahahah
10:25:30FromDiscord<Nerdie> my mingw doesn't have this single fucking exe
10:25:35PMunch@Nerdie, Araq was just messing with you. Creating a 32-bit Python DLL isn't possible (you might be able to hack something together, but it's guaranteed going to be a worse experience than just installing a C compiler)
10:25:35FromDiscord<Nerdie> to make it compile 32 bit things
10:25:48FromDiscord<Nerdie> In reply to @PMunch "<@595740754538659841>, Araq was just": i know he was, trust me i've tried.
10:25:53FromDiscord<Nerdie> i wanted to make a python internal csgo cheat man
10:25:58FromDiscord<Nerdie> that was a pipedream
10:26:02FromDiscord<Nerdie> i've gotta learn either nim or c++
10:26:07FromDiscord<Nerdie> and fuck c++ because c++ bad
10:26:12FromDiscord<Nerdie> normies use c++
10:26:17PMunchI guess you could use the Python C library and make a DLL that runs Python scripts
10:26:28FromDiscord<Solitude> In reply to @Nerdie "normies use c++": normies can handle installing a compiler
10:26:29FromDiscord<Nerdie> i couldn't even find code to paste for a basic nim dll
10:26:30FromDiscord<Nerdie> i had to make that
10:26:31FromDiscord<Yardanico> You seem more like a normie to be honest, but whatever
10:26:33PMunchIt'd be a pain in the ass, but it should be possible
10:26:42FromDiscord<Nerdie> eh
10:26:46FromDiscord<Nerdie> if you're already doing c
10:26:49FromDiscord<Nerdie> just keep it c lopl
10:26:51FromDiscord<Nerdie> (edit) "lopl" => "lol\"
10:26:52FromDiscord<Nerdie> (edit) "lol\" => "lol"
10:27:29PMunchI mean you would have to write the C -> Python DLL once, and then anyone could write Python programs and load them through the DLL *shrugs*
10:27:32FromDiscord<Nerdie> what the hell just happened
10:27:34FromDiscord<Yardanico> I don't know, for me cross compiling was never an issue since there are 100500 articles about that on the net (on both Linux and Windows, for both Linux and Windows)
10:27:36FromDiscord<Nerdie> did i get kicked lol
10:27:52FromDiscord<Araq> yeah you did
10:27:54FromDiscord<Nerdie> why
10:27:59PMunchWait
10:28:08PMunchWe can still see him on IRC..
10:28:19FromDiscord<Araq> I already told you what you need to know. if you don't want to listen, at least shut up
10:28:34FromDiscord<Nerdie> i did listen
10:28:37FromDiscord<Araq> unpack the 32bit Nim, run finish.exe
10:28:42FromDiscord<Araq> that's all there is to it
10:28:42FromDiscord<Nerdie> i tried that
10:28:48FromDiscord<Nerdie> nim yelled at me
10:28:49FromDiscord<Nerdie> thats why i came here
10:28:53FromDiscord<Nerdie> i already tried fixing it
10:29:15FromDiscord<Araq> clean up your PATH, by now you probably have a dozen mingws lying around
10:29:19FromDiscord<Araq> all messing with each other
10:29:21FromDiscord<Nerdie> nop
10:29:22PMunch@Araq, that's partially my fault. I didn't think that would work so I told him it wouldn't..
10:29:23FromDiscord<Nerdie> (edit) "nop" => "nope"
10:29:37FromDiscord<Nerdie> i thought it just didn't work in general when i first tried
10:29:43FromDiscord<Nerdie> so i just avoided it
10:29:45PMunchWhat was the error you got when you installed 32-bit Nim, ran finish.exe, and then tried to compile?
10:30:04FromDiscord<Nerdie> it yelled at me that the bin didn't exist
10:30:09FromDiscord<Nerdie> when i gave it a valid path
10:30:18FromDiscord<Nerdie> just said "doesn't exist os error"
10:30:40FromDiscord<Nerdie> i installed some version of mingw that should work
10:30:46FromDiscord<Nerdie> i've just gotta add the bin to path
10:30:56FromDiscord<Araq> finish.exe can install mingw for you...
10:31:03FromDiscord<Nerdie> i just said
10:31:05FromDiscord<Nerdie> it doesn't work
10:31:31PMunchBut why doesn't it work?
10:31:43FromDiscord<Nerdie> i just said why
10:31:52PMunchDo you just roll into a garage with your car and go "doesn't work" and leave expecting the mechanic to fix it?
10:31:53FromDiscord<Araq> you never gave a precise error message
10:31:59FromDiscord<Nerdie> no
10:32:02FromDiscord<Nerdie> i said i got an os error
10:32:03*abm joined #nim
10:32:07FromDiscord<Nerdie> saying that the file didn't exist
10:32:15PMunchWell that could be a whole host of different errors
10:32:24FromDiscord<Nerdie> i just copied the bin's path
10:32:28PMunchThat's like saying "it makes a noise"
10:32:29FromDiscord<Nerdie> then put that into some arg
10:33:29FromDiscord<Nerdie> well
10:33:30FromDiscord<Nerdie> yeah
10:34:49FromDiscord<Nerdie> alright
10:34:55FromDiscord<Nerdie> i've added the new mingw
10:34:59FromDiscord<Nerdie> to path
10:35:03FromDiscord<Nerdie> it's bin file or whatever
10:35:05FromDiscord<Nerdie> what now
10:35:15FromDiscord<Solitude> now we wait
10:35:28FromDiscord<Nerdie> hm
10:35:32FromDiscord<Nerdie> does it work if i just
10:35:37FromDiscord<Nerdie> try compiling it normally
10:36:20FromDiscord<Nerdie> sent a long message, see http://ix.io/2QNm
10:36:27FromDiscord<Nerdie> well
10:36:29FromDiscord<Nerdie> a new error
10:36:34FromDiscord<Nerdie> wait
10:36:35FromDiscord<Nerdie> nvm
10:37:04FromDiscord<hamidb80> In reply to @Nerdie "@mmain.nim.c C:\Users\Server\nimcache\main_d\@mmain": redefinition
10:37:17FromDiscord<Nerdie> i know what was wrong
10:37:21FromDiscord<Nerdie> well shit
10:37:24FromDiscord<Nerdie> it still doesn't work
10:37:31FromDiscord<Nerdie> now i'm getting the old error
10:37:42FromDiscord<Nerdie> sent a code paste, see https://play.nim-lang.org/#ix=2QNo
10:38:29*phpostrich quit (Quit: phpostrich)
10:39:14FromDiscord<hamidb80> In reply to @Nerdie "``` C:\Program Files\nim-1.4.4\lib/nimbase.h:542:1:": is that all of the error?
10:39:21FromDiscord<Nerdie> In reply to @hamidb80 "is that all of": nope
10:39:27FromDiscord<Nerdie> idk if discord would let me post the whole thing
10:39:37FromDiscord<Nerdie> its like that
10:39:39FromDiscord<Nerdie> but 10 times over
10:39:41FromDiscord<Araq> it's the important part of the error
10:39:57FromDiscord<Araq> your C compiler and Nim don't agree on the architecture, 32 vs 64 bits
10:40:25idfjust use pastebin for the error
10:40:56FromDiscord<Nerdie> In reply to @Araq "your C compiler and": YES I KNOW
10:41:04FromDiscord<Nerdie> thats why i'm trying to use the 32 bit compiler
10:41:11FromDiscord<Nerdie> this is what started all this
10:41:49FromDiscord<Araq> you can try `--cpu:i386` but I'm sure people already told you and it's futile. it's ok, you cannot it to work. let's accept it
10:42:30FromDiscord<Nerdie> sent a code paste, see https://paste.rs/uBo
10:42:31FromDiscord<Nerdie> just
10:42:40FromDiscord<Nerdie> i installed another version of mingw
10:42:48FromDiscord<Nerdie> which can do 64 and 32 bit compilation
10:42:55FromDiscord<Nerdie> but how do i select that as my compiler
10:43:02FromDiscord<Nerdie> i've added it's bin file to path
10:43:03FromDiscord<Yardanico> You need to pass -m32 as well
10:43:09PMunchWith --gcc.exe and --gcc:linkerexe
10:43:17FromDiscord<Yardanico> --passC:-m32 and --passL:-m32
10:43:21FromDiscord<Yardanico> Without "and"
10:43:54FromDiscord<Nerdie> so i use `gcc compile` in my terminal to do this
10:44:03FromDiscord<Nerdie> instead of using nim compile
10:44:06FromDiscord<Yardanico> No
10:44:23FromDiscord<Yardanico> nim compile --app:lib --noMain --cpu:i386 --passC:-m32 --passL:-m32 main.nim
10:44:52PMunchAnd --gcc.exe and --gcc.linkerexe to select the C compiler
10:45:22FromDiscord<Araq> usually --gcc.exe and --gcc.linkerexe isn't required for this
10:45:29FromDiscord<Araq> if he has only one ming in the path
10:45:39PMunchDo we trust that he does?
10:45:44FromDiscord<Nerdie> nope
10:45:47FromDiscord<Nerdie> i've got nim's mingw
10:45:50FromDiscord<Nerdie> and the new one
10:45:52FromDiscord<Nerdie> and fuck
10:46:04FromDiscord<Nerdie> i just love compiled languages
10:46:09FromDiscord<Solitude> same
10:46:12FromDiscord<Nerdie> a brand new error
10:46:21idfyou said you love python 5 minutes ago
10:46:28FromDiscord<Nerdie> sent a code paste, see https://play.nim-lang.org/#ix=2QNs
10:46:28FromDiscord<Nerdie> In reply to @idf "you said you love": yeah i do
10:46:44PMunchI think he was being facetious
10:46:58idfah, quite unnecesary
10:47:09PMunchThat's using the Nim MinGW
10:47:10FromDiscord<Araq> listen to me. this is super futile. even if you get a DLL to build eventually, you will run into the next problem, the app won't load the DLL because of libc differences etc
10:47:25FromDiscord<Nerdie> In reply to @Araq "listen to me. this": what?
10:47:35FromDiscord<Araq> you simply don't know enough to ever get any of this to work.
10:48:58FromDiscord<Araq> you need to learn Nim first and how native PLs work
10:49:04FromDiscord<Araq> you need to learn about calling conventions
10:49:07FromDiscord<dom96> Guys, if you don't have the will to help @Nerdie then just stay quiet
10:49:11FromDiscord<dom96> no need to discourage them though
10:49:15FromDiscord<Nerdie> dude
10:49:19FromDiscord<Nerdie> it's 6 fucking am
10:49:23PMunchWe've been trying to help for about an hour..
10:49:28FromDiscord<Nerdie> i've been at this for about 12 hours now
10:49:29FromDiscord<Araq> about why one DLL cannot `free` a different DLL's `malloc` operation
10:49:38FromDiscord<Nerdie> just tell me it won't work and be done
10:49:46FromDiscord<Araq> I am.
10:49:48PMunchIt can work if you do it correctly
10:49:59PMunchBut that's a big "if"
10:50:05FromDiscord<Nerdie> how the fuck
10:50:09FromDiscord<Nerdie> do i do this correctly then
10:50:24FromDiscord<dom96> @Nerdie like I said many hours ago, treat Nim as C
10:50:33FromDiscord<dom96> look up how to do it in C and use that
10:50:33FromDiscord<Nerdie> i don't know c
10:50:36FromDiscord<Nerdie> i did
10:50:43FromDiscord<Nerdie> i tried using gcc to compile
10:50:48FromDiscord<dom96> Most of us don't do DLL injection here
10:50:52FromDiscord<Nerdie> well yeah
10:50:53FromDiscord<Nerdie> i can tell
10:50:59PMunch@dom96, he just struggles with compiling his DLL
10:51:05FromDiscord<Nerdie> that's the only thing
10:51:10FromDiscord<Nerdie> i just wanna make this a 32 bit dll
10:51:14PMunchI mean I do cross compiling of 32-bit Windows DLLs in Nim for work
10:51:15FromDiscord<Nerdie> i read that you can do that in nim
10:51:21FromDiscord<Nerdie> yeah like how
10:51:24FromDiscord<Nerdie> how'd you do it
10:51:29PMunchSo one should think I at least have some idea how to do it :P
10:51:39FromDiscord<Nerdie> you seem a lot more helpful than fucking iraq
10:51:50narimiranban in 3... 2... 1...
10:53:12FromDiscord<Yardanico> done
10:53:16FromDiscord<Yardanico> (but not by me)
10:53:26PMunchWhat is that even supposed to mean? Does Iraq have a 32-bit DLL building program?
10:53:49idfhow is DLL related to geopolitics
10:53:50FromDiscord<dom96> huh, banning removes their messages?
10:54:08FromDiscord<noE> no
10:54:11FromDiscord<noE> it was a play on his name.
10:54:23FromDiscord<noE> i just wanna know how to compile a damn dll
10:54:40PMunchOh who's name?
10:54:44FromDiscord<noE> all i've wanted to do for the past 12 hours
10:54:50narimiranjust be stubborn, you'll definitely succeed!
10:54:55narimiranPMunch: *raq
10:55:00PMunchAh :P
10:55:00FromDiscord<dom96> @noE go to sleep please
10:55:03narimiranPMunch: lol
10:55:03FromDiscord<noE> this is the biggest and only real place to get help for nim
10:55:09FromDiscord<dom96> come back tomorrow and it'll be easier to figure out
10:55:17FromDiscord<noE> i wanna wake up to a 32 bit dll
10:55:23FromDiscord<Solitude> In reply to @noE "all i've wanted to": you could do your own research in 12 hours. you could learn nim in 12 hours.
10:55:33PMunchI mean I can send you a random 32-bit DLL if you like :P
10:55:35FromDiscord<noE> i've been learning nim over the past 12 hours
10:55:41FromDiscord<noE> i've got plenty of those
10:55:46FromDiscord<noE> i just wanna make a 32 bit dll
10:55:53FromDiscord<noE> so i can do random crap with csgo
10:55:57PMunchWhy does it have to be 32-bit by the way?
10:56:03PMunchIs CSGO not 64-bit?
10:56:06FromDiscord<noE> because csgo is a 32bit application
10:56:09FromDiscord<noE> its from like 2009 lol
10:56:13PMunchHuh TIl
10:56:15narimiran@noE just yell "no fucking finish.exe" enough time, and i'm sure it will work at some point!
10:56:16FromDiscord<noE> REALLY old game
10:56:34*sagax__ joined #nim
10:56:59FromDiscord<dom96> narimiran: there is no need for that
10:57:07FromDiscord<Araq> is this how we want to spend our time, yes? helping somebody how to hack some old game who has no manners?
10:57:11narimiran@dom96 there is
10:57:19idfi have to say the ban evasion was quite fast
10:57:43*kaletaa left #nim (#nim)
10:57:43*kaletaa joined #nim
10:57:48FromDiscord<Araq> because if so, I'm out
10:58:02FromDiscord<Araq> your choice.
10:58:15narimiranIraq making ultimatums!
10:58:26FromDiscord<Yardanico> iraq is the new 4raq
10:58:42*sagax__ quit (Client Quit)
10:59:16*dom96__ joined #nim
10:59:28*dom96__ quit (Changing host)
10:59:28*dom96__ joined #nim
10:59:45FromDiscord<mratsim> that isn't funny
10:59:59FromDiscord<Yardanico> https://media.discordapp.net/attachments/371759389889003532/814451621936758794/unknown.png
11:00:06FromDiscord<Yardanico> nice ban evasion I must say
11:03:09FromDiscord<TotsCoolGamerBruh> had to switch to an account with a verified email.
11:03:13FromDiscord<TotsCoolGamerBruh> dude i don't mean to be rude
11:03:20FromDiscord<TotsCoolGamerBruh> i just wan't help with compiling a 32 bit dll
11:03:38FromDiscord<Solitude> In reply to @TotsCoolGamerBruh "i just wan't help": best minds tried to help you and failed, help yourself
11:03:55narimiran3rd time's the charm. maybe this time you really want help. we'll see....
11:06:51superbiagood morning fiume
11:09:40FromDiscord<Yardanico> just for the reference, I easily downloaded mingw online installer from https://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/ , installed i686 version (of course added its bin folder to path - D:\mingwi386\mingw32\bin), opened a new `cmd` window and easily compiled the 32-bit dll with `nim c --app:lib --cpu:i386 --gcc.exe:i686-w64-mingw32-gcc --gcc.linkerexe:i686-w64-mingw32-gcc a.nim`. To
11:09:48FromDiscord<Yardanico> and that's with 64-bit nim compiler
11:14:30FromDiscord<Nerdie_> thank you.
11:14:57FromDiscord<Nerdie_> all i wanted
11:15:37FromDiscord<Yardanico> people explained the same thing to you multiple times
11:19:18FromDiscord<Nerdie_> after 12 and a half hours my issue has been solved.
11:19:44FromDiscord<konsumlamm> so are we just gonna ignore the ban evasion?
11:19:59FromDiscord<Nerdie_> there isn't a point lol
11:20:09PMunchI'm only a lowly IRC mod, nothing I can do about it *shlugs*
11:20:22PMunchWell, I could ban FromDiscord, but that doesn't really help anyone :P
11:20:52PMunchAnd how did that solve you issue? It's literally the exact same thing we've been telling you do to for hours?!
11:22:11FromDiscord<Yardanico> he's banned
11:22:27FromDiscord<Yardanico> lemme specifically add to rules "Ban evasion is not allowed"
11:22:48Clonkk[m]"It is forbidden to not follow the rules" :D
11:22:53Clonkk[m]Always a nice rule
11:22:55FromDiscord<carpal> what did he do?
11:23:27Clonkk[m]He insulted Linux
11:23:30Clonkk[m]THat's ba nworthy
11:23:31FromDiscord<Yardanico> Spent 12 hours asking for help on how to setup a cross-compiler on windows for nim
11:23:32PMunchJust spammed the channel with variations of the same question for a long time
11:23:33FromDiscord<Yardanico> and that too
11:23:42Clonkk[m] * That's ban worthy
11:23:52PMunchHaha, doesn't that mean we have to ban Araq?
11:24:31FromDiscord<Yardanico> also, just for the reference, CS:GO is 32-bit on Windows, but guess what?
11:24:33FromDiscord<Yardanico> it's 64-bit on Linux :P
11:24:47PMunchOf course it is :P
11:24:53PMunchThat used to be the case with KSP as well
11:24:59FromDiscord<Araq> once again.
11:25:12PMunchIf you wanted to use more than 4Gb of RAM you needed to install Linux :P
11:25:21*dom96__ quit (Quit: Connection closed)
11:25:28FromDiscord<Araq> the problem is IMHO that only myself told him in my own special way what he needs to know.
11:25:29PMunchAnd for a game with as many mods as KSP, that was quite a lot of users
11:26:20FromDiscord<Araq> that the DLL is not even the problem. it will crash. and then what? are you gonna teach him all the knowledge that he needs to figure it out?
11:26:25FromDiscord<konsumlamm> i wonder if it was a mistake to subscribe to all PRs...
11:26:44PMunchThat is a good point, he'll probably be back with a million other issues..
11:26:45FromDiscord<Yardanico> @konsumlamm it's fun
11:26:45FromDiscord<Araq> on IRC? for 40 hours then?
11:28:30FromDiscord<Araq> @konsumlamm why? PRs are fine
11:28:41FromDiscord<konsumlamm> ye, but there are so many
11:29:47FromDiscord<Araq> if somebody comes along and says "I don't know much about cars, please help me produce my own Porsche", the best thing you can do is to tell him it's a bad idea
11:30:19FromDiscord<Araq> instead of explaining how to hold a screw driver as the "first step"
11:31:09*abm quit (Ping timeout: 264 seconds)
11:32:24FromDiscord<carpal> In reply to @Clonkk "He insulted Linux": 😂
11:32:56FromDiscord<carpal> In reply to @PMunch "Haha, doesn't that mean": ahhaha yes ban andreas
11:33:24liblq-devßan andreas
11:33:53PMunch@Araq, that is a good point, I just jumped into the middle of it without really knowing that he had no idea what he was doing..
11:34:59*krux02` joined #nim
11:35:40*krux02` quit (Remote host closed the connection)
11:41:57FromDiscord<mratsim> In reply to @konsumlamm "i wonder if it": You didn't subscribe when timotheecour was going crazy over issues/PR
11:42:37FromDiscord<Yardanico> hehe
11:42:46FromDiscord<carpal> I'm trying to port a friend from python to nim (he's making an engine with pyglet). He asked: if it is so good (has multiple ways to manage memory, as fast as c, looks like python has a good macro system, has full interoperability with c, ecc...) why isn't it known as rust or similar?
11:43:09FromDiscord<Solitude> In reply to @carpal "I'm trying to port": because we keep a secret club?
11:43:16FromDiscord<carpal> five club?
11:43:19FromDiscord<Yardanico> @carpal rust had mozilla, y'know :P
11:43:20FromDiscord<mratsim> reply, "if you're so smart, why aren't you president?"
11:43:21PMunchYou told someone about Nim?!
11:43:27FromDiscord<Yardanico> first rule
11:43:30FromDiscord<Yardanico> time to ban
11:43:39Clonkk[m]The way programming language gain traction is mysterious and has little to do with technical aspect
11:43:39PMunchHaha, but yeah it's mostly a PR thing I think
11:43:58FromDiscord<mratsim> correct answer "i don't have no sponsor, support base, Marketing, ..."
11:43:59*krux02_ quit (Read error: Connection reset by peer)
11:44:12PMunchMozilla pushed Rust, which helped it spread. And Rust has one single hook that sounds good, it's "safe"
11:44:22FromDiscord<mratsim> but what a hook
11:44:32PMunchNim is just overall better than a lot of things, which is hard to market
11:44:38FromDiscord<mratsim> it's true for most upstarts though. I mean Amazon, "selling book online"
11:44:40Clonkk[m]Just make a blog post that we use Rust in the compiler to make the buzz 😂
11:44:54FromDiscord<Solitude> rust people are not afraid to use buzzwords to gain reddit/hn crowd attention
11:44:58FromDiscord<mratsim> find your niche, solve it, fill it and then expand
11:45:08FromDiscord<mratsim> just like Javascript
11:45:16FromDiscord<carpal> In reply to @PMunch "Nim is just overall": yes lol
11:45:20FromDiscord<Yardanico> @Solitude RIR
11:46:14*krux02 quit (Remote host closed the connection)
11:46:40Clonkk[m]What I learned from the internet is that popularity is correlated to what you say not what you actually deliver
11:46:41Clonkk[m]I call it the V-way
11:46:55FromDiscord<carpal> In reply to @PMunch "You told someone about": first rule, don't talk about nim
11:47:04FromDiscord<carpal> I'm going to get a ban
11:47:23FromDiscord<Solitude> yeah, the guy before talked about nim so much he got banned three times
11:48:20*superbia left #nim ("WeeChat 3.0")
11:48:28FromDiscord<Araq> he also called me "fucking Iraq" but yeah, we banned him because he talked about nim, obviously.
11:49:01FromDiscord<carpal> why are you using discord in these days?@Araq
11:49:48FromDiscord<carpal> In reply to @Araq "he also called me": in what sense? aren't you germany?
11:49:54Clonkk[m]Isn't Discord the most popular platform these days ?
11:50:14liblq-devit is, unfortunately.
11:50:51FromDiscord<Araq> @carpal so that I lower the number of messangers I have to use
11:51:44FromDiscord<konsumlamm> In reply to @Yardanico "<@!699146708466008115> rust had mozilla,": honestly, i think people are overestimating the role mozilla played in Rust's adoption ¯\_(ツ)_/¯
11:52:38FromDiscord<Yardanico> You think so?
11:52:41Clonkk[m]<FromDiscord "<konsumlamm> In reply to @Yardan"> Having access to a marketing department, fundings and a popular flagpole application is nothing underestimate.
11:52:41liblq-devmozilla is mozilla but after using rust for a few weeks i can see why people like it
11:52:45FromDiscord<haxscramper> They had more people on documentation team than we have core devs
11:53:26FromDiscord<haxscramper> Like really? Idk how much people exactly worked on rust, but I suspect it is in the dozens easily
11:53:43PMunchI mean a single blog post saying "We at large company X are using Y language for our next release" would bring a lot of PR to any language
11:53:46FromDiscord<hamidb80> In reply to @liblq-dev "mozilla is mozilla but": Why?
11:53:52FromDiscord<konsumlamm> i mean, i saw many people saying they looked at go because it was made by google, but only rarely people saying they looked at rust because it was made by mozilla
11:54:21FromDiscord<konsumlamm> though the point about docs is fair
11:54:23FromDiscord<Araq> a team of paid compiler core devs doesn't hurt for adoption
11:54:26PMunchSure, but you've heard about it because someone else have heard about it
11:54:28FromDiscord<haxscramper> Because go is nothing realy
11:54:43FromDiscord<haxscramper> Rust has something, as a language, as an idea. Overall it is a really good language I think.
11:54:44liblq-dev@hamidb80 they have a focus on really good tooling
11:54:48FromDiscord<haxscramper> Overhyped sometimes, yes, but still
11:54:54FromDiscord<haxscramper> `go` is just ....
11:54:59PMunchThe question I get the most when people start realising how cool Nim is is "Why haven't I heard of Nim before?"
11:55:06Clonkk[m]Fundings and marketing go a long way
11:55:16Clonkk[m]You also need documentation for non technical people
11:55:18FromDiscord<dom96> they have ~~a focus~~ the workers to work on really good tooling
11:55:19liblq-devgo doesn't have any good, revolutionary ideas behind it. people adopted it because other people told them it's "easy"
11:55:38FromDiscord<dom96> Go has goroutines
11:55:43FromDiscord<haxscramper> anything else?
11:55:44liblq-devso?
11:55:47FromDiscord<dom96> and "simplicity"
11:55:49PMunchYeah go has goroutines
11:55:58FromDiscord<flywind> our stdlib is not very good(docs and features).
11:56:00PMunchWhich makes it really easy to do a very specific kind of task
11:56:04FromDiscord<konsumlamm> ye, but neither of those ideas are new
11:56:05liblq-dev@dom96 just because rust has paid workers doesn't mean that hobbyists can't do just as well
11:56:14liblq-devwe all know what the pain points of nim are
11:56:15liblq-devbut
11:56:20liblq-devgetting into compiler development is difficult
11:56:21FromDiscord<konsumlamm> In reply to @flywind "our stdlib is not": sad but true
11:56:36liblq-devbecause the god damn source code is so undocumented it scares people like me after 5 minutes.
11:56:52FromDiscord<dom96> In reply to @liblq-dev "<@132595483838251008> just because rust": @liblq-dev: actually, it does mean that exactly
11:57:03FromDiscord<Araq> ah it's this again
11:57:19liblq-devbut dom, we can't have many paid workers until the language gets good
11:57:26liblq-devand gains on popularity
11:57:37FromDiscord<Araq> so here I am
11:57:44FromDiscord<Araq> what do you want to know about the compiler?
11:57:54liblq-devwhere did all the comments go.
11:58:11FromDiscord<Araq> comments are like other code, the initial state is "unwritten"
11:58:11liblq-devi don't want to rely on another person 24/7 while debugging or improving a piece of software
11:58:15FromDiscord<mratsim> I'm afraid of the compiler as well, especially sigmatch semtypes :p
11:58:23liblq-devbecause that person might not be present at a given time
11:58:41FromDiscord<Araq> yes, but I am listening and will add doc comments
11:58:47FromDiscord<Araq> I won't reply here
11:58:51FromDiscord<haxscramper> I had to write sourcetrail for nim to dig around compiler
11:58:56liblq-dev@Araq: the thing with comments is that it's easy to write comments as you go, and then improve them incrementally
11:58:57FromDiscord<Araq> I am asking you now here
11:59:14FromDiscord<Araq> and as a result you'll see a PR
12:00:30FromDiscord<Araq> bbl
12:06:07FromDiscord<carpal> In reply to @liblq-dev "mozilla is mozilla but": and why ?
12:07:41FromDiscord<konsumlamm> good documentation, nice type system, good tooling, memory safety, speed, ...
12:08:56FromDiscord<konsumlamm> big ecosystem
12:09:06FromDiscord<konsumlamm> easy and safe concurrency
12:10:00FromDiscord<konsumlamm> (for the most part)
12:20:04*krux02 joined #nim
12:22:07FromDiscord<mratsim> good documentation came somewhat late for Rust, it really was confusing in 2015 when I tried it
12:22:40FromDiscord<mratsim> what's nice about the type system is the guarantees, what's not nice about the type system is working with it 😉
12:22:50FromDiscord<konsumlamm> 🤔
12:23:07FromDiscord<mratsim> the concurrency story came after as well. There was no async/await or Tokio for a while
12:23:47FromDiscord<mratsim> I mean, When I started Rust, I added "clone" everywhere, and I'm not even talking about creating tree algorithms
12:23:49FromDiscord<konsumlamm> i think i started to look at it around the time where async/await was becoming a thing
12:25:01FromDiscord<mratsim> I think Rust is a very good language for companies and team, but for fun and hobbies (or science) it's too ceremonial
12:25:27FromDiscord<zetashift> In reply to @PMunch "I mean a single": Talking about blogposts, I remember Rust doing a like a month of blogposts and a lot of it got attention with the sites I browse, maybe something to consider with Nim. F# does this too in December with an advent calender for F# related blogposts
12:25:28FromDiscord<konsumlamm> it is fun for me ¯\_(ツ)_/¯
12:25:57FromDiscord<konsumlamm> In reply to @zetashift "Talking about blogposts, I": there is "This month with Nim" now
12:25:58FromDiscord<mratsim> well I find cryptography fun so what do i know
12:26:18FromDiscord<konsumlamm> lol
12:26:38FromDiscord<zetashift> In reply to @konsumlamm "there is "This month": I know! It's great :D, but blogposts tend to be easier to market around
12:26:45ForumUpdaterBotNew thread by Benob: Async stack traces referring to macros, see https://forum.nim-lang.org/t/7557
12:26:58PMunchWell I guess we could get the most prominent blogpost writers in the community to write one or two articles and stagger their releases over a month
12:27:09FromDiscord<mratsim> I have a blog post I wrote in december that wasn't published still :/
12:27:26PMunchI have one I wrote last year that I still haven't published..
12:27:34FromDiscord<mratsim> december is last year
12:27:45PMunchWhat's the most punny month for Nim posts?
12:27:47FromDiscord<mratsim> I mean it was submitted to Nim's blog
12:27:55PMunch@mratsim, fair point. About a month ago I meant
12:28:00PMunchabout a year ago*
12:29:04FromDiscord<zetashift> I should rewrite my Godot post with some more stuff added to it
12:29:10FromDiscord<carpal> In reply to @konsumlamm "good documentation, nice type": nim has a good documentation too imho. nim has a good type system too or not? I saw a lot of benchmarks and nim is always faster than rust. nim allows you to use the memory managment you want, gc is safe arc too I think
12:29:27FromDiscord<konsumlamm> the documentation isn't really comparable tbh
12:29:50FromDiscord<zetashift> Rust Book is really really good tbh, Nim assumes programmer experience for a lot of things
12:30:12FromDiscord<konsumlamm> nim has a good type system in theory maybe, but parts of it are a bit broken/unstable
12:30:14FromDiscord<flywind> Rust is well designed, the RFC book is so great. https://rust-lang.github.io/rfcs/1252-open-options.html
12:30:20FromDiscord<zetashift> I liked Rust but nothing what I do requires that low-level/boilerplate of programming
12:30:28FromDiscord<konsumlamm> and something i prefer about generics in Rust is that they're not SFINAE
12:30:54FromDiscord<zetashift> `Substitution failure is not an error` had to google that
12:31:12FromDiscord<konsumlamm> GC is safe, sure, but Rust doesn't need a GC and is still safe
12:32:03FromDiscord<zetashift> Yes I get that but it's at the cost of maintaining lifetimes and thinking a lot about low level stuff, to `String` thing also. I don't need that power yet haha
12:32:06FromDiscord<mratsim> it uses Rc
12:32:34FromDiscord<konsumlamm> it doesn't if you don't tell it to
12:32:52FromDiscord<mratsim> same for Nim
12:33:03FromDiscord<mratsim> don't use ref types
12:33:04FromDiscord<mratsim> no GC
12:33:28FromDiscord<konsumlamm> in Rust, you can still make heap allocations without GC tho
12:33:36FromDiscord<konsumlamm> and it's still memory safe
12:33:46FromDiscord<mratsim> if you compile nim with gc:destructors you can too.
12:34:17FromDiscord<flywind> Not to mention Rust, even compared to other less popular new languages(Zig, Crystal), we did not much better.(big number, decimal, tempfile, threadsafe once, spinlock, read/write lock, concurrent data structures, uuid, io_uring, ryu etc.
12:34:57FromDiscord<mratsim> We did Windows though
12:35:12FromDiscord<konsumlamm> speaking of `gc:destructors`, is that documented anywhere? because it isn't in the GC manual? so how the hell is anyone supposed to know about it?
12:35:14FromDiscord<mratsim> I don't think concurrent data structures need to be in the standard library
12:35:30FromDiscord<mratsim> it's a black hole that sucks all energy
12:36:09FromDiscord<konsumlamm> honestly, for me the borrow checker is just a side effect, i mostly like it because of the traits, ADTs etc.
12:36:14FromDiscord<carpal> In reply to @konsumlamm "GC is safe, sure,": yes, but you have to clone an object on the heap. it means to allocate another address on the heap and copy there all you want to move into
12:36:34FromDiscord<konsumlamm> whata re you talking about?
12:38:05FromDiscord<konsumlamm> often, you can just move it and if you want shared ownership, you can still use Rc
12:39:56*Sembei quit (Ping timeout: 240 seconds)
12:41:00*haxscramper quit (Remote host closed the connection)
12:41:11*rockcavera joined #nim
12:41:11FromDiscord<flywind> http://www.modulecounts.com/
12:44:12FromDiscord<zetashift> that graph sure gets hard to read when you add languages
12:44:23FromDiscord<Araq> @flywind agreed but then what's the point
12:44:36FromDiscord<Araq> Rust is a good language, plenty of lessons to learn from it
12:44:46FromDiscord<flywind> In reply to @zetashift "that graph sure gets": just compare Nim and Crystal.
12:44:46FromDiscord<Araq> same holds for Go even though I don't like it much
12:47:30FromDiscord<Araq> @flywind Crystal is more popular because it's closer to Ruby than Nim is to Python, afaict
12:50:30FromDiscord<dom96> Crystal is more popular? By what measure?
12:51:07FromDiscord<carpal> In reply to @Araq "same holds for Go": lol
12:53:19FromDiscord<zetashift> In reply to @dom96 "Crystal is more popular?": GH stars if you fancy that, but I think it's more like "Crystal can get the ball rolling faster cause it strives to be close to Ruby, but Nim only has the syntax in common with Python"
12:56:57FromDiscord<nachos> yeah rust is actually pretty good but rn it's going through that phase where everyone just wants to rewrite long-standing stable tools in rust just because rust
12:57:44FromDiscord<nachos> it's not really a bad thing but it doesn't make much sense for some tools
13:00:28FromDiscord<zetashift> A lot of programmers just need new shiny things
13:00:31FromDiscord<konsumlamm> GH stars, the most accurate measurement of popularity
13:01:22FromDiscord<zetashift> In reply to @konsumlamm "GH stars, the most": Let me be clear I am not one that thinks GH stars are an accurate measurement
13:01:32FromDiscord<flywind> https://tjpalmer.github.io/languish/
13:01:50FromDiscord<flywind> this shows Nim is better than Crystal.
13:03:36FromDiscord<konsumlamm> i hope concepts will be used in the stdlib in the future
13:03:51FromDiscord<Araq> @konsumlamm please help by trying
13:04:06FromDiscord<Araq> I merged the new concepts to encourage experiments
13:04:31FromDiscord<Araq> (also the concepts code is documented well, in my very humble, subjective, worthless opinion)
13:04:32*kitech1- quit (Quit: ZNC 1.7.5 - https://znc.in)
13:05:10FromDiscord<konsumlamm> In reply to @Araq "<@!312654963694108674> please help by": by trying out concepts in general or by trying to use th in the stdlib?
13:05:13*kitech1 joined #nim
13:05:25FromDiscord<Araq> somewhere
13:05:33FromDiscord<Araq> all we currently have are green tests
13:07:13FromDiscord<nachos> i have a friend that absolutely loves crystal, although honestly nim syntax looks better to me
13:07:26FromDiscord<nachos> i can't really compare them until i use both
13:07:36FromDiscord<konsumlamm> In reply to @flywind "https://tjpalmer.github.io/languish/": brainfuck is quite high
13:07:49FromDiscord<Noobi> Is there any recommendation for parentheses for methods e.g. `echo`?
13:07:58FromDiscord<zetashift> Like a style guide?
13:08:18FromDiscord<zetashift> if there is only one argument passed then you can skip the parentheses
13:08:47FromDiscord<Noobi> Yeah, but what's like the common thing?
13:08:57FromDiscord<nachos> In reply to @Noobi "Is there any recommendation": id probably use them anyways for consistency
13:09:52FromDiscord<konsumlamm> i use them evwrywhere except for echo and spawn ¯\\_(ツ)\_/¯
13:10:11FromDiscord<Solitude> i omit them everywhere i can
13:10:39FromDiscord<exelotl> I tend to skip parentheses for echo, add, inc/dec and for 'getters'
13:11:28FromDiscord<exelotl> anything that's so ubiquitous that it could be a keyword
13:13:40*idf left #nim ("ERC (IRC client for Emacs 27.1)")
13:18:54*idf joined #nim
13:21:29*Tanger quit (Quit: Leaving)
13:26:00FromDiscord<carpal> I hate parenthesesless function calls
13:26:30FromDiscord<carpal> only for echo I omit them
13:27:31FromDiscord<mratsim> all function calls are created equal
13:27:46FromDiscord<carpal> ok so?
13:28:46*idf left #nim ("ERC (IRC client for Emacs 27.1)")
13:29:17*idf joined #nim
13:30:27FromDiscord<mratsim> no discrimination or hate speech, functions should be equal except if they are `!=`
13:30:51FromDiscord<ache of head> haha
13:31:11FromDiscord<carpal> ahahah
13:31:13idff(x) = g(x)
13:31:23FromDiscord<carpal> yea
13:31:25FromDiscord<carpal> poor g
13:31:32FromDiscord<zetashift> hahhaha
13:31:41FromDiscord<carpal> don't say anything against g
13:31:49FromDiscord<carpal> it has the same rights of f
13:40:06FromGitter<gogolxdong> How is https://github.com/arnetheduck/nlvm going?
13:41:43*kitech1 quit (Quit: ZNC 1.7.5 - https://znc.in)
13:42:02*kitech1 joined #nim
13:43:45FromDiscord<DARTHVADER NAXXX> What differences between `gcc` and `llvm`?
13:43:56FromDiscord<DARTHVADER NAXXX> (edit) removed "What"
13:44:02FromDiscord<DARTHVADER NAXXX> (edit) "differences" => "Differences"
13:44:35FromDiscord<mratsim> 7 letters
13:44:41*Vladar quit (Quit: Leaving)
13:45:34FromDiscord<carpal> hahahha
13:46:47FromDiscord<carpal> In reply to @DARTHVADER NAXXX "Differences between `gcc` and": gcc and clang?
13:46:53FromDiscord<carpal> llvm is used by clang
13:47:05FromDiscord<carpal> but llvm does not manage c directly
13:47:08FromDiscord<DARTHVADER NAXXX> In reply to @carpal "gcc and clang?": yes
13:47:54FromDiscord<carpal> clang file.c -> file.ll (multiplatform, static typed, bla bla bytecode) -> file.exe
13:48:08FromDiscord<carpal> rustc file.rs -> file.ll -> file.exe
13:48:25FromDiscord<carpal> this means that you can do file.c + file.rs -> file.exe
13:50:36FromDiscord<carpal> https://media.discordapp.net/attachments/371759389889003532/814494557092839467/5e08f557ad6bad4b45b60524_c47cbc8cca9448df840b6c203a38ab8d.png
13:51:17FromDiscord<apollo> ahh yes rust
13:51:25FromDiscord<carpal> this is the llvm ir the previously image is talking about https://media.discordapp.net/attachments/371759389889003532/814494761297379398/preview.png
13:51:48FromDiscord<carpal> it is very elegant
13:52:43FromDiscord<carpal> I'm curretly using it in my compiler, but I think I'll switch to my own ir
13:55:23FromDiscord<zetashift> @flywind am I using your single line collect example wrong? https://play.nim-lang.org/#ix=2QOB
13:55:33FromDiscord<flywind> use devel version
13:55:38FromDiscord<flywind> it's a new feature
13:55:56FromDiscord<flywind> https://nim-lang.github.io/Nim/sugar.html#collect.m%2Cuntyped%2Cuntyped
13:56:09FromDiscord<carpal> 1. to learn more 2. to implement a custom type checking system
13:58:45FromDiscord<zetashift> oh I see, thank you, I keep forgetting to switch to devel haha
13:59:33FromDiscord<flywind> never mind, you could add this one line feature to docs 😛
13:59:34FromDiscord<flywind> https://nim-lang.github.io/Nim/sugar.html#collect.m%2Cuntyped
14:09:28FromDiscord<zetashift> Thanks 💯
14:09:54FromDiscord<zetashift> for the one line feature should I make a separate PR?
14:10:00FromDiscord<flywind> yeah
14:30:32FromDiscord<carpal> how can I fix? https://media.discordapp.net/attachments/371759389889003532/814504609284358144/unknown.png
14:30:35FromDiscord<carpal> on windows
14:30:43FromDiscord<carpal> nim-lang/opengl
14:31:08FromDiscord<InventorMatt> if you have freeglut downloaded you just need to put it into the same folder as your program
14:33:19FromDiscord<carpal> this is my friend problem↵https://cdn.discordapp.com/attachments/651135598282801162/814505025183285258/unknown.png
14:34:37FromDiscord<InventorMatt> https://forum.nim-lang.org/t/7551 this forum thread may help you with that
14:40:20*asdflkj joined #nim
14:50:44FromDiscord<carpal> thanks
14:50:48FromDiscord<carpal> He's trying
14:52:02FromDiscord<mratsim> alternative ;): https://ubuntu.com/download
14:55:21FromDiscord<carpal> lollo
14:55:24FromDiscord<carpal> I have ubuntu
14:55:30FromDiscord<carpal> but I prefer windows lol
14:56:53FromDiscord<carpal> where can I find the packages.json
14:58:16asdflkjlinux mint is a more windows-like ubuntu-based distro
15:03:39FromDiscord<carpal> no lol
15:03:49FromDiscord<carpal> I like ubuntu stile and all
15:04:04FromDiscord<carpal> but I have nvidia and all lags (also with drivers)
15:05:37FromDiscord<juan_carlos> I use Arch BTW.
15:06:40*waleee-cl joined #nim
15:06:44asdflkjDistros that call themselves “A simple, lightweight distribution” and then ship systemd suck btw
15:10:04FromDiscord<juan_carlos> Artix.
15:12:42FromDiscord<Yardanico> `s/Artix/Void Linux`
15:14:49leorize[m]systemd is pretty light tbh
15:15:03asdflkj[citation needed]
15:15:54FromDiscord<mratsim> "systemd is pretty light tbh"
15:16:14FromDiscord<Yardanico> average joke
15:16:22FromDiscord<Recruit_main707> - leorize 25/02/2021 at 16:16
15:16:24FromDiscord<mratsim> light joke
15:16:35FromDiscord<Yardanico> nimmoke
15:18:42Prestigesystemd is great
15:19:29asdflkjpending moderation: http://bash.org/?quote=967614
15:19:58FromDiscord<Yardanico> https://ghnou.su/systemd (not the original, but still funny)
15:20:09FromDiscord<Yardanico> sent a long message, see http://ix.io/2QP9
15:20:37FromDiscord<apollo> bloat
15:21:32leorize[m]I truly believe that systemd is great, but that's just me I guess
15:22:05FromDiscord<juan_carlos> No correlation, Void is not Arch based.
15:22:06FromDiscord<mratsim> not just you, I do believe that pulseaudio was poorly executed though
15:22:10asdflkj«just me I guess» no, RedHat and IBM agree
15:22:23FromDiscord<mratsim> the number of support requests pulseaudio generated in the Arch forum :/
15:22:31FromDiscord<Yardanico> @juan_carlos i wasn't talking about correlation, I was talking about the fact that Void Linux is a better distro than Artix if you don't want systemd
15:22:40FromDiscord<Yardanico> believe me, I used Artix for about a year myself
15:22:50leorize[m]pipewire is gonna take over, but it's gonna take awhile
15:23:22FromDiscord<juan_carlos> I did not say Void is bad.
15:23:44FromDiscord<juan_carlos> Alpine is also becoming nice for Desktop, it can do KDE and all.
15:23:50FromDiscord<Yardanico> alpine is musl-based
15:24:16leorize[m]use void if you want a musl-based desktop (if they still maintains that)
15:24:22FromDiscord<Yardanico> they do
15:24:34FromDiscord<Yardanico> I just meant that by using desktop you'll most likely want to use at least one proprietary application
15:24:48leorize[m]flatpak comes to the rescue :)
15:25:04FromDiscord<Yardanico> and musl doesn't work with those at all :P I know there's gcompat and you can do glibc chroots, but why not use a glibc-based distro in the first place then
15:25:24leorize[m]I use flatpak and it works very well
15:25:32FromDiscord<Yardanico> I don't like flatpak (or snap) too to be honest, I prefer native packages from the repos
15:25:40FromDiscord<juan_carlos> ...and that why I said Artix.
15:25:42FromDiscord<Yardanico> they're too bloated (yes bloat) for me
15:25:46leorize[m]or you can setup a toolbox if your distro packages that
15:25:47FromDiscord<Yardanico> @juan_carlos Void is glibc-based by default
15:26:05FromDiscord<Yardanico> https://voidlinux.org/download/
15:26:10asdflkjsnap is nasty, flatpak idk, AppImage is useful in moderation
15:26:10FromDiscord<apollo> lol just use Windows 😎
15:26:17FromDiscord<Yardanico> yes, AppImage has its uses
15:26:22FromDiscord<Yardanico> but I don't like snap/flatpak at all
15:26:30FromDiscord<juan_carlos> dec Flatpak
15:26:37FromDiscord<mratsim> I think we have been offtopic for a while now, I'm sorry for talking about Ubuntu
15:26:48FromDiscord<Yardanico> no one is asking ontopic questions anyway :D
15:28:01FromDiscord<Yardanico> how to cross-compile kde2 to freebsd i486?
15:28:01FromDiscord<mratsim> there was one about >indows SSL certificate
15:28:01FromDiscord<Yardanico> @carpal check #nimble
15:28:01FromDiscord<Yardanico> i helped a person solve the same problem
15:28:01FromDiscord<Yardanico> but yeah, the solution on the forum is the same
15:29:04asdflkjthere is #nim-offtopic but it's +R and I've waited maybe a month for Araq or dom96 to respond after I pinged one of them about it
15:34:03FromDiscord<carpal> In reply to @Yardanico "<@!699146708466008115> check <#753721959308853319>": thanks, what should I do? https://media.discordapp.net/attachments/371759389889003532/814520586423894086/unknown.png
15:34:26FromDiscord<Yardanico> just download cacert.pem and place it in any folder in your %PATH%
15:34:32FromDiscord<Yardanico> preferably in the folder with `nim` and `nimble` binaries
15:36:28leorize[m]you can also wait for 1.4.6 :p
15:37:26FromDiscord<Yardanico> shh
15:41:37FromDiscord<SneakyBaguette> In reply to @Yardanico "but I don't like": Why is that ?
15:42:05FromDiscord<Yardanico> because they duplicate a lot of system libraries for each software, just like windows software does it
15:42:12FromDiscord<Yardanico> (edit) "software," => "program,"
15:42:36FromDiscord<carpal> In reply to @Yardanico "preferably in the folder": doesn't work anyway
15:42:47FromDiscord<Yardanico> define "doesn't work"
15:42:56FromDiscord<carpal> same error lol
15:44:46FromDiscord<Yardanico> then I don't know, because it should work just fine
15:47:57*PMunch quit (Quit: leaving)
16:01:04FromDiscord<apollo> .
16:14:29*fosred joined #nim
16:15:10ForumUpdaterBotNew thread by YesDrX: Onnxruntime C Api wrapped for nim, see https://forum.nim-lang.org/t/7558
16:20:14*haxscramper joined #nim
16:27:38*fosred quit (Quit: Leaving)
16:34:31FromDiscord<dom96> asdflkj: what's +R again?
16:35:23asdflkjI meant +r . it's a channel mode that bans all unregistered users
16:36:12*zedeus_ is now known as zedeus
16:39:41FromDiscord<dom96> so register? 🙂
16:40:46asdflkjI'm told it would also make things easier for matrix users too (https://irclogs.nim-lang.org/22-01-2021.html#23:26:35)
16:58:42FromDiscord<carpal> sent a code paste, see https://play.nim-lang.org/#ix=2QPM
16:58:45FromDiscord<Yardanico> ??
16:58:52FromDiscord<carpal> shouldn't better pass a var x?
16:58:59FromDiscord<Yardanico> why?
16:59:08FromDiscord<Yardanico> if you don't modify, don't pass as `var`
16:59:11FromDiscord<carpal> it weighs 8 byte
16:59:18FromDiscord<carpal> a pointer
16:59:28FromDiscord<carpal> and the struct 16
16:59:36FromDiscord<Yardanico> the nim/c compiler will figure out the best way to pass the argument anyway
16:59:40FromDiscord<Yardanico> and they're smarter than us :)
16:59:49FromDiscord<Yardanico> in this case it's fine to just pass like that
16:59:52FromDiscord<carpal> so I should copy 16 byte, but why not creating a pointer and copy it?
17:00:09FromDiscord<carpal> In reply to @Yardanico "and they're smarter than": ahhah sure
17:00:21FromDiscord<Yardanico> @carpal because a pointer needs to also be dereferences
17:00:22FromDiscord<Yardanico> (edit) "dereferences" => "dereferenced"
17:01:14*Jjp137 quit (Ping timeout: 264 seconds)
17:01:27*Jjp137 joined #nim
17:01:35FromDiscord<carpal> ah right
17:02:27FromDiscord<carpal> but something on the stack pointed by it does not need to be deallocated by the gc
17:02:38FromDiscord<carpal> dereferenced?
17:02:57FromDiscord<Yardanico> if you pass by pointer/reference, it needs to be dereferenced
17:04:09FromDiscord<Yardanico> just don't use `var` unless you need to mutate and everything will be fine
17:04:09FromDiscord<Yardanico> profile your code and don't assume that something might be slow when it's not :)
17:12:31FromDiscord<haxscramper> Nim 1.4.4 is live at godbolt
17:12:53FromDiscord<haxscramper> Also noticed they have nim trunk (1.5.1 from `NimVersion`)
17:15:56FromDiscord<carpal> 👏
17:22:34*clyybber joined #nim
17:26:03FromDiscord<Yardanico> @haxscramper we still need to solve the problem with multiple modules :(
17:26:26FromDiscord<Yardanico> godbolt will only show the assembly code for the current nim src file, not stdlib modules
17:27:57FromDiscord<haxscramper> Really? I thought it shows assembly for the whole binary
17:29:00FromDiscord<Yardanico> yeah sadly it doesn't
17:30:42leorize[m]tick the "compile binary" flag and it will show everything
17:31:56FromDiscord<Yardanico> i don't think so
17:31:58FromDiscord<Yardanico> it's the same
17:32:17FromDiscord<Yardanico> I think for Nim it doesn't change anything
17:32:35FromDiscord<nachos> is it just me or does type x = object look better on a single line?
17:33:18FromDiscord<haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=2QQ4
17:33:26krux02@nachos: it does, but my editor works better if I split it
17:33:41FromDiscord<Yardanico> @leorize --debugger:native -o:/tmp/compiler-explorer-compiler2021125-5262-3j37e.n86ua6/output.s --nolinking --nimcache:/tmp/compiler-explorer-compiler2021125-5262-3j37e.n86ua6/output.s.cache compile -d:danger /tmp/compiler-explorer-compiler2021125-5262-3j37e.n86ua6/example.nim
17:33:45FromDiscord<Yardanico> even when "compile to binary" is on
17:33:49FromDiscord<Yardanico> that's the cmdline godbolt uses
17:33:56FromDiscord<Yardanico> as I said, its support for nim isn't the best
17:34:59krux02@Yardanico, what is the problem with that line?
17:35:13FromDiscord<Yardanico> @krux02 it won't show you assembly for other nim modules (e.g. stdlib)
17:35:23FromDiscord<Yardanico> only for your source file
17:36:09leorize[m]they used to show everything
17:36:22krux02yea, compiler explorer is made for C and around C, and that shows sometimes when you want to look at something that is not C
17:37:23krux02as far as I know, compiler explorer always showed the important parts.
17:37:44krux02when you include files in C, you don't want to see their assembly either
17:39:10FromDiscord<Yardanico> well `echo "hi"` gives you 57 lines of assembly with -d:danger --gc:arc which is a bit wrong :)
17:39:19FromDiscord<Yardanico> because the actual echo impl is larger than that
17:40:24FromDiscord<Yardanico> at least with "compile to binary" it should show assembly of the whole binary
17:42:32FromDiscord<haxscramper> I think it might be considered "wrong" in theory, but nobody really needs to look at 2k+ lines of assembly from `echo`, so i guess it is fine
17:42:32FromDiscord<haxscramper> So this is pragmatic approach
17:42:32FromDiscord<Yardanico> well, it's not an issue for normal viewing yes
17:42:32FromDiscord<Yardanico> but when you turn on "compile to binary" the behaviour right now just doesn't change
17:42:39FromDiscord<Yardanico> since nim in godbolt has hardcoded --nolinking
17:42:46FromDiscord<Yardanico> so it won't build or run the full binary
17:42:55FromDiscord<Yardanico> (and godbolt can run and show you output of binaries)
17:42:57leorize[m]I wonder why they switched to that version
17:43:23FromDiscord<Yardanico> relevant file is https://github.com/compiler-explorer/compiler-explorer/blob/main/lib/compilers/nim.js by the way
17:44:18leorize[m]guess we need to patch that?
17:44:22FromDiscord<Yardanico> yes
17:44:31FromDiscord<Yardanico> I already patched it in the past a bit (added --debugger:native)
17:45:31FromDiscord<Yardanico> the whole file only has 10 commits 4 of which are unrelated to actual process
17:46:15FromDiscord<Yardanico> we can check rust for example https://github.com/compiler-explorer/compiler-explorer/blob/main/lib/compilers/rust.js
17:46:39*Vladar joined #nim
17:52:19*lkajsdf joined #nim
17:54:02FromDiscord<Noobi> Is it more common to print text and variables using `echo "some ", variable` or `echo "some " & $variable`?
17:54:37FromDiscord<Yardanico> first one, but people are also starting to use strformat more often
17:54:46FromDiscord<Yardanico> https://nim-lang.org/docs/strformat.html
17:55:14FromDiscord<Yardanico> there's also https://nim-lang.org/docs/sugar.html#dump.m%2Cuntyped if you want to "dump" the result of an expression
17:56:56*rockcavera quit (Remote host closed the connection)
18:13:25FromDiscord<carpal> In reply to @Yardanico "as I said, its": I think it is so useless. looking c disassembled is easy but nim one not
18:13:33FromDiscord<Yardanico> why?
18:14:03FromDiscord<carpal> it does shows calls with addresses
18:14:13FromDiscord<carpal> NimMain+12, why?
18:14:53*lkajsdf is now known as lkjasdf
18:14:54FromDiscord<carpal> imo it could be better if like c one
18:15:32FromDiscord<Yardanico> that's doesn't go against what I say
18:15:40FromDiscord<Yardanico> of course if you have time you can improve it, add demanglers, etc
18:16:05FromDiscord<Yardanico> but big things come from small things, y'know
18:16:36FromDiscord<Yardanico> also it actually shows calls normally
18:16:58FromDiscord<Yardanico> it shows calls like "NimMain+12" only if they're not in the same module (because the assembly is only shown for the current source file, not for the stdlib)
18:17:12FromDiscord<Yardanico> https://media.discordapp.net/attachments/371759389889003532/814561645778960473/unknown.png
18:20:57FromDiscord<carpal> ah okay
18:21:04FromDiscord<carpal> I don't know, at first look c dis is easier to read https://media.discordapp.net/attachments/371759389889003532/814562617393676298/IMG_20210225_191734.jpg https://media.discordapp.net/attachments/371759389889003532/814562617615581194/IMG_20210225_191851.jpg
18:21:55FromDiscord<Yardanico> compile with `-d:danger`
18:22:05FromDiscord<carpal> done
18:22:15FromDiscord<Yardanico> also preferably --gc:arc too
18:22:24FromDiscord<carpal> why?
18:22:36FromDiscord<Yardanico> because it usually results in shorter c and assembly code
18:22:47FromDiscord<Yardanico> and it's generally better :P
18:23:49FromDiscord<Yardanico> if you want the most compact (not fastest) assembly code `-d:danger --opt:size --gc:arc` is generally your best bet
18:24:11FromDiscord<Yardanico> in godbolt I mean
18:30:15FromDiscord<carpal> ok thank you
18:31:12Oddmongeris it ok to do this for getting an alias of var ? var toto:ptr Foo = addr(foo)
18:31:25Oddmongeri know there is {.byref.} too
18:31:38FromDiscord<mratsim> just use `import std/decl` and use `{.byaddr.}`
18:31:49FromDiscord<mratsim> or templates
18:31:55Oddmongeryes i was meaning {.byaddr.}
18:32:17Oddmongerbut using a pragma for such an usual operation puzzles me
18:32:39Oddmongeris it discouraged ? Hence the pragam ?
18:36:36FromDiscord<mratsim> it's experimental
18:36:57FromDiscord<mratsim> maybe it will become "alias" something
18:37:00FromDiscord<mratsim> or maybe not
18:37:11Oddmongervar foo = &bar ? :)
18:37:24FromDiscord<mratsim> nah, no sigil/symbol
18:37:36FromDiscord<mratsim> pointers need to be spelled out
18:38:07Oddmongernow i have understood ref is for new , and ptr for existing objects (caught with addr)
18:38:26FromDiscord<konsumlamm> umm, not really
18:38:40FromDiscord<Yardanico> yeah, not at all
18:38:41FromDiscord<konsumlamm> `ref` is a GC pointer and `ptr` is a normal raw pointer
18:38:44FromDiscord<Yardanico> this
18:42:46Oddmongeranother strange thing is the need of dereferencing a ptr string for modifying it
18:43:19FromDiscord<Yardanico> why is it strange?
18:43:34FromDiscord<Yardanico> btw, why would you have a `ptr string`
18:43:41Oddmongerhttps://play.nim-lang.org/#ix=2QQU
18:43:50FromDiscord<Yardanico> that's a raw pointer to a managed reference to the string data
18:43:51FromDiscord<Yardanico> double indirection
18:43:58Oddmongerah
18:44:07Oddmongerthought it was * , not **
18:44:32FromDiscord<Yardanico> strings behave like value types but they indeed contain a reference
18:44:39FromDiscord<Yardanico> although it's a raw reference
18:45:11Oddmongerbut on my own type (see https://play.nim-lang.org/#ix=2QQU) i don't need to dereference
18:45:15FromDiscord<Yardanico> @Oddmonger you can check e.g. how strings are defined with ARC/ORC (with refc it's a bit different) https://github.com/nim-lang/Nim/blob/devel/lib/system/strs_v2.nim#L12
18:45:27FromDiscord<exelotl> I'm hoping that `var x {.byaddr.} = foo` will become something like `var x: var T = foo` right?
18:45:31FromDiscord<Yardanico> @Oddmonger because there's automatic dereference for dot access
18:45:36FromDiscord<Yardanico> same as in other languages
18:45:58FromDiscord<Yardanico> "The . (access a tuple/object field operator) and [] (array/string/sequence index operator) operators perform implicit dereferencing operations for reference types:"
18:46:00FromDiscord<Yardanico> https://nim-lang.org/docs/manual.html#types-reference-and-pointer-types
18:46:21Oddmongerok i understand better, thank you
18:49:19FromDiscord<apahl> sent a code paste, see https://play.nim-lang.org/#ix=2QQY
18:49:54FromDiscord<Yardanico> how does it compare to zero functional?
18:50:01FromDiscord<Yardanico> ah lazy evaluation
18:50:12FromDiscord<Yardanico> just for the reference, there's https://github.com/zero-functional/zero-functional
18:50:16FromDiscord<apahl> Yes, with closure iterators.
18:50:28FromDiscord<Yardanico> well, that'll be a bit of a perf hit :P
18:50:32FromDiscord<Yardanico> so it'll be even slower than sequtils
18:50:39FromDiscord<apahl> Yes, thanks. I am aware of that library, as well.
18:52:36FromDiscord<Yardanico> btw, @apahl , what's the improvement of using lazyseq over sequtils/zero functional in your code example?
18:52:48FromDiscord<Avatarfighter> What's the safest way to convert a seq[char] to string? I am just casting but is it recommended that I iterate through the seq and add the chars to a string ?
18:53:16FromDiscord<apahl> In reply to @Yardanico "btw, <@!732968123745042443> , what's": In that trivial example there is ofc none.
18:53:17FromDiscord<Yardanico> @Avatarfighter seq[char] and string have the exact same memory layout as a matter of fact :P but if you want to be the safest you might want to iterate, I'm not sure honestly
18:53:47krux02the memory layout of seq and string can change
18:53:52FromDiscord<Yardanico> yes, exactly
18:54:40FromDiscord<mratsim> don't cast !!!!
18:54:51FromDiscord<apahl> I just very much like the idea of iterating over a -well- iterator without having to allocate a sequence at the beginning, esp. in combination with option values.
18:54:52FromDiscord<mratsim> there is a missing \0 in seq[char]
18:55:05FromDiscord<mratsim> closure iterators allocate though
18:55:23FromDiscord<apahl> But not the whole sequence?
18:55:32FromDiscord<mratsim> not the whole sequence
18:56:02FromDiscord<apahl> Yes, I need to do some benchmarking how large the impact is.
18:56:07FromDiscord<Yardanico> for the reference btw, lazyseq is https://github.com/markspanbroek/nim-lazyseq/blob/main/lazyseq.nim
18:58:18krux02@mratsim: the missing \0 in `seq[char]` only matters for conversion to cstr
18:59:18FromDiscord<Yardanico> remembers the old times when null terminator in strings was accessible
18:59:18FromDiscord<mratsim> sure but anywhere you need to do IO, for example network, http, stdout, you will have strange crashes
18:59:59krux02yea probably.
19:00:10krux02is casting possible in js as well?
19:00:43krux02I mean from seq to str?
19:01:05krux02probably I should just try it instead of asking
19:03:49FromDiscord<konsumlamm> it'll probably to some implicit conversion lol
19:14:14FromDiscord<Avatarfighter> okay guys converters are my new favorite thing, I finally have a reason to use them. implicit conversion is hot
19:14:47FromDiscord<mratsim> You became the very thing you swore to destroy
19:15:51FromDiscord<konsumlamm> noooooooooo
19:18:16FromDiscord<Avatarfighter> ahaha
19:18:23FromDiscord<Avatarfighter> tbf im just iterating through the seq and adding to a string for my converter, I am just in it for the implicit conversion
19:27:57*krux02` joined #nim
19:33:07*deepend_ is now known as deepend
19:35:17*haxscramper quit (Remote host closed the connection)
19:37:48*lkjasdf quit (Ping timeout: 260 seconds)
19:39:24FromDiscord<LITeralLANGuage9> Is there a debugger written in nim?
19:39:30*rockcavera joined #nim
19:42:21*tiorock joined #nim
19:42:21*tiorock quit (Changing host)
19:42:21*tiorock joined #nim
19:42:21*rockcavera is now known as Guest16668
19:42:21*tiorock is now known as rockcavera
19:45:19FromDiscord<Solitude> no
19:47:25FromDiscord<Avatarfighter> I think most people use gdb
19:47:45FromDiscord<Avatarfighter> though if you are feeling adventurous and want to make a debugger, I don't think any of us will complain @LITeralLANGuage9
19:48:26FromDiscord<LITeralLANGuage9> But gdb can only debug C code. How will I know what the nim code is causing the problem?
19:48:57FromDiscord<konsumlamm> well, Nim compiles to C code
19:49:00*Guest16668 quit (Remote host closed the connection)
19:49:02*rockcavera quit (Remote host closed the connection)
19:49:13FromDiscord<konsumlamm> and Nim can produce debug symbols that are used by gdb, afaik
19:49:31*rockcavera joined #nim
19:51:07FromDiscord<Solitude> In reply to @LITeralLANGuage9 "But gdb can only": nim (probably) ships with nim-gdb wrapper that makes gdb aware of nim
19:54:45FromDiscord<mratsim> compile with --debugger:native and then you have Nim<-> GDB or LLDB integration
19:54:58FromDiscord<mratsim> never used nim-gdb personally so can't comment on it
19:56:54FromDiscord<LITeralLANGuage9> Cool. Thanks.
19:57:32FromDiscord<LITeralLANGuage9> Can I cross-compile a windows dll on linux/macos or a linux .so on windows etc?
19:58:34*krux02`` joined #nim
19:58:35*idf left #nim ("ERC (IRC client for Emacs 27.1)")
20:01:11*idf joined #nim
20:05:39FromDiscord<Solitude> linux->windows is easy with mingw
20:08:21FromDiscord<LITeralLANGuage9> The question was if I could make a linux shared object (.so) on windows with nim.
20:08:41*lkjasdf joined #nim
20:10:57*lbart joined #nim
20:10:57*lbart quit (Changing host)
20:10:57*lbart joined #nim
20:14:08leorize[m]you might be able to, but it's not recommended due to how no one tests cross toolchain from windows to linux
20:17:53FromDiscord<Solitude> In reply to @LITeralLANGuage9 "The question was if": with wsl, probably
20:29:18*krux02`` quit (Remote host closed the connection)
20:29:44FromDiscord<IndianGoldSmith> Hi all, what is "suite" means in Nim ?
20:30:23FromDiscord<Rika> test suite
20:30:27FromDiscord<Rika> group of tests
20:30:38FromDiscord<Rika> found in unittest module i believe
20:34:28FromDiscord<IndianGoldSmith> @Rika Like a namespace ?
20:34:28FromDiscord<Rika> no more just a group of tests
20:34:28FromDiscord<IndianGoldSmith> Means, so many tests in under one suite ?
20:34:28FromDiscord<Rika> it doesnt act anything like a namespace i believe
20:34:28FromDiscord<Rika> yeah you can run them all if you specify the suite
20:34:28FromDiscord<IndianGoldSmith> Got it. Thank you.
20:34:39*Gustavo6046_ joined #nim
20:34:50*beatmox quit (Write error: Broken pipe)
20:35:20*antranigv_ joined #nim
20:35:28*spiderstew_ quit (Quit: ZNC 1.7.2+deb3 - https://znc.in)
20:35:28*ebb quit (Quit: Somebody set up us the bomb)
20:35:31*stefantalpalaru quit (Quit: ZNC 1.7.5 - https://znc.in)
20:35:58*mal``` joined #nim
20:36:23*dsrw_ joined #nim
20:36:32*astronavt___ joined #nim
20:36:34*lkjasdf quit (Ping timeout: 269 seconds)
20:36:38*sepples_ quit (Quit: bye)
20:36:44*hpyc9 quit (Quit: 420)
20:36:44*GreaseMonkey quit (Quit: No Ping reply in 180 seconds.)
20:36:44*ehmry quit (Quit: No Ping reply in 180 seconds.)
20:36:44*kwilczynski quit (Ping timeout: 439 seconds)
20:36:47*ebb joined #nim
20:37:04*qwertfisch_ joined #nim
20:37:13*beatmox joined #nim
20:37:15*spiderstew joined #nim
20:37:15*kitech1- joined #nim
20:37:15*letto_ joined #nim
20:37:15*oz` joined #nim
20:37:15*^Q-Master^ joined #nim
20:37:16*hpyc9 joined #nim
20:37:16*pbb_ joined #nim
20:37:17*kwilczynski joined #nim
20:37:17*kitech1- quit (Changing host)
20:37:18*kitech1- joined #nim
20:37:20*Xena joined #nim
20:37:44*Fake-Face joined #nim
20:37:46*greaser|q joined #nim
20:37:53*sepples joined #nim
20:37:58*astronavt quit (Quit: ...)
20:38:00*koltrast quit (Quit: ZNC - http://znc.in)
20:38:13*stefantalpalaru joined #nim
20:38:42*ForumUpdaterBot quit (Write error: Broken pipe)
20:38:45*qwertfisch quit (Quit: ZNC - http://znc.in)
20:38:46*letto quit (Remote host closed the connection)
20:38:57*r4vi quit (Ping timeout: 260 seconds)
20:38:58*ehmry joined #nim
20:39:12*ForumUpdaterBot joined #nim
20:39:21*blackpawn_ joined #nim
20:39:25*alex[m]28 quit (Ping timeout: 240 seconds)
20:39:26*Avatarfighter[m] quit (Ping timeout: 240 seconds)
20:39:26*Clonkk[m] quit (Ping timeout: 240 seconds)
20:39:33*Yardanico[m] quit (Ping timeout: 265 seconds)
20:39:33*Benjamin[m]2 quit (Ping timeout: 265 seconds)
20:39:33*j-james[m] quit (Ping timeout: 265 seconds)
20:39:36*zazi[m] quit (Ping timeout: 246 seconds)
20:39:36*vycb[m] quit (Ping timeout: 246 seconds)
20:39:37*stisa quit (Ping timeout: 246 seconds)
20:39:41*kaputse[m] quit (Ping timeout: 244 seconds)
20:39:47*liblq-dev quit (Ping timeout: 240 seconds)
20:39:47*antholop[m] quit (Ping timeout: 240 seconds)
20:39:56*smlckz[m] quit (Ping timeout: 240 seconds)
20:40:00*lnxw37d4 quit (Ping timeout: 268 seconds)
20:40:04*koltrast joined #nim
20:40:05*leorize[m] quit (Ping timeout: 240 seconds)
20:40:18*FlammableDuck[m] quit (Ping timeout: 246 seconds)
20:40:25*Zoom[m] quit (Ping timeout: 240 seconds)
20:40:25*sekao[m] quit (Ping timeout: 240 seconds)
20:40:25*wiltzutm[m] quit (Ping timeout: 240 seconds)
20:40:26*BitPuffin quit (Ping timeout: 240 seconds)
20:40:26*unclechu quit (Ping timeout: 240 seconds)
20:40:34*vqrs_ joined #nim
20:40:37*retroedgetech[m] quit (Ping timeout: 268 seconds)
20:40:37*vegai1 quit (Ping timeout: 268 seconds)
20:40:37*ee7[m] quit (Ping timeout: 268 seconds)
20:40:37*MTRNord quit (Ping timeout: 268 seconds)
20:40:39*Q-Master quit (Write error: Broken pipe)
20:40:40*mal`` quit (Quit: Leaving)
20:40:40*kitech1 quit (Quit: ZNC 1.7.5 - https://znc.in)
20:40:40*blackpawn quit (Quit: ZNC 1.7.2+deb3 - https://znc.in)
20:40:40*Fish-Face quit (Quit: No Ping reply in 180 seconds.)
20:40:42*antranigv quit (Quit: ZNC 1.8.2 - https://znc.in)
20:40:42*vicfred quit (Remote host closed the connection)
20:40:43*oswin[m] quit (Ping timeout: 244 seconds)
20:40:46*xace_ quit (Remote host closed the connection)
20:41:17*r4vi joined #nim
20:41:23*lkjasdf joined #nim
20:41:26*nxnl[m] quit (Ping timeout: 240 seconds)
20:41:26*headache quit (Ping timeout: 240 seconds)
20:41:26*gollark[m]1 quit (Ping timeout: 264 seconds)
20:41:44*xace joined #nim
20:42:34*jk13579[m] quit (Ping timeout: 258 seconds)
20:42:35*i_use_arch_btw[4 quit (Ping timeout: 258 seconds)
20:42:35*vindaar[m] quit (Ping timeout: 258 seconds)
20:42:44*pbb quit (Remote host closed the connection)
20:42:44*oz quit (Quit: EOF)
20:42:45*Gustavo6046 quit (Remote host closed the connection)
20:42:45*dsrw quit (Quit: ZNC 1.7.5+deb4 - https://znc.in)
20:42:45*oz` is now known as oz
20:42:45*Gustavo6046_ is now known as Gustavo6046
20:42:45*JStoker quit (Remote host closed the connection)
20:42:45*vqrs quit (Remote host closed the connection)
20:42:56*watzon quit (Ping timeout: 240 seconds)
20:42:56*reversem3 quit (Ping timeout: 240 seconds)
20:43:03*njoseph quit (Remote host closed the connection)
20:43:03*Yardanico quit (Quit: No Ping reply in 180 seconds.)
20:43:04*Cadey quit (Remote host closed the connection)
20:43:05*Avahe[m] quit (Ping timeout: 268 seconds)
20:43:13*Yardanico joined #nim
20:44:09*njoseph joined #nim
20:48:07*JStoker joined #nim
20:57:08*Yardanico[m] joined #nim
20:57:08*Clonkk[m] joined #nim
20:57:09*Avatarfighter[m] joined #nim
20:57:10*Benjamin[m]2 joined #nim
21:00:51*zazi[m] joined #nim
21:00:52*vycb[m] joined #nim
21:00:56*alex[m]28 joined #nim
21:00:58*stisa joined #nim
21:01:24*phpostrich joined #nim
21:03:27*phpostrich quit (Client Quit)
21:11:37FromDiscord<Rika> timezones are painful given only the `times` module...
21:12:56*kaputse[m] joined #nim
21:14:06*smlckz[m] joined #nim
21:14:10*headache joined #nim
21:14:10*oswin[m] joined #nim
21:14:11*ee7[m] joined #nim
21:14:12*retroedgetech[m] joined #nim
21:14:13*vegai1 joined #nim
21:14:55*lnxw37d4 joined #nim
21:15:06*lkjasdf quit (Ping timeout: 265 seconds)
21:15:57*antholop[m] joined #nim
21:16:25*FlammableDuck[m] joined #nim
21:16:33*Zoom[m] joined #nim
21:16:33*sekao[m] joined #nim
21:16:37*liblq-dev joined #nim
21:16:40*wiltzutm[m] joined #nim
21:16:49*leorize[m] joined #nim
21:18:16*nxnl[m] joined #nim
21:20:51*jk13579[m] joined #nim
21:20:59*vindaar[m] joined #nim
21:24:44*i_use_arch_btw[4 joined #nim
21:26:18*watzon joined #nim
21:27:02*gollark[m]1 joined #nim
21:29:28*unclechu joined #nim
21:29:31*MTRNord joined #nim
21:29:46*reversem3 joined #nim
21:30:18*Avahe[m] joined #nim
21:31:13*BitPuffin joined #nim
21:34:52*abm joined #nim
21:41:01FromDiscord<Ninjaa> hi all, trying to set up nim with clion (and tried intellij also). both say:
21:41:13FromDiscord<Ninjaa> "Cannot find Nim compiler executable. Please ensure that nim is accessible through PATH environment variable."
21:41:57FromDiscord<Ninjaa> but I have nim on my path, `which nim` reports `/usr/local/nim/bin/nim` and `/usr/local/nim/bin` is on my path
21:42:09FromDiscord<Ninjaa> anyone run into the same issue with the official plugin?
21:59:15*narimiran quit (Ping timeout: 256 seconds)
22:01:42*stefantalpalaru quit (Changing host)
22:01:42*stefantalpalaru joined #nim
22:07:37FromDiscord<zero signal> @Ninjaa Is the IDE seeing the same PATH variable as your interactive shell?
22:08:54FromDiscord<zero signal> its possible that you've added `/usr/local/bin` too late in your shell profile/rc and the IDE is not getting that customization
22:09:09FromDiscord<zero signal> (edit) "`/usr/local/bin`" => "`/usr/local/nim/bin`"
22:09:43*theelous3 joined #nim
22:09:48FromDiscord<zero signal> you also might want to log out and log in again in case you havent done that since you installed nim.
22:33:19*qwr joined #nim
22:51:30*Xena is now known as Cadey
22:52:26*tane__ quit (Quit: Leaving)
22:56:05*Vladar quit (Quit: Leaving)
23:00:18*krux02`` joined #nim
23:01:44*krux02` quit (Remote host closed the connection)
23:11:05*clyybber quit (Quit: WeeChat 3.0.1)
23:34:03FromDiscord<ajusa> has anyone here ever used illwill? running into some weird issues when making a string shorter and I'm not sure if it is my fault
23:35:24*aenesidemus joined #nim
23:43:30*qwertfisch_ is now known as qwertfisch
23:44:41FromDiscord<Rika> prolly would be better to say what the issue is
23:49:32FromDiscord<ajusa> sent a code paste, see https://play.nim-lang.org/#ix=2QSv
23:53:23FromDiscord<ajusa> it works if I add an `tb.clear()` on every loop, that seems inefficient though... I thought illwill had a diffing algorithm for this sort of thing