HN user

Pharohbot

209 karma
Posts33
Comments46
View on HN
www.quora.com 11y ago

Of the emerging systems languages, which is the strongest language and why?

Pharohbot
3pts0
github.com 11y ago

Is Nim unsafe?

Pharohbot
47pts38
nim-by-example.github.io 11y ago

Nim by Example

Pharohbot
2pts0
forum.nim-lang.org 11y ago

What can Nim learn from Crystal

Pharohbot
2pts0
crystal-lang.org 11y ago

Crystal: A Ruby-Inspired Compiled Language

Pharohbot
16pts2
www.chrisseaton.com 11y ago

JRuby+Truffle Overview and Tests

Pharohbot
2pts0
www.chrisseaton.com 11y ago

Very High Performance JRuby+Truffle/C Extenions

Pharohbot
1pts0
gist.github.com 11y ago

Lotus.rb performs faster than Express.js

Pharohbot
1pts0
voltframework.com 11y ago

Volt Framework – Fast Ruby Framework for Both Server-Side and Client-Side

Pharohbot
1pts0
arthurtw.github.io 11y ago

Updated(Read Updates) Quick Comparison Between Nim and Rust

Pharohbot
4pts0
news.ycombinator.com 11y ago

Rust WebDev in action

Pharohbot
5pts0
news.ycombinator.com 11y ago

Learn C or Rust first?

Pharohbot
5pts14
rubini.us 11y ago

Improve Ruby Concurrency and Run FAST Ruby Code

Pharohbot
2pts0
news.ycombinator.com 11y ago

Ruby on Rails' Speed

Pharohbot
1pts1
news.ycombinator.com 11y ago

Choosing to Learn a Secondary Language.(Rust, Go, or Rails)

Pharohbot
2pts2
www.quora.com 11y ago

Currently, IO.js is faster than Node.js

Pharohbot
8pts2
codereview.chromium.org 11y ago

Next Google Chrome will enable turbofan-asm

Pharohbot
3pts0
news.ycombinator.com 11y ago

V8 Crankshaft outperforms DartVM

Pharohbot
5pts20
news.ycombinator.com 11y ago

Dart vs. Node.js vs. Go for Building a Web App

Pharohbot
1pts4
news.dartlang.org 11y ago

Dart 1.8: library improvements and experimental support for enums

Pharohbot
57pts14
news.ycombinator.com 11y ago

What do you guys think about AtScript?

Pharohbot
2pts1
arewefastyet.com 11y ago

Superfast asm.js benchmarks of V8 TurboFan

Pharohbot
37pts30
wpdev.uservoice.com 11y ago

Go vote for the DartVM to be implmented

Pharohbot
4pts0
www.infoworld.com 11y ago

Node.js going mobile

Pharohbot
7pts0
news.ycombinator.com 11y ago

JavaScript's Future seems very bright

Pharohbot
2pts2
code.google.com 11y ago

How fast will V8 be after the asm.js issue is resolved?

Pharohbot
3pts3
news.ycombinator.com 11y ago

What websites are using asm.js?

Pharohbot
7pts1
news.ycombinator.com 11y ago

ASM.JS and JavaScript V8/Node.js?

Pharohbot
7pts4
news.ycombinator.com 11y ago

Ask HN: Dart's Future

Pharohbot
14pts25
news.ycombinator.com 11y ago

DartVM Faster Than JavaScript V8?

Pharohbot
3pts4
Is Nim unsafe? 11 years ago

Well the biggest concern for most is null pointers, so invoking not nil on the pointers would suffice for most

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?

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.

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)

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.

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.

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.

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

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`

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

[dead] 11 years ago

It's still the Ruby language, just a different run-time environment.

[dead] 11 years ago

The performance will be on par _before_ the final release of 9000, the final release should include the big performance boost

but I stated that I do not wish to learn about how the internals of the computer works, rather than im more interested in the language itself, which is Rust. plus I saw Elixir, I didnt like it all :(

I dont personally like Go, but from what you mean, since im taking Java, I dont need to learn C on top of that, so I can just get into Rust(and i want to be a web developer as a career). plus Rust has its frameworks like Nickel and Iron that are being actively developed on.

Are you sure? I dont think Sinatra outperforms nodejs, although I could be wrong, this is just a broad perspective of Node's speed and Ruby's speed. Any benchmarks or anything to enlighten me?