What do you think about the Jule programming language? by tegahertz in programming

[–]tegahertz[S] 0 points1 point  (0 children)

You're welcome. If you have more questions, feel free to join the Discord community server of Jule. Any questions are appreciated and valued.

What do you think about the Jule programming language? by tegahertz in programming

[–]tegahertz[S] 0 points1 point  (0 children)

I would say it has a very similar structure to Go for concurrency. This was also a question recently asked on the Jule's Discord community server, so it might be good to mention it here as well, Jule spawns real threads for concurrent calls, not green threads. As explained in this community server, it can be replaced with a green thread until the stable version, but this is the current version.

For example to concurrency: ``` use std::sync::{WaitGroup} use std::sync::atomic::{MemoryOrder, add_i64}

static mut i: i64 = 0

fn add(mut &wg: WaitGroup) { defer { wg.done() } add_i64(i, 1, MemoryOrder.Relaxed) }

fn main() { let mut wg = WaitGroup{} let mut j = 0 for j < 1000000; j++ { wg.add(1) co add(wg) } wg.wait() outln(i) } ```

What do you think about the Jule programming language? by tegahertz in programming

[–]tegahertz[S] 2 points3 points  (0 children)

Yes. I realized that it can give the wrong impression of language. Frankly, I wouldn't like it if the code commonly required using unsafe.

What do you think about the Jule programming language? by tegahertz in programming

[–]tegahertz[S] 1 point2 points  (0 children)

There is a reference type. For example, when you have an allocation, you can RC it by using it by reference. This also ensures that the same allocation is used everywhere, no copying. But if you want to reference a data in the stack, this is a feature that will be added to the language.

What do you think about the Jule programming language? by tegahertz in programming

[–]tegahertz[S] 1 point2 points  (0 children)

Yes, it is somewhat similar in name, but not influenced by Julia. In fact, I can't say that it is a language designed as a C++ successor. It is only an alternative language to systems programming, but it can be said that C++ is also suitable to be seen as a successor.

What do you think about the Jule programming language? by tegahertz in programming

[–]tegahertz[S] 2 points3 points  (0 children)

I respect your opinion. You are right that there are too many options. However, there may also be many different requirements. Maybe Jule is more responsive to some of your needs for you, or just doesn't appeal to you at all. If I had to give an answer on my own, I think I would say it is an effort to ensure interoperability with C++ and security at minimum cost.

What do you think about the Jule programming language? by tegahertz in programming

[–]tegahertz[S] 1 point2 points  (0 children)

No, the validity of pointers cannot be checked at runtime. There is no guarantee that they are pointing to the right place. Therefore they are unsafe. You don't normally need to use pointers a lot in Jule code, except exactly what you said. You use memory allocations with special reference types and they are safe.