News for hackers. Stuff that matters.
Re:What I Learned Making My Own JIT Language by ummonk on Wednesday June 27, 2018 @04:48PM (#17411730)
How many "better designed" dynamic languages are there even out there? Julia is one such language and is substantially faster than V8, at least for idiomatic code.

The problem is that most dynamic languages (like JS) are never designed with speed and efficiency in mind. JS just happens to be the fastest of that bunch (other than Lua) because browser makers have invested substantial effort into making it fast - far more than anyone has put into other dynamic languages.

Re:What I Learned Making My Own JIT Language by arghwhat on Wednesday June 27, 2018 @06:27PM (#17412409)
I don't understand interest in dynamic languages. I have worked with them extensively, but I find them to be handicapped without benefit.

However, JS specifically was not designed at all to begin with, but just thrown together, and core concepts have stayed since this first iteration. These core concepts are its primary handicap.

Re:What I Learned Making My Own JIT Language by ummonk on Thursday June 28, 2018 @07:41PM (#17421366)
Well, there are some use-cases where Julia is actually faster than compiled code due to being able to compile dynamically generated code on the fly (see https://discourse.julialang.org/t/julia-vs-fortran-complaint...)

But yes, in general the same lack of static guarantees that makes dynamic languages slow also makes code in dynamic languages hard to maintain. I think a lot of programmers tinker with code in dynamic languages and end up liking them as a result, but don't realize the difficulty of working in such a language in a much more complex codebase.

Re:What I Learned Making My Own JIT Language by Sawamara on Wednesday June 27, 2018 @04:50PM (#17411749)
Usual suspects that many people who hate JS seem to champion are are python, lua, ruby.

I love Lua personally, but it has its own traps too. Never could get into Python too much, the indentation syntax is killing me :P

Re:What I Learned Making My Own JIT Language by arghwhat on Wednesday June 27, 2018 @06:37PM (#17412470)
I hate JS with a passion (I worked with it professionally for years, and wrote crypto and compression algorithms, as well as an entire web browser sandbox), but my refuge is in static languages.

I no longer see dynamic languages useful for more than bash-like scripting where correctness is uninteresting. :/