News for hackers. Stuff that matters.

Pharohbot

Re:Crystal Language on Monday June 08, 2015 @06:11AM (#9678112)
Well if you have decent tools to debug them, why should he be wary?
Re:Is Nim unsafe? on Saturday June 06, 2015 @11:04AM (#9671018)
Well the biggest concern for most is null pointers, so invoking not nil on the pointers would suffice for most
Re:Go channels, goroutines and GC available in Nim on Tuesday June 02, 2015 @07:43PM (#9649737)
when --nilChecks:On become a thing, dereferencing null pointers will be like Java, a NilError (NullPointerException in Java). This is why I said it's as safe mainstream languages that dont have AMM but languages like Rust are safer than those mainstream languages. any others to point out?
Re:Go channels, goroutines and GC available in Nim on Tuesday June 02, 2015 @07:39PM (#9649722)
Since when were we comparing Nim and Rust? yes Rust is more safe than Nim, but that comes with tradeoffs. You are obviously not reading the whole thread about me bringing up (multiple times) the fact that you can avoid these and will be even easier to avoid in the future.
Re:Go channels, goroutines and GC available in Nim on Tuesday June 02, 2015 @07:36PM (#9649708)
> Because it isn't true

Did you not see the other person who just said that?

> Strawman ... the comment was about scripting languages.

I do not have a clue what you are trying to say...

Re:Go channels, goroutines and GC available in Nim on Tuesday June 02, 2015 @06:40AM (#9644986)
I never said that Nim is safe/ doesnt have safe areas in the language. But at this stage of development with Nim, it really focuses on the Language goals rather than anything else right now. I have only stated multiple times through this thread that there are way to avoid this unsafetiness and ways that will help avoid these situations in the Future with Nim (nilChecks)
Re:Go channels, goroutines and GC available in Nim on Tuesday June 02, 2015 @06:34AM (#9644970)
As stated before in this thread, there _will_ be nil Checks in the future which will result in NilErrors or you can just annotate it with `not nil` right now and it will never be nil. You can also use -fsanitize flags with the clang backend to trap the null dereferences.
Re:Go channels, goroutines and GC available in Nim on Monday June 01, 2015 @09:59PM (#9643384)
I probably should have been more clear, but I think it's safe to say that unlike C/C++, Nim can handle these types of issues like other languages that deal with pointers (Java, Go etc) with control from the programmer. The only memory safe language I know is Rust, but I am probably wrong on that part, so that's why I singled out Rust on how It's safer than Nim.
Re:Go channels, goroutines and GC available in Nim on Monday June 01, 2015 @09:55PM (#9643372)
It really depends on how you define "safe". Nim will allow you to deref null pointers (unless you annotate it with `not nil`, then it can never be nil, this results in compile errors if it is) but if they are, it will be like Java and throw an exception if --nilChecks:On. The only language I know that makes pointers safe is Rust, with it's borrow checker and such, but that's a tradeoff I don't really want and the options Nim provides are better for my case.
Re:Go channels, goroutines and GC available in Nim on Monday June 01, 2015 @08:33PM (#9643117)
As stated before, there are ways to avoid them and ways that Nim will soon handle them, but do you know how many other languages deref a NULL pointer? Unlike C, this does not result in undefined behavior in means that it will execute something unsafe in Nim
Re:Go channels, goroutines and GC available in Nim on Monday June 01, 2015 @06:33PM (#9642681)
Uhh that's not much of an answer...
Re:Go channels, goroutines and GC available in Nim on Monday June 01, 2015 @06:33PM (#9642680)
Yes Rust is more safe than Nim, I'm not arguing that. I'm also not arguing that Nim is as safe as languages with automatic memory management.

EDIT: Also, Nim is planning on turning those segfaults into runtime NilErrors and a nilChecks flag that will check for them at compile time, you can also avoid this by annotating Pointers with `not nil`

Re:Go channels, goroutines and GC available in Nim on Monday June 01, 2015 @06:01PM (#9642495)
Do you have any specific examples of these unsafetiness in Nim?
Re:Go channels, goroutines and GC available in Nim on Monday June 01, 2015 @05:47PM (#9642397)
Why not? I'm interested to know because in my opinion I don't see it any less safe than languages that don't have automatic memory management and/or languages like Rust.
Re:Go channels, goroutines and GC available in Nim on Monday June 01, 2015 @05:05PM (#9642146)
Nim is as safe as any other language. Perhaps it's not as safe as Rust but that brings specific trade offs most people dont wan't to deal with. I don't understand why people think that Nim is "terribly unsafe" when in reality it's like any other language
Re:Go channels, goroutines and GC available in Nim on Monday June 01, 2015 @03:43PM (#9641581)
A more general approach to shared memory via lockable heaps is a feature Nim seems will implement soon.
Re:Crystal 0.7.0 released on Friday May 01, 2015 @12:39PM (#9472701)
Sweeet
Re:Ruby to perform as fast ad Native Java and C on Friday March 27, 2015 @10:31AM (#9276468)
It's still the Ruby language, just a different run-time environment.
Re:Ruby to perform as fast ad Native Java and C on Friday March 27, 2015 @10:30AM (#9276466)
The performance will be on par _before_ the final release of 9000, the final release should include the big performance boost

Rust WebDev in action

I'm learning Rust at the moment, but it has never occurred to me until now that the website[1] is written in Rust. pretty sweet if you ask me, Rust's future in WebDev seems really promising, even before 1.0.[1]: http://ironframework.io/

( Read More... | no comments | 5 points | on HN )

Older »