Export by Ordinal for Windows DLLs?

2021-01-05 Thread Araq
Haven't tried it, but it looks easy: * Mark your procs to be exported as `.exportc: ""`. * Write a custom .def file. * Compile to a DLL via --app:lib. * Tell the linker to use your .def file.

How to make Nim compilation faster?

2021-01-05 Thread SolitudeSF
programs that were working perfectly fine with gcc/clang would segfault with tcc on my machine.

Export by Ordinal for Windows DLLs?

2021-01-05 Thread Chris3606
When `--app:lib` is being used to create a DLL, does Nim support exporting a function by ordinal only? I'm referring to an equivalent to the function described here: I'm awar

Own numeric type

2021-01-05 Thread snej
Why do you want to use the numbers instead of names? The names are much easier to recognize and remember.

Native GUI development for MacOS

2021-01-05 Thread snej
That code got mangled. Use a line of three backquotes before and after code listings, to format them correctly.

How to make Nim compilation faster?

2021-01-05 Thread cblake
Your Arturo does not look presently very GUI centric using Apple OS facilities/etc. So, one possibility might be for you to install a Linux virtual machine on your MacBook and then within that VM use TinyCC/tcc [backend for Nim](https://en.wikipedia.org/wiki/Tiny_C_Compiler). For me, `tcc` is ab

What is os:Atari targeting?

2021-01-05 Thread czietz
Ok, great, thank you! I was worried I would break someone else's work if I started to modify settings for os:Atari. But now I'll go ahead with my modifications. I'll start a PR as soon as I'm confident enough that stuff is working as expected.

How to make Nim compilation faster?

2021-01-05 Thread treeform
I made `dumpincludes` a utility that can at least tell you which modules are getting huge expansions: This can be useful to let you know how bad the problem really is.

How to make Nim compilation faster?

2021-01-05 Thread drkameleon
Thanks a lot for the input. It's true that I've rather overdone it with the templates. Is there any easy way to track/report where most template expansions take place? (I've obviously lost track of them all...) P.s. Regarding performance, I know what you mean. I guess I'll have to start benchm

How to make Nim compilation faster?

2021-01-05 Thread Araq
Your code uses `template` and hardly any `proc`. Probably you are getting a combinatorial code size explosion. If true, you don't only have slow compile-times, you also have bad performance because of many icache misses.

What is os:Atari targeting?

2021-01-05 Thread dom96
Ooh, awesome to see you getting networking working. Just another reason why making networking in Nim depend on no external libraries is brilliant. Definitely get these PRs in, the more platforms Nim supports out of the box the better.

Questions about sharing data with C++ and capnp.nim

2021-01-05 Thread elcritch
I've never used capnp protocol. While it's intriguing, I never liked that it only appeared to have one implementation. You might try messagepack (or cbor) as an alternative binary format thats json-likebut faster. I've used it extensively in a few domains as its faster and produces smaller than

Why include doesn't work?

2021-01-05 Thread juancarlospaco
Use Nim coding conventions.

How to make Nim compilation faster?

2021-01-05 Thread drkameleon
Surprisingly, I'm having some issues with Nim compilation speed. Given that I use to make frequent changes to the project I'm working on (, that also means frequent re-builds. However, this seems too slow: Hint: 213449 lines; 144.014s; 624.43

SourceMap

2021-01-05 Thread domogled
Hi, I compile nim source to javascript with sourceMap options: > nim js --sourceMap --out:scripts/terminal.js ../../src/apps/terminal.nim I get in browser in console this error: > DevTools failed to load SourceMap: Could not load content for >

AVR Support?

2021-01-05 Thread btol
Thanks for the quick fix! My build is now working with the newest nightly (1.5.1)

What is os:Atari targeting?

2021-01-05 Thread Araq
PRs are welcome, I filled in these values to the best of my knowledge. :P

AVR Support?

2021-01-05 Thread Araq
Well I fixed the regressions, enjoy!

What is os:Atari targeting?

2021-01-05 Thread czietz
I recently got interested in Nim - particularly using it for developing and cross-compiling software for the Atari ST and related computers. Nim, with its ability to use a C compiler as "back end", seems like a good fit to me. Even though the computers are 30 - 35 years old, there are modern gcc

Questions about sharing data with C++ and capnp.nim

2021-01-05 Thread srbga
Hi all! I'm planning to use nim in a large project with most code written in C++. Our project used lua to do some computation but the increasing amount of data made them unbarably slow now. I admit that I just discovered nim a few days ago and only wrote a few tiny programs. Most of them are b