os:any and Newlib/Newlib-nano

2021-04-11 Thread Araq
Well "os:any" currently means pretty much "what Ansi C gives us" and so `os.nim` bails out. You can try to `--define:posix` for os.nim support or you can try `--os:linux` \-- the compiler optimizes out unused functions so if it's "close enough" to Linux you can get away with it.

Arduino with Nim

2021-04-11 Thread Araq
Check if the constants `LED_BUILTIN`, `HIGH` etc have the right values for your board.

Library for generating a DOM table from a Nim Table? (JS backend)

2021-04-11 Thread halloleo
In the brower (i.e. via the JS backend) I need to generate a HTML table in the DOM from a JSON structure which I load into a Nim table structure. Does a library exist for the conversion to a DOM table? Thanks for any pointers!

I want to use gecko driver headless.

2021-04-11 Thread jyapayne
@mnahito You could not before, but I've just added the ability to in version 0.2.5. Please update to the latest version and then you can hide the chrome driver console like this: import halonium proc main() = # hideChromeDriverConsole and headless give a comple

Trouble with... I don't know :)

2021-04-11 Thread timothee
@japplegame please file a bug under and cross-link it to here; if possible try to minimize to 3 files instead of 4, otherwise 4 is ok

Trouble with... I don't know :)

2021-04-11 Thread ynfle
I'm not exactly sure why (you can file a bug report maybe) but I think for the other version, the compiler isn't sure if it's a field or something else. When you tell it it's a proc, then it knows that it works. Not really sure. Just making some stuff up.

Trouble with... I don't know :)

2021-04-11 Thread japplegame
This works without binding: # misc.nim import foo proc setValue*[T](a: T) = f.`value=`(a) Run

os:any and Newlib/Newlib-nano

2021-04-11 Thread mikra
Hi all, I am about to develop a runtime system on top of newlib for constrained targets (mono/multithreaded) Newlib/newlib-nano is the de facto standard for embedded systems; it's shipped with every toolchain. It's "almost" Posix compliant - the philosophy behind is: provide the basic functiona

nDustman (random URL generator)

2021-04-11 Thread Rozzamarine
No one asked for it, so I did it without asking: Just a strange idea I wanted to explore: truly random links generator and checker with accessible GUI interface. Probably gonna be improved in like every aspect if anyone will be seriously interested in

How to iterate over a SharedTable?

2021-04-11 Thread mrhdias
Thanks @b3liever. But what I want is something simple to use. Is there any way to iterate over a SharedTable? I need to know if the key has expired and if it has expired remove it. But the keys are added by different threads. The sharedtable is ideal.

I want to use gecko driver headless.

2021-04-11 Thread nnahito
@b3liever @jyapayne Thank you for your reply! I try halonium and run @jyapayne 's code. It worked just the way I wanted it to! Thank you very much. If I wanted to, could I start the chrome driver in hidden mode?

Arduino with Nim

2021-04-11 Thread mantielero
I am trying to use @zevv's [nim-arduino](https://github.com/zevv/nim-arduino) library without the IDE. I am using the following code `heartbeat.nim`: {.passC:"-I/usr/share/arduino/hardware/archlinux-arduino/avr/cores/arduino/".} {.passC:"-I/usr/avr/include/".} {.passC:"-I

Multi-threaded features needed for Server

2021-04-11 Thread hankas
You are right. Thanks for the feedback. I still have a lot to learn and I need the feedback. Is there any performance difference between allocating several variables individually vs allocating a tuple containing those variables?

Multi-threaded features needed for Server

2021-04-11 Thread Araq
> It probably has some quirks and needs more thorough testing. It looks pretty slow. 4 allocations for a single shared pointer? :-)

Trouble with... I don't know :)

2021-04-11 Thread Yardanico
You should check out and

Trouble with... I don't know :)

2021-04-11 Thread japplegame
It's like something breaks under a certain combination of factors [download sources](https://drive.google.com/file/d/1X_uas69a2vU-XW7IYN5IKbJ7bB0fr18p/view?usp=sharing) # base.nim type Base*[T] = object func `value=`*(base: Base, v: int) = discard Run

Trouble with... I don't know :)

2021-04-11 Thread japplegame
I should probably create an issue, but I don't know what to name it at all.

C library with custom build system to Nim

2021-04-11 Thread 19
Yardanico suggested i use PassC. maybe thats the better option? -d:OpenGL --passC:"-I /home/dian/Stuff/kinctest/Shader-Kinc_new/Kinc/Sources/" --passC:"-I /home/dian/Stuff/kinctest/Shader-Kinc_new/Kinc/Backends/Graphics4/OpenGL/Sources" Run

C library with custom build system to Nim

2021-04-11 Thread 19
Hello, I am currently binding an ultra portable C library called KinC ( Kore in C ) to Nim. It has a nice build system that I am trying to reuse with Nim ( why reinvent the wheel ? ) ( Kincmake ) My initial implementation involve

RegexFlag

2021-04-11 Thread xigoi
proc re(s: string; flags = {reStudy}): Regex Run The documentation doesn't really make it clear because of the default value, but `flags` is of type `set[RegexFlag]`.