Better HN
topnewbestaskshowjobs
Log inSign up

nox_

107 karma · joined Mar 27, 2012 (14y ago) · 49 submissions

Submissions

comment 7y ago · link · parent

Cf. `try` becoming a keyword, when there are hundreds of calls to a method named `try` in Servo, one of the largest Rust projects in existence.

comment 9y ago · link · parent

The inflate crate is absolutely devoid of tests and full of unsafe code though, so the foundations of all of that are quite weak.

comment 9y ago · link · parent

I implemented them in R17. José doesn't dislike them but doesn't have a syntax that fits Elixir for them, given parens around arguments of a lambda are optional.

comment 11y ago · link · parent

I have rarely read things that were that much wrong. Just because the code can be represented as a data structure, or just because the compiler is written in its own language, that doesn't make a language homoiconic.

comment 11y ago · link · parent

Erlang is not homoiconic. Did you mean Elixir? Neither are anyway.

comment 11y ago · link · parent

Metaphors make sense, that reusing of isomorphism doesn't, however you quote Greek words to justify your means.

comment 11y ago · link · parent

Isomorphism was already a word before Nodejitsu abused it. Your examples are acronyms and abbreviations.

Nevermind that this concept is not even worth a name.

comment 11y ago · link · parent

In which universe is polymorphism the opposite of isomorphism? Couldn't we just have said "JavaScript that runs everywhere" instead of trying to sound educated?

comment 11y ago · link · parent

Replying with an attack and closing comments is definitely something a douchebag would do. Free or opensource doesn't mean you get to be irresponsible about what you release or maintain, if your project has some caveats they should be listed explicitly.

comment 12y ago · link · parent

You introduced a closure there. Bindings set in if, case, receive, etc will spill in their surrounding environment. Obviously they won't spill outside closures without mutable terms, which BEAM lacks.

The bits about SSA transformation needed to be done by hand in Erlang are a bit fun, because that's considered a feature in the Erlang realm.

The scoping rules aren't the same for the very reason you dismiss as an implementation detail.

Scare quotes: http://en.wikipedia.org/wiki/Scare_quotes

comment 12y ago · link · parent

You can. And even if you couldn't, what I mentioned is still different scoping rules, whether you put scare quotes or not.

comment 12y ago · link · parent

Variables in Elixir can be rebound, and there are no unsafe variables at all in Elixir.

comment 12y ago · link · parent

Sharing a common subset does not make them "fundamentally the same language".

comment 12y ago · link · parent

Quotes don't magically let you say wrong things.

comment 12y ago · link · parent

When two languages have different scoping rules, they don't have the same semantics. When two languages differ in their opinion about macros, they don't have the same semantics.

When two languages have different semantics, they are different languages.

And finally, when two languages have fundamentally different syntaxes, the idioms promoted by their creators differ, and thus problems are solved in different ways.

They are not fundamentally the same language, no.

comment 12y ago · link · parent

Syntax is the least of your worries when learning a new language. Elixir isn't Ruby. Some new projects may be developed in Elixir but it will never supplant Erlang.

comment 12y ago · link · parent

Hah, yeah, let's port everything for no obvious reason.

comment 12y ago · link · parent

Elixir's compiler emits Erlang forms, and then relies on OTP's Erlang's compiler. It is not a direct process.

comment 12y ago · link · parent

> - Elixir compiles directly to Erlang byte code

No, it compiles to Erlang. Which is then compiled by the Erlang compiler.

comment 12y ago · link · parent

For the terse badmatch error and such, you might be interested in Shippai:

https://github.com/nox/shippai

comment 12y ago · link · parent

Why was this downvoted when it clearly shows how this article is misguided? Just because a language uses parentheses for some of its constructions doesn't mean we can call Lisp syntax.

comment 12y ago · link · parent

Too bad that this isn't type checking in the traditional sense though. That's just runtime tag checking.

comment 12y ago · link · parent

"Tries" is the operative word here. There is a documented history of utter incompetence in Linguist.

comment 12y ago · link · parent

And what exactly is standard about this?

comment 12y ago · link · parent

> C++ gets often recognized as C.

The disambiguation test for C++ headers is ridiculous:

      matches << Language["C++"] if data.include?("#include <cstdint>")

comment 12y ago · link · parent

There is no unicity check anymore; I just kept the first one special because some private code at GitHub seems to rely on the primary_extension property for the Gist editor. As I can't hack this (it is private), I can't remove it entirely.

comment 12y ago · link · parent

Except that primary_extension does not serve any purpose.

comment 12y ago · link · parent

Do you mean, a fix like https://github.com/github/linguist/pull/985?

comment 12y ago · link · parent

> My understanding is that primary_extension is simply used to short circuit analysis when it's unique to a language.

No, the primary_extension is only used in a gists_helper.rb file outside the Linguist repos. Note that the feature is deprecated anyway.

https://github.com/github/linguist/blob/master/lib/linguist/...

12