Would it be possible with ARC/ORC to use Nim as a bridging extension language for C/C++

2021-06-26 Thread Araq
> Would it be possible to support interfacing with C++ code in a way that would > allow for very efficient "bridgeable" types such that the cost of marshaling > between languages could be dramatically reduced. Yes, that's one of ORC's advantages.

Idea: 30 days of Nim learning resource

2021-06-26 Thread xioren
Nothing concrete. First wanted to see how much interest there is. But broadly speaking I think first deciding what core Nim concepts are essential and need to be covered and then coming up with an outline for the 30 days. Then the task of writing up a lesson for each day.

Idea: 30 days of Nim learning resource

2021-06-26 Thread reversem3
I think its a great idea , do you have any plans on how you want to approach this?

Idea: 30 days of Nim learning resource

2021-06-26 Thread Fire
I would love it. I probably cannot contribute much, but I can proofread for grammar and such. Pyautogui

Idea: 30 days of Nim learning resource

2021-06-26 Thread xioren
I've been thinking over how to make Nim more accessible to new users and expanding the available learning resources and I think a community driven Nim version of [30-Days-Of-Python](https://github.com/Asabeneh/30-Days-Of-Python) (or similar) would be an invaluable resource. I wanted to gauge com

Nim 2.0 -- thoughts

2021-06-26 Thread Sixte
Your list is way too long, it mentions an important item though, but misses another very important item. Let's see. * Multi-threading: This has been ALWAYS a pain point for Nim * Concurrency: This is being addressed, finalize it properly Pragmatic approach: What do Rust and C++ offer for t

Using streams in Nim?

2021-06-26 Thread xioren
Theres not much outside of whats already in the [docs](https://nim-lang.org/docs/streams.html)? I've been a proponent of adding more examples to the docs but that seems to be an uphill battle.

Trouble comparing proc types

2021-06-26 Thread pietroppeter
https://nim-lang.org/docs/manual.html#types-procedural-type

Would it be possible with ARC/ORC to use Nim as a bridging extension language for C/C++

2021-06-26 Thread bcsomeone
With ARC/ORC it seems as though Nim, like python and Objective C, now has a memory model that plays very nicely with C and C++. What's notable about both of these other languages is the extent to which they are both used as direct extension languages of C and C++ (and vice versa with Python whe

Trouble comparing proc types

2021-06-26 Thread xigoi
It seems that `is` is sensitive to the calling mechanism. This prints `true`: import sugar echo (proc (x: int): bool {.closure.} = true) is (int -> bool) Run

Using streams in Nim?

2021-06-26 Thread juancarlospaco
I do not understand what you specifically are searching for, maybe have a quick look over the TheIndex and see whats where etc

Trouble comparing proc types

2021-06-26 Thread schneiderfelipe
Now, if I define the very same procedure in a typed context, the test holds `true`! import sugar func f: int -> bool = (x: int) => true echo f() is (int -> bool) # => true, WAAT? Run [See it in the playground](https://play.nim-lang.org/#ix=3rcE

Trouble comparing proc types

2021-06-26 Thread schneiderfelipe
Hi, I'm trying to proc types based on the proc's input/output types, but I can't quite make it work without converting types. My problem boils down to the following: import sugar echo ((x: int) => true) is (int -> bool) # => false, WAT? Run [Take a look at the pl

Using streams in Nim?

2021-06-26 Thread fredj
I have an application written in Go using streams that reads a gzipped file on a web server, pipes it through a csv decoder and stores the csv records in a postgres database. Is there some docs/examples of how to use streams in Nim to do the same? Thanks Fred

Windows : how to get active window title

2021-06-26 Thread IvanS
Thank you ! I also found wAuto with which I can : getTitle(getActiveWindow())

Nim 2.0 -- thoughts

2021-06-26 Thread ingo
Yes, there are plenty of libraries. They all do the same thing differently. Using multiple libraries means your constantly converting. Colours don't not need to be a 3-vector, you can have a rgbfta<...> filter transmit alpha etc. It does not even have to be a vector. Chroma is fine. It is about

Attempt to read from nil, Arc bug?

2021-06-26 Thread DIzer
No, it compiles with -fopemp key, so it is OpenMP based, indeed.

Attempt to read from nil, Arc bug?

2021-06-26 Thread planetis
Its not a wrapper, do some research first, its original work.

Nim 2.0 -- thoughts

2021-06-26 Thread Vindaar
> There is one very little thing that annoys me in almost every language, the > lack of a standard, reference, core, graphics vector (and colour vector) math > implementation. One that follows the rules of the normal mathematical axis, > y=up, x=right, z=into the screen and has transformation ma

Attempt to read from nil, Arc bug?

2021-06-26 Thread DIzer
It is not "regular means", it was bugged as I tried it half year ago (or so), it is OpenMP wrapper.

Nim 2.0 -- thoughts

2021-06-26 Thread r0tt3n
Let's talk about these problems: * aren't they present in current Nim 1.x? * are these fixed / implemented? it doesn't seem. But you started to talk about Nim 2.0 already without a solid base? noice, noice. For learning materials, following what Rust did is a good example, a proper speci

Is there a way to write tests & benchmarks for functions operating on NimNode?

2021-06-26 Thread timothee
besides -d:nimHasLibFFI (which currently requires recompiling nim), you also have: * `--benchmarkVM` enables cpuTime at CT * `--experimental:vmopsDanger` enables cpuTime at CT + other procs via vmops * `--profileVM`: a VM profiler showing time spent in user code at CT * vmutils.vmTrace: a

NimConf 2021: Saturday, June 26th 2021

2021-06-26 Thread miran
3 hours to go until the start of NimConf!! Here's a direct link to the first talk, so you don't miss it:

Nim 2.0 -- thoughts

2021-06-26 Thread ingo
The nice thing of Nim is that it is just like Python a dynamic language. Not in typing etc. but in growth. You can strive for world domination and (will) fail, or you grow in quality and users and it just happens to you. I'm not a 'programmer', I just fiddle with things and have been following t