Better HN
topnewbestaskshowjobs
Log inSign up

zahary

11 karma · joined Feb 25, 2011 (15y ago) · 6 submissions

Submissions

1.

Introducing Proof-of-Doge: Much Wow. Very Upgrade. Such Green(github.com ↗)

1 points · by zahary · 1y ago · discuss

comment 11y ago · link · parent

Depends on your definition of "good performance". Idiomatic lisp was never able to compete with the Fortran-s and C/C++-s of its age, but Nim is.

comment 11y ago · link · parent

Well, you have to combine just two of these features to leave Nim in a very small company of languages, mostly developed in the last decade. Good performance and meta-programming ("run regular code at compile time") used to be found at the opposite ends of the programming languages spectrum and Nim is unifying them in a single package - that's what people are excited about.

comment 11y ago · link · parent

The Nim compiler offers a set of tools intended for use in IDEs ant text-editors that help with this. Besides the style insensitive grep, there are also a compiler-assisted "go to definition" and "list references" commands.

comment 11y ago · link · parent

I'm still waiting for the day when the JS community will discover tup [1]. Tup's greatest strength is that is can discover build dependencies automatically by file I/O monitoring in any kind of compiler or build script.

Many source formats eventually gain the capability to include other files (e.g. jade partials) or reference them in other ways (e.g. you can check the size of an image while you are generating a Sprite CSS fragments) as part of the build process and this is where Grunt or Gulp or any other naive build system will fail immediately. Specialized build systems can handle the dependency checking for particular build targets (e.g. Cmake for C++), but tup makes it extremely easy to have proper minimal re-builds with any kind of compiler.

There is also an automatic re-build mode that's triggered as soon as you save the source file in the editor and it's a joy to use in web projects.

[1] http://gittup.org/tup/

comment 13y ago · link · parent

Well, Nimrod is built around type-infernce. Most of the time you should just say "var thing = somethingStringy()".