> This can't be done with just object destructors as ref's and owned ref's are
> created by compiler magic and we can't make custom destructors for them.
How to deal with that problem is part of the spec, see `.nodestroy`.
> If this example and my thinking are correct, we are doing a lot of work
Check out [nimterop](https://github.com/nimterop/nimterop) which aims to make
it easier to create bindings. It uses `gcc -E` to tackle the preprocessor and
[tree-sitter](https://github.com/tree-sitter/tree-sitter) to parse and generate
an AST. The AST is then converted into Nim syntax.
We aren'
Well we have a GTK3 wrapper in Nimble and there are project like "nimterop" etc
that try to do that.
IMO everything beyond c2nim's approach is deeply flawed as the type information
available in C is too weak. `int fn(int count; char* args);` is this a pointer
to a byte array? A pointer to a sin
Hi guys,
Is anyone familliar with Golang documentation?
If you type go doc fmt Println in terminal you can get a small peace of
information:
func Println(a ...interface{}) (n int, err error)
Println formats using the default formats for its operands and writes to
standard output. Spaces ar
I don't think we have such a tool.
Does anybody experimented with running gcc with -fdump-tree-all and
-fdump-rtl-all to make more sophisticated and fully native preprocessed data to
make complex C/C++ libraries binding automation?
I tried to play with Gtk-3.0 library installed in by Debian 9 as a sample of
Nim/C integration, bu
Tested on devel, its fixed now. That was fast :P
I'm not sure I see your point. Yes, existing cyclic datastructures would
require significant modification in this new regime. But is _your_ code even
legal? Aren't you violating the single-ownership model?
It looks like `nim-faststreams` is just to bridge the API gap between mmap IO
and streams interfaces which is nice and all, but won't help for `startProcess`
or other `popen`-like contexts where in this discussion streams slowness was a
problem. { @mratsim didn't say it would, exactly, but I tho
I am Python developer. I am so excited about Nim. I am using it with Nimpy. And
i am learning Nim coding now. Excellent programming language. It has bright
future. I like so much Nim.
As shown in many other threads, you can get the same speed in Nim as in C or
Assembly, especially for scientific computing:
* [https://forum.nim-lang.org/t/5124](https://forum.nim-lang.org/t/5124)
* my experiments for Project Picasso:
[https://github.com/mratsim/weave/tree/master/benchmarks/
Anyway, your help saved the day. I'm expanding our use of Nim internally.
I still have a lot of concerns about performance for simple things, but Nim has
so much upside that I think we'll be ok.
Yes, a "canary field" would be a good debug-mode for reference-counting. That's
a very good idea.
Buffer-overflow is hard to detect, but when you switch to malloc/free there is
a very good chance that valgrind will notice something. Maybe that's wishful
thinking on my part.
Fix for negative float32 literals incoming -
[https://github.com/nim-lang/Nim/pull/12063/files](https://github.com/nim-lang/Nim/pull/12063/files)
It has been some years since I read the QL book. I thought it was a
fantastically elegant and efficient design for maintainable and robust code.
But, it takes a little effort to get your head around in the first place. -
very unlike trends in scriptable live development these days. I, for one, w
For what it's worth, I wrote ptrmath primarily for C/C++ interop. Modern
compilers are generally smart enough to generate identical code, and using
pointer arithmetic can even inhibit optimizations in some cases. You'll see
performance benefits only for certain edge cases and may lose performanc
It does nothing for objects that don't use inheritance.
WASHINGTON: So many NBA headliners from the United States are skipping the
Basketball World Cup in China that they would assemble a formidable all-star
squad of their own.
But it is nothing new for the Americans as they seek a third consecutive crown
in the global showdown that runs Aug 31 to S
* [http://www.state-machine.com/psicc](http://www.state-machine.com/psicc)/
* [http://www.state-machine.com/psicc2](http://www.state-machine.com/psicc2)/
What do you think about the pros/cons of events + state machine concept?
19 matches
Mail list logo