System Programming in 2k20

2020-08-31 Thread zulu
That's an unnecessary rude and xenophobic comment on your part. Everyone looking at the blog post can find for themselves that the author is a bit immature and probably not competent enough to deliver.

System Programming in 2k20

2020-08-31 Thread moerm
Sorry, but your attempt to look cool and smart utterly failed. I'd like to counter some of you blab^H^H^H^H elaborations but there is not even a clear line nor does your "thinking" carry the weight to deserve it. As for your language Onyx (btw. do you call everything you do "Onyx"?) I'm acutely

Nimble package structure and interop changes

2020-08-31 Thread Araq
> I've updated the wiki with a backwards compatibility section. Please review > changes and let me know if you have any feedback. Seems to be well thought-through, congrats! :-)

System Programming in 2k20

2020-08-31 Thread Pixeye
Stopped reading at this point: : It has a Python-like indentation-based syntax Run It's an excuse.

Nim embedded inside Python

2020-08-31 Thread juancarlospaco
$ echo "echo 42" > example.nims $ pip install nim4py==0c42da8 $ python3.8 >>> import nim4py >>> nim4py.nimscript("example.nims", ["/home/juan/.choosenim/toolchains/nim-1.3.5/lib/"]) 42 >>> Run *

System Programming in 2k20

2020-08-31 Thread tmsa04
An ambitious project, but had you seen this? ) There is already a language called Onyx. It's over 120 years since H.G. Wells published the War of the Worlds about a Martian invasion, so people did imagine all sorts of things 100 years ago, a

Nimble package structure and interop changes

2020-08-31 Thread federico3
The biggest pain point for me is that there is no reliable way to create an OS package for a Nim library (or tool) from a GitHub tag / tarball.

System Programming in 2k20

2020-08-31 Thread JPLRouge
> A language exists for a purpose. Nim is great for game development and > otherwise general applications requiring more performance than dynamic > languages. You see I have found by using in a certain way to make dynamic, the functional of a program and in some sort to apply the theory of gran

System Programming in 2k20

2020-08-31 Thread JPLRouge
> Why going lower-level inherently means "growing up"? This is not what I meant: He doesn't pretend he's perfect, but he hasn't said his last word

System Programming in 2k20

2020-08-31 Thread JPLRouge
I worked a very long time on ROO systems and not OO or OOP, RelationalObjeObjet, so far in Nim I find my account, I have also worked with C / C ++, and I reconsidered the choice of orientation on a language which would be coherent, and respecting security (by omitting the hackers) allowing me to

Nimble package structure and interop changes

2020-08-31 Thread shashlick
Responding to some points raised by @zahary. Regarding package structure, I've added some info in the `nim.cfg interop` section detailing how multi-package repos can be handled with the same `nim.cfg` path mechanism. But the main motivation of these changes is to simply the lives of library wri

System Programming in 2k20

2020-08-31 Thread vladfaust
> not see the real objective criticism on Nim Are you sure about that? I even put links into the bullet list describing why Nim is not the best choice for **real** system programming.

System Programming in 2k20

2020-08-31 Thread JPLRouge
in conclusion all this is to sell ONYX, why not but I do not see the real objective criticism on Nim, and the party taken against Rust, is in my opinion only to enhance the option of going on ONYX !!

System Programming in 2k20

2020-08-31 Thread vladfaust
Hey, I've recently finished worked on an article compiling my thoughts on current state of system programming. Nim is mentioned there. Rust is hated there. I've posted it in the Telegram chat previously and gathered some helpful feedback, and even updated the Nim section. Would be glad to hear

Nimble package structure and interop changes

2020-08-31 Thread shashlick
@Araq \- I've updated the wiki with a backwards compatibility section. Please review changes and let me know if you have any feedback.

global var not detected by compiles()

2020-08-31 Thread stbalbach
Ah thank you missed the elephant for the ghost

global var not detected by compiles()

2020-08-31 Thread Araq
When `main` is compiled your global variable is not yet declared. This works: template test(k: untyped) = when compiles(k): echo "it compiled" k = "New England" else: echo "not compiled" var k = "New England" var

global var not detected by compiles()

2020-08-31 Thread stbalbach
Given this: template test(k: untyped) = when compiles(k): echo "it compiled" k = "New England" else: echo "not compiled" var k = "New England" proc main() = test(pagekey) var pagekey = "England"

Question for the language theorists: Is NIm's OO class-based or prototype-based?

2020-08-31 Thread halloleo
Thanks, that makes it clear. Much appreciated.

Question for the language theorists: Is NIm's OO class-based or prototype-based?

2020-08-31 Thread Araq
It is class based. Few operations are made part of the "class" but that doesn't make it closer to "prototype-based".

Question for the language theorists: Is NIm's OO class-based or prototype-based?

2020-08-31 Thread Pixeye
Nim is not OO lang :)

Question for the language theorists: Is NIm's OO class-based or prototype-based?

2020-08-31 Thread halloleo
I just read about the division of object-oriented languages in **class-based** and **prototype-based**. Through Python and Java I'm more used to the class-based approach, but with JavaScript I know a bit about prototype-based OOP as well. Now I am wondering in what category falls Nim? I guess i

Trouble using parallel

2020-08-31 Thread mratsim
There is a bug in either threadpool or in `parallel` introduced by the new destructor changes. I tried to use `parallel` myself and never managed to besides the example in the experimental manual (and I wrote an entire multithreading library [Weave](https://github.com/mratsim/weave)). Just use

Trouble using parallel

2020-08-31 Thread ElAfalw
So, any idea?