Attempting a DSL on top of htmlgen for fun/learning

2024-04-07 Thread RegularAlias
I made a bit more progress: import macros, htmlgen, strutils macro ph(e: varargs[untyped]): untyped = ## Generates the HTML `merror` element. MathML https://wikipedia.org/wiki/MathML ## https://developer.mozilla.org/en-US/docs/Web/MathML/Element/merror resu

Chrome DevTools Protocol Library For Nim (control your browser)

2024-04-07 Thread Niminem
Yeah that sucks too. For me it was the webdriver binary itself as a dependency for any of my projects. Too heavy for my taste

Strange race condition on Windows

2024-04-07 Thread sls1005
> I know it's just koch boot -d:release You may also have to specify `--cpu:arm64` to prevent generating another x86-64 compiler. You need to cross-compile for macOS/AArch64, not compile "on" it. > detecting the CPU architecture Is it possible on Rosetta? > at least providing an ARM version A

Strange race condition on Windows

2024-04-07 Thread firq
If you install Nim using Homebrew, you'll get version 2.0.2 compiled for Arm.

Strange race condition on Windows

2024-04-07 Thread vanyle
I will, but it really feels wrong... This is Mac, not Nix / Arch. Non technical users trying out Nim should not be expected to compile their compiler. I know it's just `koch boot -d:release`, but like for a first time user (maybe coming from python), this is daunting. I really like the idea of d

Chrome DevTools Protocol Library For Nim (control your browser)

2024-04-07 Thread bung
the most headache for me is that the chrome driver requires chrome version strictly matched, that requires extro steps to deliver software.

Strange race condition on Windows

2024-04-07 Thread Araq
> I know that compiling Nim from scratch on Mac would solve the issue, but this > is a weird way to do it. This is what you should really do. ;-)

Trying to get "interfaced" to run with latest nim

2024-04-07 Thread sei
Hi Beef, thanks again for your help! I think I now better understand what the macro is actually doing, and at the moment I suspect it might be the same problem as here: I'll wait for a fix, and if it still won't work, I try it with traitor, which

SIGSEGV: Illegal storage access on server windows 2008 and windows 2019

2024-04-07 Thread MauroG
I think that the problem is on this line: let jsonNode: JsonNode = parseJson(readFile("dns_qsanet.json")) Run It is the first line below imports.

Fake a file?

2024-04-07 Thread ingo
a followup. Windows' named pipes do not seem to be the thing to use in this case. It seems that the consumer on the other side of the pipe also needs some fitting machinery. Something that is seldom available. The alternative route seems to be virtual temp files, that under the right circumstanc

Strange race condition on Windows

2024-04-07 Thread vanyle
Thank you for this reply! I might also write a PR to add this code as a test if I manage to increase the probability of crashes enough.

Strange race condition on Windows

2024-04-07 Thread vanyle
It is a Mac M1. I'm using clang as the compiler. When calling `cpuRelax` in an empty file, I'm getting: error: unrecognized instruction mnemonic asm volatile("pause" ::: "memory")"; This is because `amd64` is defined. The nim compiler I use was compiled on an intel CPU. I use rosetta to run it.

SIGSEGV: Illegal storage access on server windows 2008 and windows 2019

2024-04-07 Thread MauroG
I have developed a simple CLI program that, given a URL as an argument, returns the response time to me. Since I have to call up sites that are on old servers (windows server 2008 r2), I had to use an sslContext with CipherSuitesOld. I compiled it with the -d:ssl -d:openssl10 and -d:release par

Strange race condition on Windows

2024-04-07 Thread Araq
> malebogia does not support MacOS because cpuRelax() uses some assembly that > does not exist on ARM What? I developed malebolgia on a Mac and it does work... What is your setup?