<< 11-08-2021 >>

00:29:30FromDiscord<Jakraes> I can't find the exponent character anywhere in the documentation, does anyone know how to write an exponent?
00:29:38FromDiscord<Jakraes> Turns out e is base 10
00:29:44FromDiscord<Jakraes> And I can't find anything else
00:32:32FromDiscord<Elegantbeef> You want a base 2 exponent?
00:32:56FromDiscord<Jakraes> Yup
00:33:09FromDiscord<Elegantbeef> so then just `val shl exponent` \:D
00:33:34FromDiscord<Elegantbeef> !eval 2 shl 3
00:33:36NimBotCompile failed: /usercode/in.nim(1, 3) Error: expression '16' is of type 'int literal(16)' and has to be used (or discarded)
00:33:45FromDiscord<Elegantbeef> !eval echo 2 shl 3
00:33:48NimBot16
00:33:54FromDiscord<Jakraes> Nice, thank you!
00:37:05FromDiscord<Elegantbeef> Though that's not actually exponent, i think it might be what you want \:D
00:37:42FromDiscord<Elegantbeef> though there are bit literals like `0b10000`
00:54:55FromDiscord<Jakraes> Oh boy how do I work with that?
00:55:10FromDiscord<Jakraes> I just made an exponent function but I assume it's much much slower than bit literals
00:55:48FromDiscord<Elegantbeef> The bit literal does as it looks sets a specific set of bits to on
00:55:59FromDiscord<Elegantbeef> Well show the code and might be able to suggest improvements if interested
00:57:15FromDiscord<Jakraes> I've never worked with bits and what not, although my teacher scraped a bit of bit shifting but I didn't understand anything
00:57:25FromDiscord<Jakraes> https://media.discordapp.net/attachments/371759389889003532/874818755220373504/Screenshot_9.png
00:57:44FromDiscord<Jakraes> It only works with ints but yeah, it's what I need it for
00:58:50FromDiscord<undersquire> why dont u use result instead of final
00:58:52FromDiscord<Elegantbeef> To summarize bits when talking about ints it works just like base 10 in that `213` is (3 \ 10^0) + (1 \ 10^1) + (2\ \ 10^2)
00:59:49FromDiscord<Elegantbeef> So with a `0b1010` it's `(0 2^0) + (1 2^1) + (0 2^2) + (1 2^3)` or `10`
01:00:22FromDiscord<Elegantbeef> I just mentioned the bit literal due to not knowing if this was for values at runtime or compile time
01:01:40FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3vBv
01:02:25FromDiscord<Elegantbeef> Secondly your exponent doesnt work properly `assert 10.exponent(0) == 1` fails
01:03:27FromDiscord<Jakraes> Oh yeah I could definitely use result
01:04:07FromDiscord<Jakraes> Oh so bits are read backwards?
01:04:23FromDiscord<Elegantbeef> Finally math(just realized this myself) does have `^` so you can just do `import std/math` to get `10^10` to work
01:04:25FromDiscord<Elegantbeef> They're read the same as base 10 on most systems
01:04:50FromDiscord<Elegantbeef> Right to left though stored opposite
01:05:38FromDiscord<Jakraes> Yeah that's much better, perhaps I could even use `` instead of exponent as the name of the proc
01:06:22FromDiscord<Jakraes> Oh damn, it has? I found it odd that it was lacking that but I guess it just didn't have an explicit name, thank you once again!
01:49:31*arkurious quit (Quit: Leaving)
02:03:44FromDiscord<gogolxdong (liuxiaodong)> How to convert seq to varargs?
02:04:32FromDiscord<Elegantbeef> varargs accepts a single entry, an array or a seq
02:09:38FromDiscord<leorize> varargs is just openArray with some extra sugar
02:53:50*rockcavera quit (Remote host closed the connection)
03:01:54*flynn quit (Remote host closed the connection)
03:03:02*flynn joined #nim
03:13:50FromDiscord<gogolxdong (liuxiaodong)> Is it possible to db.exec(sql"INSERT INTO tables VALUES(?,?,?,?,?)" , row[0..4])
03:18:51FromDiscord<retkid> Do you think I could combine elixir and nim for projects
03:19:11FromDiscord<retkid> Idk if they’ll play well
03:20:58FromDiscord<Elegantbeef> Depends on what you're after
04:06:02*supakeen quit (Quit: WeeChat 3.2)
04:06:30*supakeen joined #nim
04:17:02FromDiscord<hamidb80> hey
04:17:47FromDiscord<hamidb80> assume a `someObj` is a ref object
04:20:41FromDiscord<hamidb80> sent a code paste, see https://play.nim-lang.org/#ix=3vCb
04:20:57FromDiscord<Elegantbeef> The former
04:21:12FromDiscord<hamidb80> ?
04:21:24FromDiscord<Elegantbeef> `subObj1`
04:21:54FromDiscord<Jakraes> So uhm, quick question, rand from random stays the same when compiled, is there a way to fix that?
04:22:04FromDiscord<hamidb80> ok thanks
04:22:05FromDiscord<Elegantbeef> call `randomize()`
04:22:26FromDiscord<Elegantbeef> You can also provide a seed that will randomize specifically
04:23:08FromDiscord<Jakraes> Yeah I thought of a seed but I assumed there was an easier way
04:23:19FromDiscord<hamidb80> what is the logic behind calling `randomize` proc before generating random number? i dont get it
04:23:35FromDiscord<Elegantbeef> without it the seed is `0` so it's not random
04:24:32FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3vCd
04:24:45FromDiscord<Elegantbeef> It'll output the same everytime, insert a randomize before it, it'll magically be different
04:25:16FromDiscord<hamidb80> +1
04:28:31FromDiscord<ChikinNug> Whats the preferred paradigm of nim?
04:30:37FromDiscord<Elegantbeef> Procedural is what it tends towards
04:32:44FromDiscord<ChikinNug> thanks
04:44:25FromDiscord<hamidb80> sent a code paste, see https://play.nim-lang.org/#ix=3vCg
04:45:58FromDiscord<hamidb80> seems like `cpp` generates different code
04:46:18FromDiscord<hamidb80> im on js backend
04:46:28FromDiscord<hamidb80> (edit) "im on" => "using"
04:47:24FromDiscord<hamidb80> got it https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-importcpp-pragma
04:54:06madpropsnot sure why the docs say "Instead of using map and filter, consider using the collect macro from the sugar module."
05:06:58madpropsoh I see now
05:07:14madpropsit allows for more elaborate functions
05:10:42FromDiscord<Elegantbeef> prestige where are you, i need to know how to know if a window should be floating?!
05:15:57FromDiscord<vegai> do nim developers typically use nim as a scripting and/or configuration language, or do you use something else instead?
05:16:50FromDiscord<Elegantbeef> Many use nimscript for configuring their projects, and yes nim is pretty easy to use for one off scripts
05:27:07FromDiscord<Elegantbeef> Ah nvm i found it, it's the same logic that i gave you forever ago, size is the only concern
05:27:37FromDiscord<Elegantbeef> Though you do have some X memory leaks due to not calling `XFree` on the stuff you `XAlloc`
05:47:13FromDiscord<codic> iirc you sayit's a float if it's a dialog, utility, toolbar or one more (I think it was splash screen) window
05:47:42FromDiscord<codic> from the _NET_WM_WINDOW_TYPE
05:47:45FromDiscord<codic> oh nvm you found your answer
05:47:48FromDiscord<codic> yeah writing wms is really fun
05:48:12FromDiscord<codic> reparenting ended up to be a silly rabbit hole so I'm going to take the KatriaWM route and just draw window decorations as separate windows by hand
06:14:15FromDiscord<vegai> right, thanks
06:35:58*crem quit (Quit: WeeChat 3.0)
06:37:36*Vladar joined #nim
06:37:41*crem joined #nim
06:44:24*max22- joined #nim
07:41:53*PMunch joined #nim
08:16:58FromDiscord<gogolxdong (liuxiaodong)> Is there any proc like `builtin_bswap16`
09:39:21FromDiscord<enthus1ast> how do you publish the html docs of your project through github? do you create a link in the readme.md that points to the\: https://htmlpreview.github.io/?https://github.com/..... ?
09:40:42FromDiscord<enthus1ast> i could do this manually and create a gh-pages branch and copy the docs over but it would be nice to just have them in the master branch
09:51:23FromDiscord<windowsboy111> guys, what do you think about mixing languages together such as injecting literal C code into nim↵↵wouldn't it be a bad idea
09:51:29FromDiscord<proud linux user> is there any differnece in using let over var for immutable variables??
09:51:52FromDiscord<Rika> Var isn’t immutable
09:51:54FromDiscord<windowsboy111> I think they are faster...?
09:52:01FromDiscord<Rika> No difference in speed
09:52:02FromDiscord<windowsboy111> (edit) "they" => "immutables"
09:52:11FromDiscord<windowsboy111> huh really, ok
09:52:16FromDiscord<Rika> In reply to @windowsboy111 "guys, what do you": You can already do this via the emit pragma
09:52:25FromDiscord<windowsboy111> In reply to @Rika "You can already do": yes I am talking about emit pragma
09:52:52FromDiscord<Rika> In reply to @windowsboy111 "huh really, ok": There probably is a difference but it is negligible or not reliably better
09:53:20FromDiscord<Rika> In reply to @windowsboy111 "yes I am talking": Okay so I don’t understand what you mean then
09:53:22FromDiscord<windowsboy111> and `const` is much faster (if used correctly) right?
09:53:32FromDiscord<windowsboy111> since it's compile time
09:53:39FromDiscord<windowsboy111> and the compiler copy and paste the values
09:53:44FromDiscord<Rika> You trade memory and binary size for speed
09:53:56FromDiscord<Rika> And compile time of course
09:54:00FromDiscord<proud linux user> In reply to @Rika "Var isn’t immutable": i mean variables that dont change
09:54:14FromDiscord<proud linux user> ohyes thankyou
09:54:31FromDiscord<Rika> Then there is no noticeable difference other than you aren’t stopped by the compiler when you change a var
09:56:48FromDiscord<proud linux user> and i noticed that danger is slower than reelase on arm64/android
09:57:19FromDiscord<windowsboy111> In reply to @richard stallmen(crazy GNU guy) "and i noticed that": you mean when you run the program or when you compile?
09:58:16FromDiscord<proud linux user> when you run
09:59:22FromDiscord<proud linux user> sent a code paste, see https://play.nim-lang.org/#ix=3vDq
09:59:24FromDiscord<proud linux user> danger(^)
10:00:23FromDiscord<proud linux user> my phone is getting slower :(
10:07:16FromDiscord<windowsboy111> <https://pypi.org/project/nim4py> what the hell is this
10:09:29FromDiscord<proud linux user> sent a code paste, see https://play.nim-lang.org/#ix=3vDt
10:09:36FromDiscord<proud linux user> you didnt read descriptioj windozeboy
10:11:20FromDiscord<proud linux user> <https://pypi.org/project/py2nim> and this is a total bruh project
10:11:34FromDiscord<proud linux user> embed python inside nim and call python in runtime
10:16:07FromDiscord<retkid> In reply to @Elegantbeef "Depends on what you're": Looking for a strong language that’s fast and similar enough to nim that I can use it to makeup for any shortcomings from Jim’s small community
10:16:51FromDiscord<retkid> In reply to @richard stallmen(crazy GNU guy) "embed python inside nim": That’s the worst thing
10:17:05FromDiscord<proud linux user> ohyes agreed
10:17:07FromDiscord<Rika> In reply to @retkid "Looking for a strong": Doesn’t exist
10:17:18FromDiscord<proud linux user> In reply to @retkid "Looking for a strong": who is jim
10:17:20FromDiscord<Rika> Unless you’re happy to use Lisp
10:17:24FromDiscord<proud linux user> bruh
10:17:49FromDiscord<retkid> In reply to @Rika "Unless you’re happy to": I was thinking about elixr or crystal
10:17:53FromDiscord<Rika> Or if you think Go and Rust are “similar enough”
10:18:09FromDiscord<retkid> Rust is the obvious answer
10:18:18FromDiscord<retkid> Imo
10:18:34FromDiscord<Rika> Rust is the furthest language from Nim I would almost say
10:18:45FromDiscord<Rika> Actually no
10:18:46FromDiscord<proud linux user> farthest?
10:18:46FromDiscord<Rika> Zig is
10:18:48FromDiscord<retkid> I haven’t tried to learn rust
10:18:54FromDiscord<proud linux user> good
10:19:06FromDiscord<retkid> I’ve heard Rust is cool tho
10:19:09FromDiscord<Rika> Rust has good practices
10:19:15FromDiscord<Rika> And cool ideas
10:19:27FromDiscord<Rika> But I will never be able to get over the borrow checker
10:19:36FromDiscord<retkid> https://media.discordapp.net/attachments/371759389889003532/874960230985920522/image0.png
10:19:40FromDiscord<retkid> I hate this
10:19:45FromDiscord<Rika> Hate what
10:19:54FromDiscord<retkid> Just
10:20:04FromDiscord<retkid> The way you have to think to write this
10:20:13FromDiscord<retkid> It’s like Java and C fucked
10:20:18FromDiscord<retkid> Or something
10:20:24FromDiscord<proud linux user> owu
10:20:28FromDiscord<Rika> I dunno
10:20:51FromDiscord<Rika> If you want a Nim that is big then it would be easier to help make Nim big than to search for a similar language to Nim that is already big
10:21:25FromDiscord<proud linux user> so nim is not big?
10:21:29FromDiscord<retkid> I just want something that can work with it
10:21:33FromDiscord<retkid> Nim is pretty big
10:22:11FromDiscord<proud linux user> not like c++ :)
10:23:30FromDiscord<retkid> That’s like saying “oh my town of people is pretty big, 30,000 people or so”
10:23:33FromDiscord<retkid> Then you go
10:23:39FromDiscord<retkid> “NOT TOKYO BIG”
10:37:21FromDiscord<retkid> :nimRawr:
10:38:21FromDiscord<gogolxdong (liuxiaodong)> Is there any bech32 library ?
10:45:56FromDiscord<retkid> There really are very few languages like nim
10:51:43FromDiscord<tbrekalo> Anyone using nimlsp with nvim-coc? ↵I have issues getting it to work
10:55:35FromDiscord<Paupi woodberg> Am i the only teen here that is new to nim😭
10:59:21emeryPaupi woodberg: better nim than python
11:02:57FromDiscord<Rika> In reply to @tbrekalo "Anyone using nimlsp with": i cant at least try to help debug, what's the issue
11:05:15*PMunch quit (Remote host closed the connection)
11:08:06FromDiscord<exelotl> In reply to @retkid "": unreachable more like unreadable amirite
11:09:53*PMunch joined #nim
11:10:19*PMunch quit (Read error: Connection reset by peer)
11:10:53*PMunch joined #nim
11:11:07*PMunch quit (Read error: Connection reset by peer)
11:14:24FromDiscord<tbrekalo> In reply to @Rika "i cant at least": I did the standard setup form coc github page and it simply does not work
11:18:29*rockcavera joined #nim
11:18:29*rockcavera quit (Changing host)
11:18:29*rockcavera joined #nim
11:20:45FromDiscord<Rika> semantic highlighting is independent of the completion plugin
11:20:53FromDiscord<tbrekalo> ye; just realized that
11:21:38FromDiscord<tbrekalo> what do you recommend to add to my vimrc?
11:22:04FromDiscord<Rika> check :messages
11:22:38FromDiscord<tbrekalo> Sorry, I do not understand what you mean
11:24:01FromDiscord<Rika> do the command `:messages` when you open a nim file
11:34:57*PMunch joined #nim
11:43:02FromDiscord<tbrekalo> nothing happens
11:45:02*PMunch quit (Ping timeout: 258 seconds)
11:46:01FromDiscord<Rika> Strange
11:46:36FromDiscord<Rika> When you do “:hl” and scroll do you see any entries with “Nim” on them
11:46:58FromDiscord<tbrekalo> I know that this exists: https://github.com/alaviss/nim.nvim But I would like to have a pure nvim-coc setup
11:47:01nrds<prestigebot99> itHub: 7"Nim plugin for NeoVim"
11:47:06FromDiscord<Rika> Oh
11:47:10FromDiscord<Rika> I misunderstood
11:47:11*PMunch joined #nim
11:47:25FromDiscord<Rika> Nim on LSP has no semantic highlighting implemented
11:47:31FromDiscord<Rika> As of now
11:47:44FromDiscord<tbrekalo> Ugh; Guess I'll stick to VS Code for nim stuff
11:47:55FromDiscord<Rika> Why not just use the plugin?
11:48:08FromDiscord<Rika> What’s so repulsive about using the plugin
11:48:23FromDiscord<Rika> I’ve never actually understood why people don’t want to use the plugin
11:48:51FromDiscord<Rika> If you took the opportunity to switch to neovim why not use the plugin for it…
11:49:18FromDiscord<tbrekalo> I use neovim 80% of the time
11:49:45FromDiscord<Rika> Well then that makes even less sense to me
11:50:02FromDiscord<tbrekalo> But; ugh.. just feel lazy setting it up for nim
11:50:07FromDiscord<Rika> Okay
11:50:09FromDiscord<Rika> You do you
11:50:11FromDiscord<tbrekalo> I'll give it a tray
11:50:14FromDiscord<tbrekalo> (edit) "tray" => "try"
11:51:10*arkurious joined #nim
11:51:29*PMunch quit (Ping timeout: 248 seconds)
11:58:19FromDiscord<retkid> In reply to @emery "Paupi woodberg: better nim": You’d rather people use nim than py as their first language
11:58:26FromDiscord<retkid> Mine was Bash
11:58:59FromDiscord<retkid> Still don’t know how to do anything in bash but that’s because thank god I don’t need to use it often
11:59:57FromDiscord<retkid> When you think in bash you’ve gone down the wrong path
12:02:09FromDiscord<konsumlamm> In reply to @retkid "Looking for a strong": D is pretty similar, albeit not much bigger
12:02:18FromDiscord<proud linux user> albeit ?
12:02:23FromDiscord<proud linux user> where is this cominf from
12:02:32FromDiscord<proud linux user> all be it?
12:02:34FromDiscord<proud linux user> ????
12:04:37FromDiscord<zetashift> In reply to @Rika "If you want a": Factsss
12:05:10FromDiscord<zetashift> In reply to @tbrekalo "Anyone using nimlsp with": I just use it with lspconfig
12:05:19FromDiscord<retkid> In reply to @konsumlamm "D is pretty similar,": was thinking about D but isn't it a microsoft baby
12:05:32*PMunch joined #nim
12:05:37FromDiscord<zetashift> It isn't...at all ahaha
12:05:50FromDiscord<tbrekalo> In reply to @zetashift "I just use it": You have semantic highlight?
12:05:56FromDiscord<retkid> oh sorrt haha\
12:06:01*supakeen quit (Quit: WeeChat 3.2)
12:06:05FromDiscord<retkid> sent a code paste, see https://play.nim-lang.org/#ix=3vE8
12:06:05FromDiscord<retkid> thats pretty cool
12:06:12FromDiscord<retkid> but uh
12:06:24FromDiscord<retkid> h
12:06:26FromDiscord<retkid> (edit) "h" => "eh"
12:06:31*supakeen joined #nim
12:06:40FromDiscord<zetashift> In reply to @tbrekalo "You have semantic highlight?": I use alaviss nim.nvim for highlighting, lspconfig only handles the diagnostics
12:06:43*max22- quit (Ping timeout: 268 seconds)
12:07:03FromDiscord<tbrekalo> In reply to @zetashift "I use alaviss nim.nvim": thanks 👍🏽
12:08:56FromDiscord<Rika> sent a code paste, see https://play.nim-lang.org/#ix=3vE9
12:10:57FromDiscord<proud linux user> sent a code paste, see https://play.nim-lang.org/#ix=
12:11:44FromDiscord<konsumlamm> In reply to @richard stallmen(crazy GNU guy) "where is this cominf": dunno, look it up
12:12:54*djanatyn joined #nim
12:14:50FromDiscord<haxscramper> If I understand correctly, nim forum update bot is routed via old IRC (freenode) and then to discord?
12:15:10FromDiscord<haxscramper> It wasn't transferred when we moved to libera chat
12:16:36FromDiscord<Rika> yes
12:17:09PMunchHas Nimble started being more strict about underscores in names?
12:17:36PMunchI've had ast_pattern_matching in the NimLSP project listed as astpatternmatching, but that apparently fails now..
12:19:00FromDiscord<proud linux user> try camel?
12:38:54PMunchIt's easy to fix, I was just wondering what had actually changed
12:45:45FromDiscord<PsychoClay> how do i compare 2 types?
13:19:26FromDiscord<@bracketmaster-5a708063d73408ce4> can I pass strings by address in Nim?
13:24:01FromDiscord<exelotl> they are passed by address already, where possible
13:29:45PMunchIf you need to pass it in a way that you can modify the string then use `var string` as the type
13:29:59PMunchie: https://play.nim-lang.org/#ix=3vEA
13:31:42FromDiscord<System64 ~ Flandre Scarlet> Do you know how can I install the portaudio library globally on my system please?
13:34:09PMunchnimble install portaudio?
13:39:20FromDiscord<System64 ~ Flandre Scarlet> I installed NordAudio but
13:39:54FromDiscord<System64 ~ Flandre Scarlet> https://media.discordapp.net/attachments/371759389889003532/875010638668243045/unknown.png
13:40:01FromDiscord<System64 ~ Flandre Scarlet> It says that
13:44:58FromDiscord<System64 ~ Flandre Scarlet> So I can't compile
13:49:03FromDiscord<tbrekalo> Have few questions about nim object semantics. If i define object with: `type MyType = object` I cannot create a pointer to object of that type later in the code? I am wondering is there a feature like `std::unique_ptr<T>` in nim. Where I want to transfer ownership of some heap allocated memory and not have to worry about deleting it manually once it is out of scope
13:49:39FromDiscord<Rika> regular objects are stack allocated
13:49:51FromDiscord<Rika> you can make a pointer to it, but its not "safe"
13:50:08FromDiscord<Rika> nim will have destructors in the future
13:50:11FromDiscord<Rika> --gc:arc
13:50:25FromDiscord<System64 ~ Flandre Scarlet> aren't objects already reference type already?
13:50:39FromDiscord<Rika> `type A = object` are not reference types
13:51:06FromDiscord<tbrekalo> But they are always copied along with their content?
13:51:40FromDiscord<Rika> depending on size
13:51:50FromDiscord<Rika> if the object is of sufficient size, theyre passed by pointer
13:51:55*xet7 joined #nim
13:52:09FromDiscord<Rika> or if the function requires a `var` param.
13:52:15FromDiscord<System64 ~ Flandre Scarlet> this is automatic?
13:52:16FromDiscord<Rika> yes
13:52:22FromDiscord<System64 ~ Flandre Scarlet> Oh alright
13:52:26FromDiscord<tbrekalo> Like if an object is larger than let's say 16 bytes, if I pass it to a function it's pass by pointer? Ain't that a bit fuzzy?
13:52:31FromDiscord<Rika> yes
13:52:45FromDiscord<Rika> it doesnt matter since the parameter is immutable
13:53:08FromDiscord<Rika> and if you're using `unsafeAddr` you're doing something unsafe anyway
13:53:32FromDiscord<Rika> so it really doesnt matter; as ive said above `var` parameters are always passed by ptr
13:53:49FromDiscord<tbrekalo> but if I do it like `proc doStuff(obj: var LargType)` same applies? I manually have to make a copy if I want to modify it
13:54:05FromDiscord<tbrekalo> Ok; thanks @Rika 👍🏽
13:54:08FromDiscord<Rika> obj is always by ptr in that case
13:54:22FromDiscord<tbrekalo> Thanks
13:55:04FromDiscord<Rika> if it were obj: sometype then obj can be either copied or by ptr depending on if `sizeof sometype > (sizeof float) 2`
13:55:07FromDiscord<Rika> (edit) "float)" => "float) "
13:55:36FromDiscord<levovix> In reply to @System64 "Do you know how": As I know, on Windows, you cannot. You should download portaudio, compile it, then passL "-LC:/path/to/.lib/directory"
13:58:03FromDiscord<tbrekalo> So there's no way of stealing a content of an object? Like If I have a very large string and I pass it to a constructor of an object the member will have a copy of a string instead of just taking a memory pointer from it?
13:59:57FromDiscord<Rika> In reply to @tbrekalo "So there's no way": there's probably `lent` to help, i dont really recall
14:00:29FromDiscord<Rika> https://nim-lang.org/docs/destructors.html#move-semantics
14:01:03*xet7_ joined #nim
14:01:16*xet7 quit (Read error: Connection reset by peer)
14:02:50FromDiscord<System64 ~ Flandre Scarlet> In reply to @levovix "As I know, on": to dll or lib? and how can I do it with Nim?
14:04:55FromDiscord<levovix> sent a code paste, see https://play.nim-lang.org/#ix=3vES
14:05:53*PMunch quit (Quit: Leaving)
14:06:27FromDiscord<System64 ~ Flandre Scarlet> hummmmm is PortAudio GPL or smth?↵I know statically linking libs can bring licencing issues
14:10:00FromDiscord<levovix> seems like it isn't GPL: https://github.com/PortAudio/portaudio/blob/master/LICENSE.txt
14:10:18*xet7_ quit (Ping timeout: 258 seconds)
14:12:41FromDiscord<gerwy> is it possible to make selenium work with nim? By python bridge or maybe bindings for JS?
14:13:08FromDiscord<System64 ~ Flandre Scarlet> I'll gotta try that then
14:13:19FromDiscord<gerwy> i see that someone tried to do it but it doesn't seem like its finished
14:20:39FromDiscord<gerwy> oh i found webdriver++ which i guess could work for me but its c++ so i have no idea how to use it
14:20:47FromDiscord<gerwy> but its just a header
14:21:46FromDiscord<System64 ~ Flandre Scarlet> In reply to @levovix "to lib, because linking": Doesn't work https://media.discordapp.net/attachments/371759389889003532/875021174051065886/unknown.png
14:28:10FromDiscord<levovix> sent a code paste, see https://play.nim-lang.org/#ix=3vEV
14:30:41FromDiscord<System64 ~ Flandre Scarlet> Still have the same error
14:32:11*max22- joined #nim
14:33:30FromDiscord<System64 ~ Flandre Scarlet> https://media.discordapp.net/attachments/371759389889003532/875024127700922398/unknown.png
14:34:51FromDiscord<levovix> hmm
14:34:55FromDiscord<levovix> try to use full path to home directory, instead of ~
14:37:18FromDiscord<System64 ~ Flandre Scarlet> IT WORKS!
14:55:30*notchris_ is now known as notchris
15:05:40FromDiscord<levovix> Why ref object is invalid type for const?
15:06:20FromDiscord<levovix> Why can't the compiler calculate the value at compile time, then allocate memory at runtime and copy value into?
15:11:44nrds<Prestige99> Seems odd to me - if you want that, I'd create a const for the value, then have `let foo = myConst` I guess?
15:14:07FromDiscord<levovix> The problem is that the type is declared as a ref object and all functions work with it as a reference
15:14:25nrds<Prestige99> I suppose I would need to see an example of what you're trying to accomplish
15:20:07FromDiscord<planetis> there is halonium\: https://github.com/halonium/halonium↵(@gerwy)
15:22:28FromDiscord<haxscramper> In reply to @levovix "Why ref object is": https://github.com/nim-lang/Nim/pull/15528
15:25:01FromDiscord<levovix> thanks, it's good that it may be added to Nim
15:26:26FromDiscord<planetis> tbrekalo\: you can use a ref string or a copy on write implementation of strings
15:30:33FromDiscord<⃟⃟> what is the difference between var and let
15:31:30FromDiscord<levovix> let makes variable immutable
15:52:50FromDiscord<gerwy> In reply to @planetis "there is halonium\: https://github.com/halonium/hal": Broooo what??
15:53:24FromDiscord<gerwy> 1. Why there is so much things already made for nim thats insane↵2. You know so much about nim and its projects its amazing
15:59:57FromDiscord<System64 ~ Flandre Scarlet> Is it normal it crashes at this line? (well it catches an exception at least) https://media.discordapp.net/attachments/371759389889003532/875045886495981628/unknown.png
16:02:09FromDiscord<Rika> well what exception was raised?
16:03:35FromDiscord<⃟⃟> what about let and const
16:04:47FromDiscord<System64 ~ Flandre Scarlet> https://media.discordapp.net/attachments/371759389889003532/875047093499224124/unknown.png
16:07:05FromDiscord<Rika> likely means that what getDeviceInfo returned is nil
16:10:09FromDiscord<levovix> In reply to @⃟⃟ "what about let and": const is evaluated at compile time
16:10:19FromDiscord<System64 ~ Flandre Scarlet> > outputParameters.device = getDefaultOutputDevice()↵Returns -1
16:10:27FromDiscord<System64 ~ Flandre Scarlet> I checked with echo
16:29:40FromDiscord<System64 ~ Flandre Scarlet> I have a pointer to a buffer (so an array)↵How can I read that in a for loop please?
16:30:45FromDiscord<Unaimend> Whats the right way to convert `seq[char` to `string`?
16:31:18FromDiscord<Unaimend> https://play.nim-lang.org/#ix=3vG3
16:31:25FromDiscord<Unaimend> This does not work as intented
16:31:31FromDiscord<tbrekalo> What's the practice for having implementation/private types/functions in nim packages?
16:31:47FromDiscord<Unaimend> (edit) "intented" => "intended"
16:33:37FromDiscord<haxscramper> Put type definitions in the `private/` directory of a package
16:33:53FromDiscord<haxscramper> If you need to use type only in a single module don't export it
16:34:19FromDiscord<levovix> sent a code paste, see https://play.nim-lang.org/#ix=3vG4
16:34:49FromDiscord<haxscramper> In reply to @Unaimend "Whats the right way": `echo cast[string](test)` or `test.join("")`
16:35:06FromDiscord<haxscramper> First is faster but relies on implementation details
16:43:38FromDiscord<System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=3vG9
16:43:53FromDiscord<Unaimend> In reply to @haxscramper "`echo cast[string](test)` or `test.join("")`": Thank you
16:45:57FromDiscord<levovix> sent a code paste, see https://paste.rs/sUV
16:46:58FromDiscord<Yardanico> In reply to @System64 "I meant I want": just cast your pointer to an UncheckedArray and loop over each index
16:47:20FromDiscord<System64 ~ Flandre Scarlet> can't I just do echo p[index]?
16:47:36FromDiscord<Yardanico> nim has a strict type system unlike C - a pointer is not an array
16:48:13FromDiscord<System64 ~ Flandre Scarlet> and what is the latest line for? Converting to unchecked array?
16:48:37FromDiscord<Yardanico> no, my solution is different from the one levovix is proposing
16:49:13FromDiscord<Yardanico> sent a code paste, see https://play.nim-lang.org/#ix=3vGd
16:49:41FromDiscord<tbrekalo> Can you have enum aliases in nim? Like you want to have two enum values sharing the same int value?
16:49:52FromDiscord<Yardanico> sent a code paste, see https://play.nim-lang.org/#ix=3vGe
16:50:09FromDiscord<Yardanico> instead of `char` you can use a more appropriate type if needed
16:51:59FromDiscord<levovix> In reply to @tbrekalo "Can you have enum": from Nim's standart library https://media.discordapp.net/attachments/371759389889003532/875058976587395112/unknown.png
16:52:32FromDiscord<levovix> (edit) "standart" => "standard"
16:53:03FromDiscord<tbrekalo> In reply to @levovix "from Nim's standard library": thanks
16:58:40FromDiscord<undersquire> how does the Nim {.magic.} work lol
16:58:50FromDiscord<undersquire> (edit) "Nim" => "pragma"
17:00:11FromDiscord<Yardanico> In reply to @undersquire "how does the pragma": {.magic.} means it's a compiler magic and the implementation is in the compiler itself
17:00:23FromDiscord<undersquire> Lol why define bool in the stdlib then
17:00:34FromDiscord<undersquire> why not just define bool, true, and false in the compiler
17:04:32FromDiscord<tbrekalo> Good question
17:05:49FromDiscord<undersquire> using {.magic.} just adds complexity as it can be confusing as to where and how thats implemented
17:06:37FromDiscord<undersquire> also why doesnt the stdlib's `basic_types.nim` file contain floats too? it defines all int types as well as bool, but not floats even though they are basic types
17:06:43FromDiscord<undersquire> (edit) "also why doesnt the stdlib's `basic_types.nim` file contain floats too? it defines all int types as well as bool, but not floats even though they are basic types ... " added "(just curious)"
17:06:54FromDiscord<konsumlamm> stuff like `if` has tocknow about `bool` though
17:07:01FromDiscord<konsumlamm> (edit) "tocknow" => "to know"
17:07:06FromDiscord<undersquire> and it should
17:07:09FromDiscord<undersquire> (edit) "and it should ... " added "via the compiler"
17:07:15FromDiscord<konsumlamm> so it can't just be defined in the stdlib
17:07:40FromDiscord<codic> the benefit of defining it in system is docs also
17:07:45FromDiscord<undersquire> yeah thats what im saying, types like bool and int should just be defined by the compiler
17:07:52FromDiscord<undersquire> In reply to @codic "the benefit of defining": docs on ints XD
17:08:19FromDiscord<konsumlamm> In reply to @undersquire "yeah thats what im": i'm pretty sure they are, that's what `{.magic.}` means
17:08:49FromDiscord<levovix> In reply to @undersquire "docs on ints XD": why not?)
17:08:53FromDiscord<undersquire> sent a code paste, see https://paste.rs/1yN
17:08:53FromDiscord<undersquire> XD
17:09:27FromDiscord<undersquire> In reply to @undersquire "but they are also": this just seems kinda pointless XD, its just redefining builtin types
17:10:48FromDiscord<levovix> not, it insn't REdefinig builtin types
17:11:09*xet7 joined #nim
17:11:21FromDiscord<levovix> it IS defining it)
17:11:29FromDiscord<undersquire> its defining them using the defined types in the compiler
17:11:36*vicfred joined #nim
17:11:48FromDiscord<undersquire> why not have the compiler just define them directly lol idk it just seems weird
17:14:26FromDiscord<levovix> so, not all builtin types defined with {.magic.} https://media.discordapp.net/attachments/371759389889003532/875064623529873488/unknown.png
17:14:42FromDiscord<haxscramper> It is better for type to have a concrete PSym that is bound to declaration
17:14:54FromDiscord<undersquire> and also how are sequences compiler defined, they are heap allocated arrays those should be code defined imo
17:14:55FromDiscord<haxscramper> Otherwise type handling would have even more edge cases
17:15:21FromDiscord<undersquire> In reply to @haxscramper "Otherwise type handling would": i didnt mean all types, just basic types like int, float, and bool
17:15:25FromDiscord<haxscramper> In reply to @undersquire "and also how are": They require some additional ccgen support, as well as strings
17:15:32FromDiscord<undersquire> oh
17:16:03FromDiscord<undersquire> cause u could write ur own sequence implemention using create and delete
17:16:04FromDiscord<haxscramper> In reply to @undersquire "i didnt mean all": And? It is still edge casing some types
17:16:16FromDiscord<undersquire> In reply to @haxscramper "And? It is still": yeah ig
17:16:47FromDiscord<haxscramper> And there are not just floats, we also have ptr, ref, int, float, double cXXX types, common strings and string arrays ... etc
17:17:02FromDiscord<undersquire> ref are just pointers that are tracked by the compiler
17:17:07FromDiscord<undersquire> (edit) "ref are just pointers that are tracked by the compiler ... " added "right?"
17:17:22FromDiscord<undersquire> aka they must point to a value
17:17:37FromDiscord<undersquire> In reply to @haxscramper "And there are not": yeah ik about strings, those are not primitives
17:17:55FromDiscord<haxscramper> In reply to @undersquire "ref are just pointers": yes. But they are magic types as well https://github.com/nim-lang/Nim/blob/version-1-4/lib/system.nim#L41
17:17:59FromDiscord<undersquire> (edit) "strings, those" => "strings but they"
17:18:18FromDiscord<haxscramper> And there are some types that are really magic, like `typed`
17:19:00FromDiscord<undersquire> idk i just thought it was kinda weird to redefine builtin types that could just be compiler implemented keywords
17:19:23FromDiscord<haxscramper> again, this would make things more complicated
17:19:28FromDiscord<undersquire> how
17:20:18FromDiscord<levovix> > It is better for type to have a concrete PSym that is bound to declaration
17:20:21FromDiscord<haxscramper> because now semcheck has to operate on some separate concept of "built-in" type rather than having everything as a `PType`. Or `PType` must be a discriminant with different branches
17:20:43FromDiscord<konsumlamm> In reply to @undersquire "idk i just thought": again, it's no redefinition, it's the definition
17:21:04FromDiscord<haxscramper> sempass just finds type and registers it
17:21:22FromDiscord<haxscramper> Some special codegen support does not mean it has to be removed from declaration
17:21:26FromDiscord<undersquire> ah so it has to do with how the compiler was built?
17:21:34FromDiscord<haxscramper> yes, of course, what else?
17:21:58FromDiscord<haxscramper> like, what else can there possibly be to explain why core language definitions are made on one way
17:21:59FromDiscord<haxscramper> or another
17:22:08FromDiscord<haxscramper> of course it is an implementation detail
17:22:11FromDiscord<undersquire> idk lol
17:22:26FromDiscord<undersquire> ive just never seen that done b4
17:22:46FromDiscord<undersquire> (edit) "ive just never seen that done b4 ... " added "thats all"
17:23:03FromDiscord<haxscramper> also - you can put docs on built-in types
17:23:14FromDiscord<undersquire> yeah XD
17:23:39FromDiscord<haxscramper> but that is a minor point, just writing rst document with a table is almost as good
17:24:11FromDiscord<undersquire> ye if I made a full blown language I would just manually write the docs for the few builtin types
17:25:47FromDiscord<undersquire> also what is the difference between `addr` and `unsafeAddr`? they have the same definition in stdlib and they seem to do the same thing
17:26:30FromDiscord<haxscramper> `unsafeAddr` allso to take address where it is "not safe" - like `const`, `let` (because they are immutable)
17:26:53FromDiscord<undersquire> A
17:26:55FromDiscord<undersquire> (edit) "A" => "Ah"
17:26:55FromDiscord<haxscramper> But they are virtually the same, https://github.com/nim-lang/RFCs/issues/369
17:27:05FromDiscord<undersquire> so you cannot take an addr of a const?
17:27:12FromDiscord<undersquire> (edit) "const?" => "const or let without using unsafeAddr?"
17:27:22FromDiscord<haxscramper> correct
17:27:28FromDiscord<undersquire> ah ok that makes more sense
17:27:41FromDiscord<undersquire> I also saw some issue or request to merge the two somewhere
17:27:48FromDiscord<haxscramper> I linked it
17:27:51FromDiscord<undersquire> oh is that the issue
17:28:03FromDiscord<undersquire> yeah
17:28:06FromDiscord<undersquire> taht one
17:59:02FromDiscord<tbrekalo> how do you debug failed nimble tests?
17:59:10FromDiscord<tbrekalo> gdb or?
18:34:42*max22- quit (Ping timeout: 272 seconds)
18:41:19FromDiscord<System64 ~ Flandre Scarlet> About PortAudio, is it normal my callback does nothing? https://media.discordapp.net/attachments/371759389889003532/875086491909521438/message.nim
18:42:15FromDiscord<System64 ~ Flandre Scarlet> it should print "ABC" in the console but it does nothing
18:42:52FromDiscord<System64 ~ Flandre Scarlet> (I use the NordAudio binding-
18:42:55FromDiscord<System64 ~ Flandre Scarlet> (edit) "binding-" => "binding)"
18:45:45FromDiscord<ajusa> Is it possible to kill a process and then get the output that it wrote?
18:50:03FromDiscord<Elegantbeef> @ajusa\: terminate then read the stdout
18:53:07FromDiscord<ajusa> Alright, I was using `kill` and `terminate` seems to have fixed my issue 🤔
18:53:51FromDiscord<ajusa> I also needed the `poStdErrToStdOut` option
18:53:55FromDiscord<Elegantbeef> Well on posix Kill and Terminate are different signals that behave differentyl
19:22:27*max22- joined #nim
19:42:49nrds<Prestige99> Elegantbeef thanks for the heads up about XAlloc, I'll look into it later
19:43:16FromDiscord<System64 ~ Flandre Scarlet> Okay, my game crashes with SDL audio, my game crashes with PortAudio, I think there is an UB in the graphics library
19:50:00FromDiscord<System64 ~ Flandre Scarlet> Does Nim have undefined behaviors?
19:52:29FromDiscord<Elegantbeef> In some places but mostly strides away
19:53:12FromDiscord<System64 ~ Flandre Scarlet> is it possible to enable UBs?
19:53:27FromDiscord<Elegantbeef> "enable UB"
19:53:44FromDiscord<Elegantbeef> What does that even mean
19:54:16FromDiscord<System64 ~ Flandre Scarlet> well I meant allowing Undefined Behaviors
19:54:35FromDiscord<Elegantbeef> Still doesnt make much sense, why would you want UB
19:57:09FromDiscord<System64 ~ Flandre Scarlet> Cause I m pretty sure Tilengine (yeah again) has UBs or smth cause I tried with SDL audio, crash, portaudio, crash↵So pretty sure its this lib
20:08:44FromDiscord<konsumlamm> arr you sure that you understand what UB is?
20:10:11*Pyautogui joined #nim
20:10:38FromDiscord<System64 ~ Flandre Scarlet> yeah a behavior not defined in the program
20:11:21FromDiscord<konsumlamm> in particular, it's behaviour that the compiler may addume never occurs
20:11:59FromDiscord<konsumlamm> (edit) "addume" => "assume"
20:12:22FromDiscord<konsumlamm> so it's not something you should ever want to "enable"
20:12:26FromDiscord<System64 ~ Flandre Scarlet> so its compiler s fault?
20:14:39FromDiscord<Elegantbeef> I think you're looking for someone to blame and not point at yourself
20:14:49FromDiscord<konsumlamm> In reply to @System64 "so its compiler s": what is?
20:15:06FromDiscord<Paupi woodberg> Hey y'all!
20:15:42FromDiscord<System64 ~ Flandre Scarlet> In reply to @konsumlamm "what is?": No its not that↵I tried with both portaudio and SDL audio, crash
20:17:42FromDiscord<System64 ~ Flandre Scarlet> So I am thinking ah maybe its cause of the Tilengine lib
20:17:58FromDiscord<konsumlamm> "enabling UB" (whatever that is) won't help with that, it'd only make things worse
20:18:42*stkrdknmibalz joined #nim
20:19:51FromDiscord<konsumlamm> the compiler assumes that invoking UB never happens, if things using UB happen to work, it's only by chance, you have no guarantees that it also works for other compilers, for other versions, for other platforms or at other times
20:20:39FromDiscord<konsumlamm> (edit) "the compiler assumes that invoking UB never happens, if things using UB happen to work, it's only by chance, you have no guarantees that it also works for other compilers, for other ... versions,when" added "compiler" | "compilerversions, for other platforms or ... atanother" added "when running it" | "other" => "another"
20:20:43FromDiscord<System64 ~ Flandre Scarlet> it works in C but not Nim
20:21:05FromDiscord<konsumlamm> if it's because of UB, refer to the above
20:21:06FromDiscord<Elegantbeef> Then your nim bindings are wrong
20:21:50FromDiscord<System64 ~ Flandre Scarlet> Ah its cause of my bindings?
20:22:02FromDiscord<Elegantbeef> Well if it works in C it's probably
20:22:48FromDiscord<System64 ~ Flandre Scarlet> The weird thing is it only crashes when I have both Audio Callback and Raster Callback
20:25:26FromDiscord<System64 ~ Flandre Scarlet> but yeah I can try with regular C
20:32:00FromDiscord<System64 ~ Flandre Scarlet> if it works with C, it should work with Nim
20:32:10FromDiscord<System64 ~ Flandre Scarlet> or every lang
20:49:53FromDiscord<dain> something of an open ended question: in dynamic interpreted languages I'm used to just fucking around in the repl or notebooks, trying out different throwaway iterations of code to see what works. once im happy with it I'll put it into a proper module. it seems difficult to do this sort of haphazard experimentation in a statically typed language. is there a comparable way of doing this in nim? ( people said the other day that the secret rep
20:50:17FromDiscord<dain> (edit) "something of an open ended question: in dynamic interpreted languages I'm used to just fucking around in the repl or notebooks, trying out different throwaway iterations of code to see what works. once im happy with it I'll put it into a proper module. it seems difficult to do this sort of haphazard experimentation in a statically typed ... language." added "compiled"
20:50:27FromDiscord<Elegantbeef> inim exists
20:51:07FromDiscord<Elegantbeef> I dont know though i've never really done the haphazard stuff, i've just made a file and tested in there
20:51:36FromDiscord<haxscramper> Wandbox/playground is a thing as well
20:52:04FromDiscord<haxscramper> Or `entr | nim c --cc:tcc`
20:52:51FromDiscord<dain> In reply to @haxscramper "Or `entr | nim": ohh I hadn't thought of that
20:54:42FromDiscord<dain> that's like what I do for pdfs
20:56:04FromDiscord<haxscramper> Yes. I personally do this even for interpreted languages, because it is hard to do a quick clean tests in repl due to accumulated state
20:57:04FromDiscord<dain> I often do a half way thing in python where I run a module with `python -i`
20:57:18FromDiscord<dain> so it runs the module then drops into interactive session
20:57:30FromDiscord<dain> so I can play with the functions
21:00:57*Pyautogui quit (Quit: Connection closed)
21:01:22*Pyautogui joined #nim
21:06:49PyautoguiHow do you add a social networking thing to the list on the website?
21:07:12PyautoguiIs there a repo I can pull request?
21:07:18FromDiscord<Elegantbeef> Make a PR here
21:07:18FromDiscord<Elegantbeef> https://github.com/nim-lang/website
21:07:20nrds<prestigebot99> itHub: 7"Code for the official Nim programming language website"
21:07:30PyautoguiThanks
21:16:25*Vladar quit (Quit: Leaving)
21:22:51FromDiscord<System64 ~ Flandre Scarlet> In reply to @Elegantbeef "Then your nim bindings": The thing is it seems to work in Danger mode
21:26:21FromDiscord<Yardanico> In reply to @System64 "The thing is it": because "danger" means "disable all possible runtime checks" which is not what you want for debugging
21:26:32FromDiscord<Yardanico> if something works in danger but not in release, it usually means there's something wrong with your code
21:26:46FromDiscord<Elegantbeef> hello yard
21:26:49FromDiscord<Yardanico> hallo
21:26:54FromDiscord<Yardanico> using matrix?
21:26:59FromDiscord<Elegantbeef> Yes
21:27:33FromDiscord<Elegantbeef> I'd reason you have something wrong with your bindings causing this issue, considering it works with C
21:28:24FromDiscord<System64 ~ Flandre Scarlet> But C doesn't have runtime checks too, it does?
21:28:31FromDiscord<dain> In reply to @Yardanico "if something works in": no it just means your code is _exciting_
21:28:43FromDiscord<Yardanico> In reply to @System64 "But C doesn't have": that's the thing with C - it doesn't
21:28:51FromDiscord<Yardanico> but that doesn't mean that you would _want_ code like that yourself
21:29:18FromDiscord<Elegantbeef> But it doesnt matter if it does or not, if you enable danger it works, something is wrong
21:31:23Pyautoguibundle install is giving an error. how am I supposed to install jekyll?
21:32:09FromDiscord<System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=3vHi
21:32:27FromDiscord<Yardanico> and how are you passing the callback itself?
21:33:16FromDiscord<Elegantbeef> Depending on your bundle version you'll have to update it but just dont pusuh it
21:33:16FromDiscord<Elegantbeef> Depending on your bundle version you'll have to update it but just dont push it
21:33:18FromDiscord<System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=3vHj
21:34:14FromDiscord<System64 ~ Flandre Scarlet> and even with a named proc it crashes
21:35:06FromDiscord<Yardanico> maybe tLN_SetLayerPosition actually returns an error which you don't check?
21:36:33FromDiscord<System64 ~ Flandre Scarlet> Ah maybe, let's check that
21:37:36*xet7 quit (Remote host closed the connection)
21:40:27FromDiscord<System64 ~ Flandre Scarlet> it returns true or false
22:02:40*Pyautogui quit (Quit: Connection closed)
22:04:25*Pyautogui joined #nim
22:08:26*Pyautogui quit (Client Quit)
22:09:02*Pyautogui joined #nim
22:23:35PyautoguiDoes anyone have suggestions for getting around "https://github.com/nim-lang/Nim/issues/17139"?
22:23:50PyautoguiI am on an Intel Mac with Big Sur.
22:23:58PyautoguiNim 1.5.1
22:25:06FromDiscord<undersquire> wait 1.5.1 is out?
22:25:27FromDiscord<undersquire> In reply to @Pyautogui "Does anyone have suggestions": this link goes nowhere
22:25:28PyautoguiNo, the devel.
22:25:34FromDiscord<undersquire> ah ok
22:26:01PyautoguiFor me it goes to this issue https://github.com/nim-lang/Nim/issues/17139.
22:26:08Pyautogui nim compiler flag --asm fails on arm64 macs #17139
22:26:15PyautoguiSame with intel.
22:26:22FromDiscord<undersquire> ok there we go it went to it
22:26:23PyautoguiAt least for me
22:26:39FromDiscord<undersquire> You are on an intel mac or a M1 mac?
22:26:43PyautoguiIntel
22:27:07Pyautogui2015 MacBook Air, Clang 12.0.0
22:27:26FromDiscord<undersquire> is clang the issue?
22:27:29FromDiscord<undersquire> or nim
22:27:46FromDiscord<undersquire> it seems to be a clang issue, try updating your clang to the latest if you can
22:27:51PyautoguiIt is giving an error "
22:27:51Pyautogui: error: unsupported argument '-acdl=/Users/ramirosenstock/.cache/nim/a_d/stdlib_system.nim.c.asm' to option 'Wa,'
22:27:52PyautoguiError: execution of an external compiler program 'clang -Wa,-acdl=/Users/ramirosenstock/.cache/nim/a_d/stdlib_digitsutils.nim.c.asm -g -fverbose-asm -masm=intel -c -w -ferror-limit=3 -I'/Users/ramirosenstock/.choosenim/toolchains/nim-#devel/lib' -I/Users/ramirosenstock/r -o /Users/ramirosenstock/.cache/nim/a_d/stdlib_digitsutils.nim.c.o
22:27:52Pyautogui/Users/ramirosenstock/.cache/nim/a_d/stdlib_digitsutils.nim.c' failed with exit code: 1"
22:28:36FromDiscord<undersquire> Let me try that flag and see if I get any errors
22:29:19FromDiscord<undersquire> yeah I am getting the same issue, Im not sure if there is any fix for it atm
22:30:02PyautoguiGot it. I'll try to find a workaround. Maybe compile manually.
22:30:16PyautoguiThe output C, I mean
22:30:46FromDiscord<undersquire> yeah that seems to be the only solution atm
22:33:53*flynn quit (Read error: Connection reset by peer)
22:35:01*flynn joined #nim
22:37:23*Pyautogui quit (Quit: Connection closed)
22:43:34FromDiscord<ynfle (ynfle)> Is there some way to write a concept for tuple where all the fields are of type `SomeNumber` but of any combination and length?
22:45:23*Pyautogui joined #nim
22:46:31*Pyautogui quit (Client Quit)
22:47:15FromDiscord<exelotl> @undersquire Nim releases always use even numbers, so 1.5 is a development version, 1.6 will be the next release.
22:56:01*Pyautogui joined #nim
22:56:33FromDiscord<undersquire> Oh ok
22:56:58FromDiscord<undersquire> I also saw a post on 2.0, when do u think 2.0 will release? (or is it going to go to 1.6 and 1.8 first)
22:57:05FromDiscord<undersquire> (edit) "to" => "through"
22:57:39PyautoguiI think 1.6 is the next one.
22:57:45PyautoguiI do not know about 1.8
22:59:39FromDiscord<undersquire> this post i found io2.print("Hello, world!")
22:59:49FromDiscord<undersquire> (edit) "io2.print("Hello, world!")" => "https://forum.nim-lang.org/t/7983"
23:01:28FromDiscord<ynfle (ynfle)> I don't think 2.0 needs 1.6, 1.8, 1.10, etc. I think it's just gonna come when a new major release is ready
23:02:19FromDiscord<undersquire> ye
23:05:50FromDiscord<konsumlamm> the next release will be 1.6, but after that, nobody knows
23:12:30*Pyautogui quit (Ping timeout: 268 seconds)
23:12:30*max22- quit (Remote host closed the connection)
23:36:37FromDiscord<Ayy Lmao> How do you do FFI with a cpp function within a namespace without using the header?