00:18:30 | FromDiscord | <rongcuid> Do I need to specify through command line or can Nimble do that? |
00:18:45 | FromDiscord | <Elegantbeef> Nimble does not know how to load configs |
00:18:57 | FromDiscord | <Elegantbeef> You can make a `config.nims` with your switches |
00:19:14 | FromDiscord | <Elegantbeef> But `.nimble` cannot contain build flags as it just ignores them |
00:53:23 | * | KhazAkar quit (Ping timeout: 264 seconds) |
01:02:12 | * | azimut joined #nim |
01:22:37 | * | KhazAkar joined #nim |
01:41:51 | * | def- quit (Quit: -) |
01:43:13 | * | def- joined #nim |
01:47:14 | * | def- quit (Client Quit) |
01:49:42 | * | def- joined #nim |
01:52:53 | * | def- quit (Client Quit) |
02:33:32 | * | def- joined #nim |
02:44:08 | * | jmdaemon joined #nim |
03:22:45 | FromDiscord | <␀ Array 🇵🇸 🍉> i just follow the info about embedded systems and adjust it accordingly then since there is no wiiu target https://nim-lang.org/docs/nimc.html#nim-for-embedded-systems↵(@nnsee) |
03:22:49 | FromDiscord | <␀ Array 🇵🇸 🍉> thanks |
03:30:21 | * | Lord_Nightmare quit (Quit: ZNC - http://znc.in) |
03:34:01 | * | Lord_Nightmare joined #nim |
03:36:00 | FromDiscord | <MDuardo> Poor Wii U \:( |
03:36:29 | FromDiscord | <MDuardo> Very fun console, horrible marketing and hardware |
03:46:20 | FromDiscord | <␀ Array 🇵🇸 🍉> i love my wiiu, ive made a small homebrew app to learn how to code for it and ive been thinking of rewriting it in nimhttps://git.inamatrix.xyz/array-in-a-matrix/SimpleDrawU |
03:59:26 | FromDiscord | <MDuardo> That would be amazing |
04:17:09 | FromDiscord | <.bobbbob> Does anyone know how to set the secure flag for cookies when using session cookies with prolouge? |
04:34:05 | * | azimut quit (Ping timeout: 255 seconds) |
05:04:53 | * | def- quit (Quit: -) |
05:05:17 | * | def- joined #nim |
05:47:30 | * | junaid_ joined #nim |
05:50:32 | * | def- quit (Quit: -) |
05:50:46 | * | def- joined #nim |
06:16:35 | * | junaid_ quit (Quit: leaving) |
06:47:53 | * | rockcavera quit (Remote host closed the connection) |
07:17:50 | FromDiscord | <huantian> I need to get a Wii U just to have it |
07:17:52 | FromDiscord | <huantian> And hombre |
07:17:56 | FromDiscord | <huantian> (edit) "hombre" => "hombres" |
07:18:03 | FromDiscord | <huantian> (edit) "hombres" => "homebrew" |
07:23:59 | * | advesperacit joined #nim |
07:47:17 | NimEventer | New thread by JohnLuck: Spawning a new terminal from a nim program, see https://forum.nim-lang.org/t/11062 |
08:06:39 | FromDiscord | <odexine> #jobs "Actually point 5 can probably be done in a month." proof that mratsim is probably not human |
08:19:55 | * | tc424 joined #nim |
08:41:00 | FromDiscord | <fosster> guys, do you know if `suffle` proc from `std/random` can also shuffle sequences? |
08:41:55 | * | junaid_ joined #nim |
08:42:16 | FromDiscord | <fosster> guys, do you know if `shuffle` proc from `std/random` can also shuffle sequences? |
08:47:25 | FromDiscord | <odexine> yes it can |
08:50:15 | * | om3ga joined #nim |
08:51:26 | FromDiscord | <fosster> [odexine](https://matrix.to/#/%40_discord_259277943275126785%3At2bot.io) thx |
08:55:57 | * | redj joined #nim |
08:58:42 | * | junaid_ quit (Remote host closed the connection) |
09:08:33 | * | jmdaemon quit (Ping timeout: 255 seconds) |
09:50:08 | * | ntat joined #nim |
10:23:47 | FromDiscord | <kiloneie> `{.push --profiler: on.}` is this not possible within this pragma ? |
10:47:29 | * | krux02 joined #nim |
11:01:40 | * | azimut joined #nim |
12:35:10 | * | azimut quit (Remote host closed the connection) |
12:35:47 | * | azimut joined #nim |
12:53:36 | * | ntat quit (Quit: Leaving) |
12:55:09 | FromDiscord | <dlesnoff> Hello,↵I do not find in the documentation how one can perform a fused-multiply-add (FMA, IEEE754-2008) in Nim. Would someone know? |
12:57:23 | FromDiscord | <dlesnoff> I found these c imports at: https://gist.github.com/apense/5fb468db7289b19474d2↵proc fma(x,y,z: float32): float32 {.importc: "fma", header: "<math.h>".}↵proc fma(x,y,z: float64): float64 {.importc: "fmaf", header: "<math.h>".} |
12:57:43 | FromDiscord | <dlesnoff> (edit) "I found these c imports at: https://gist.github.com/apense/5fb468db7289b19474d2↵proc fma(x,y,z: float32): float32 {.importc: "fma", header: "<math.h>".}↵proc fma(x,y,z: float64): float64 {.importc: "fmaf", header: "<math.h>".}" => "sent a code paste, see https://play.nim-lang.org/#pasty=vnFSXYyfabIP" |
12:59:21 | FromDiscord | <dlesnoff> (edit) "https://play.nim-lang.org/#pasty=AYZGwrQnFxOq" => "https://play.nim-lang.org/#pasty=PAaNMfbqWMwB" |
13:04:44 | * | ntat joined #nim |
13:17:54 | NimEventer | New thread by dlesnoff: Fused multiply-add instruction, see https://forum.nim-lang.org/t/11064 |
13:26:59 | * | junaid_ joined #nim |
13:40:40 | * | rockcavera joined #nim |
13:47:40 | FromDiscord | <bosinski2023> In reply to @jiezron "I found these c": you could use SIMD given AVX is supported on your side. |
13:47:53 | * | rockcavera quit (Remote host closed the connection) |
13:49:48 | * | rockcavera joined #nim |
13:49:48 | * | rockcavera quit (Changing host) |
13:49:48 | * | rockcavera joined #nim |
13:52:47 | FromDiscord | <dlesnoff> I just want to perform fma on one register. I am analyzing an algorithm that will be written as a GPU kernel. I do not care about SIMD. I just want to prototype my algorithm quickly and analyze rounding errors.↵I am writing a proof of correctness for a paper and use Nim to check some low-level stuff faster than in C++ |
14:04:04 | FromDiscord | <odexine> you can just import them yourself no? or is that too much of a roadblock |
14:04:33 | FromDiscord | <odexine> and i assume the fmarch=native is so that the fma function actually uses the cpu instruction instead of whatever generic version (if any?) the c compiler would use |
14:09:01 | * | Onionhammer quit (Quit: Ping timeout (120 seconds)) |
14:09:20 | * | Onionhammer joined #nim |
14:10:59 | * | ntat quit (Quit: Leaving) |
14:20:54 | * | junaid_ quit (Remote host closed the connection) |
14:26:08 | FromDiscord | <dlesnoff> In reply to @odexine "you can just import": That's what I did, indeed ... |
14:26:53 | FromDiscord | <odexine> well, i'm not sure why exacvtly theyre not imported in the stdlib |
14:27:00 | FromDiscord | <odexine> maybe it is a good idea to PR or raise an issue |
14:41:55 | * | fallback quit (Ping timeout: 246 seconds) |
14:45:05 | * | rockcavera quit (Remote host closed the connection) |
14:46:04 | * | rockcavera joined #nim |
14:54:30 | * | fallback joined #nim |
14:59:16 | FromDiscord | <yetiwizard> I'm working on a dll and trying to export a function with stdcall convention: `{.stdcall, exportc: "test", dynlib.}`↵unfortunately, the name is exported with an additional @20 defining the size of the stack activation frame: test@20↵is there a way I can stop this name mangling from happening and the name exporting without the stack part? just test |
15:00:51 | FromDiscord | <odexine> that's strange, it shouldnt have any mangling |
15:01:59 | FromDiscord | <yetiwizard> btw I'm using MinGW |
15:02:45 | FromDiscord | <demotomohiro> So, when you use that dll, you have to use `"test@20"` instead of `"test"` to import the function? |
15:03:15 | FromDiscord | <yetiwizard> yep |
15:05:30 | FromDiscord | <yetiwizard> I can legit open the dll in a hex editor and manually remove the @20 bytes and it works fine then |
15:06:00 | FromDiscord | <yetiwizard> it sucks to have to add some kind of hacky post-build script that manually strips these bytes tbh |
15:06:58 | FromDiscord | <leorize> are you compiling to c++? |
15:07:47 | FromDiscord | <yetiwizard> yep |
15:09:59 | FromDiscord | <leorize> it might be bad exportc codegen |
15:10:57 | * | derpydoo joined #nim |
15:12:08 | FromDiscord | <Robyn [She/Her]> In reply to @yetiwizard "I'm working on a": Use `cdecl` |
15:12:20 | FromDiscord | <Robyn [She/Her]> Exportc should already do that nvm |
15:12:31 | FromDiscord | <Robyn [She/Her]> Dynlib also should disable mangling |
15:13:15 | FromDiscord | <leorize> this SO answer might be what you want\: https://stackoverflow.com/questions/538134/exporting-functions-from-a-dll-with-dllexport |
15:13:34 | FromDiscord | <leorize> that's not always feasible, esp if they must use stdcall↵(@Robyn [She/Her]) |
15:13:54 | FromDiscord | <yetiwizard> if I use cdecl, the generated code uses N_CDECL which when called messes up the stack |
15:21:01 | FromDiscord | <Robyn [She/Her]> In reply to @leorize "that's not always feasible,": Fair |
15:21:04 | FromDiscord | <Robyn [She/Her]> In reply to @yetiwizard "if I use cdecl,": Ah |
15:31:13 | FromDiscord | <jmgomez> In reply to @yetiwizard "I'm working on a": Please fill an issue with the minimal code to repro it |
15:32:37 | * | rockcavera quit (Read error: Connection reset by peer) |
15:33:03 | * | rockcavera joined #nim |
15:33:03 | * | rockcavera quit (Changing host) |
15:33:03 | * | rockcavera joined #nim |
15:33:25 | FromDiscord | <yetiwizard> I just tried it with `{.exportc, dynlib, codegenDecl: """extern "C" declspec(dllexport) $1 stdcall $2 $3""".}` but it still adds that @20 |
15:34:08 | FromDiscord | <yetiwizard> tbh at this point I don't think this is a Nim problem, more a MinGW |
15:34:56 | FromDiscord | <yetiwizard> this kind of name mangling only happens when you use ` ` |
15:34:59 | FromDiscord | <yetiwizard> (edit) "` `" => "`stdcall`" |
15:35:33 | FromDiscord | <yetiwizard> In reply to @leorize "this SO answer might": I think the relevant answer there is Malick's |
15:36:27 | FromDiscord | <jmgomez> Can you try with a different compiler then? |
15:38:39 | FromDiscord | <yetiwizard> first I'll try to see if mingw has some relevant pragma that might fix this |
15:41:38 | * | rockcavera quit (Read error: Connection reset by peer) |
15:42:32 | * | rockcavera joined #nim |
15:42:32 | * | rockcavera quit (Changing host) |
15:42:32 | * | rockcavera joined #nim |
16:06:31 | * | ntat joined #nim |
16:18:33 | FromDiscord | <yetiwizard> omg, finally! after searching endlessly for this da flag, here it is:↵`{.passL:"-Wl,-add-stdcall-alias".}` |
16:19:10 | FromDiscord | <yetiwizard> this will add an alias to the name without the @20 |
16:19:43 | FromDiscord | <yetiwizard> I found this in buried in some forum post from 2006 lol |
16:20:09 | FromDiscord | <yetiwizard> (edit) removed "in" |
16:22:55 | FromDiscord | <odexine> that sounds dumb |
16:23:46 | FromDiscord | <yetiwizard> there's also↵`{.passL:"-Wl,-kill-at".}` ↵this just removes the @, it doesnt create an alias |
16:23:56 | FromDiscord | <yetiwizard> feels cleaner |
16:24:33 | FromDiscord | <odexine> was going to say |
16:24:35 | FromDiscord | <odexine> https://stackoverflow.com/questions/49170472/mingw-dll-stdcall-calling-convention-linker-error |
16:26:13 | FromDiscord | <yetiwizard> lol, weird name they gave to the flag |
16:26:42 | FromDiscord | <yetiwizard> but yea, problem solved, thx |
17:05:01 | * | junaid_ joined #nim |
18:25:31 | * | tiorock joined #nim |
18:25:31 | * | rockcavera is now known as Guest146 |
18:25:31 | * | Guest146 quit (Killed (zirconium.libera.chat (Nickname regained by services))) |
18:25:31 | * | tiorock is now known as rockcavera |
19:12:37 | * | rockcavera quit (Read error: Connection reset by peer) |
19:13:23 | * | rockcavera joined #nim |
19:15:59 | * | ntat quit (Quit: Leaving) |
19:26:51 | * | tiorock joined #nim |
19:26:52 | * | tiorock quit (Changing host) |
19:26:52 | * | tiorock joined #nim |
19:26:52 | * | rockcavera is now known as Guest116 |
19:26:52 | * | tiorock is now known as rockcavera |
19:28:10 | * | Guest116 quit (Ping timeout: 264 seconds) |
19:35:53 | * | tiorock joined #nim |
19:35:53 | * | tiorock quit (Changing host) |
19:35:53 | * | tiorock joined #nim |
19:35:53 | * | rockcavera quit (Killed (zirconium.libera.chat (Nickname regained by services))) |
19:35:53 | * | tiorock is now known as rockcavera |
20:07:36 | * | junaid_ quit (Remote host closed the connection) |
20:19:24 | * | rockcavera is now known as Guest8644 |
20:19:24 | * | tiorock joined #nim |
20:19:24 | * | Guest8644 quit (Killed (platinum.libera.chat (Nickname regained by services))) |
20:19:24 | * | tiorock is now known as rockcavera |
20:57:37 | * | greaser|q quit (Changing host) |
20:57:37 | * | greaser|q joined #nim |
20:57:42 | * | greaser|q is now known as GreaseMonkey |
20:59:50 | * | junaid_ joined #nim |
21:09:49 | * | junaid_ quit (Remote host closed the connection) |
21:46:53 | FromDiscord | <morgan> is nimble.directory down for anyone else? |
21:47:28 | FromDiscord | <Elegantbeef> https://nimpkgs.dayl.in/ an alternative if it helps any |
21:47:51 | FromDiscord | <morgan> i thought it might be my vpn, but it didn't work when using lte on my phone with vpn off last night |
21:47:56 | FromDiscord | <morgan> thanks ill try that |
21:48:43 | FromDiscord | <morgan> yea that site works |
21:57:19 | * | advesperacit quit () |
21:58:39 | * | rockcavera quit (Read error: Connection reset by peer) |
21:58:59 | * | rockcavera joined #nim |
21:58:59 | * | rockcavera quit (Changing host) |
21:58:59 | * | rockcavera joined #nim |
22:04:43 | * | Figworm joined #nim |
22:06:09 | * | Figworm quit (Client Quit) |
23:05:34 | * | derpydoo quit (Ping timeout: 255 seconds) |
23:10:22 | FromDiscord | <Robyn [She/Her]> Hm... Should I use concepts when possible? I really like them but not sure if I should shove them in places where they'd fit, or to just use mixins |
23:17:49 | FromDiscord | <66aaron23> yo guys can i ask u sum that i saw someone post that i don't understand cuz they refused to explain |
23:18:20 | FromDiscord | <Robyn [She/Her]> In reply to @66aaron23 "yo guys can i": Sure, go ahead |
23:18:34 | FromDiscord | <66aaron23> In reply to @chronos.vitaqua "Sure, go ahead": stop the driver from running↵hook its IC callbacks and report that the driver IS running when they call EnumSystemDrivers + emulate IOCTL coms between process and driver |
23:18:44 | * | azimut quit (Quit: ZNC - https://znc.in) |
23:20:16 | FromDiscord | <66aaron23> 😟 |
23:21:12 | * | azimut joined #nim |
23:24:56 | FromDiscord | <Robyn [She/Her]> What's the context for this? |
23:30:29 | FromDiscord | <66aaron23> In reply to @chronos.vitaqua "What's the context for": uh |
23:30:41 | FromDiscord | <66aaron23> @Robyn [She/Her] bye? |
23:32:59 | FromDiscord | <Robyn [She/Her]> ? |
23:33:11 | FromDiscord | <Robyn [She/Her]> They left |
23:33:13 | FromDiscord | <Robyn [She/Her]> Huh. |
23:35:24 | FromDiscord | <Elegantbeef> I feel like something dumb like "always has been" is the valid response |
23:37:21 | * | krux02 quit (Remote host closed the connection) |
23:47:28 | FromDiscord | <Robyn [She/Her]> In reply to @chronos.vitaqua "Hm... Should I use": Also Beef, care to weigh your opinion? Concepts vs Mixins, what's better? |
23:49:39 | FromDiscord | <Elegantbeef> Use both? |
23:49:46 | FromDiscord | <Elegantbeef> Concepts rely on mixins to be useful |
23:50:04 | FromDiscord | <Elegantbeef> Ideally you use a concept to constraint your shape then mixin procedures |
23:50:57 | FromDiscord | <Elegantbeef> https://github.com/beef331/truss3d/blob/master/src/truss3D/atlasser.nim for a real world example on my view of "best practices" |
23:52:37 | FromDiscord | <Robyn [She/Her]> Huh, why would you use both? |
23:52:49 | FromDiscord | <Robyn [She/Her]> I thought one or the other would've worked just fine |
23:52:55 | FromDiscord | <Elegantbeef> Cause you want to document the api required and actually mixin the procedues |
23:53:02 | FromDiscord | <Elegantbeef> Concepts do not make `OpenSymChoices` |
23:53:06 | FromDiscord | <Elegantbeef> They're just constraints |
23:55:27 | FromDiscord | <Elegantbeef> In the above example infact you have to use `mixin` cause if you do not `init` will error as there is none in scope |
23:55:47 | FromDiscord | <Robyn [She/Her]> Ah okay |
23:56:31 | FromDiscord | <Robyn [She/Her]> Wait what does OpenSymChoices mean? Does it mean non-exported procedures can be used in a generic proc? |
23:56:41 | FromDiscord | <Robyn [She/Her]> Not just a generic but you know what I mean |
23:56:53 | FromDiscord | <Elegantbeef> https://www.jasonbeetham.com/writeups/codereuse.html |
23:56:56 | FromDiscord | <Robyn [She/Her]> In reply to @chronos.vitaqua "Wait what does OpenSymChoices": (If defined in the current scope? |
23:57:02 | FromDiscord | <Robyn [She/Her]> (edit) "scope?" => "scope)" |
23:57:13 | FromDiscord | <Elegantbeef> Search for the term 'mixin' |