News for hackers. Stuff that matters.

nox_

Re:Rust 1.34.0 on Friday April 12, 2019 @08:10AM (#19644054)
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.
Re:The Piston image library is now pure Rust on Monday January 09, 2017 @08:43AM (#13356227)
The inflate crate is absolutely devoid of tests and full of unsafe code though, so the foundations of all of that are quite weak.
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.
Re:Phoenix 1.0 on Saturday August 29, 2015 @10:37AM (#10140092)
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.
Re:The Unix Philosophy and Elixir as an Alternative to Go on Tuesday June 23, 2015 @07:23AM (#9763901)
Erlang is not homoiconic. Did you mean Elixir? Neither are anyway.
Re:Isomorphic JavaScript with React and Node on Saturday January 03, 2015 @06:50AM (#8830550)
Metaphors make sense, that reusing of isomorphism doesn't, however you quote Greek words to justify your means.
Re:Isomorphic JavaScript with React and Node on Friday January 02, 2015 @07:16PM (#8829310)
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.

Re:Isomorphic JavaScript with React and Node on Friday January 02, 2015 @05:56PM (#8829042)
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?
Re:The reason people burn out on open source on Sunday December 07, 2014 @08:50AM (#8712137)
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.
Re:Stuff Goes Bad: Erlang in Anger on Saturday September 20, 2014 @10:53PM (#8346158)
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

Re:Stuff Goes Bad: Erlang in Anger on Saturday September 20, 2014 @09:12AM (#8344425)
You can. And even if you couldn't, what I mentioned is still different scoping rules, whether you put scare quotes or not.
Re:Stuff Goes Bad: Erlang in Anger on Friday September 19, 2014 @10:01AM (#8340519)
Variables in Elixir can be rebound, and there are no unsafe variables at all in Elixir.
Re:Stuff Goes Bad: Erlang in Anger on Thursday September 18, 2014 @05:10AM (#8334348)
Sharing a common subset does not make them "fundamentally the same language".
Re:Stuff Goes Bad: Erlang in Anger on Thursday September 18, 2014 @05:03AM (#8334325)
Quotes don't magically let you say wrong things.
Re:Stuff Goes Bad: Erlang in Anger on Wednesday September 17, 2014 @07:52PM (#8332952)
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.

Re:Elixir Release v1.0.0 on Wednesday September 10, 2014 @01:00PM (#8297552)
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.
Re:Elixir Release v1.0.0 on Wednesday September 10, 2014 @12:39PM (#8297427)
Hah, yeah, let's port everything for no obvious reason.
Re:How I Start: Elixir on Thursday July 10, 2014 @11:24AM (#8015263)
Elixir's compiler emits Erlang forms, and then relies on OTP's Erlang's compiler. It is not a direct process.
Re:How I Start: Elixir on Thursday July 10, 2014 @10:58AM (#8015172)
> - Elixir compiles directly to Erlang byte code

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

Re:Erlang and code style on Sunday May 25, 2014 @06:57AM (#7796058)
For the terse badmatch error and such, you might be interested in Shippai:

https://github.com/nox/shippai

Re:You already use Lisp syntax on Wednesday May 21, 2014 @06:50AM (#7777530)
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.
Re:Type checking in Python on Sunday May 18, 2014 @04:22PM (#7764267)
Too bad that this isn't type checking in the traditional sense though. That's just runtime tag checking.
Re:GitHub Language Trends on Sunday May 04, 2014 @09:43AM (#7694253)
"Tries" is the operative word here. There is a documented history of utter incompetence in Linguist.
Re:Pass: The standard unix password manager on Sunday March 30, 2014 @10:07AM (#7496166)
And what exactly is standard about this?
Re:GitHub's language detection is broken on Friday March 14, 2014 @12:16PM (#7399812)
> C++ gets often recognized as C.

The disambiguation test for C++ headers is ridiculous:

      matches << Language["C++"] if data.include?("#include <cstdint>")
Re:GitHub's language detection is broken on Friday March 14, 2014 @12:05PM (#7399727)
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.
Re:GitHub's language detection is broken on Friday March 14, 2014 @11:50AM (#7399616)
Except that primary_extension does not serve any purpose.
Re:GitHub's language detection is broken on Friday March 14, 2014 @07:39AM (#7398092)
Re:GitHub's language detection is broken on Friday March 14, 2014 @07:30AM (#7398060)
> 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/...

Re:Intro to Haskell for Erlangers on Sunday March 09, 2014 @10:19PM (#7370988)
Yes, Erlang patterns are non-linear, Haskell has view patterns. Neither are more powerful than the other. They are just different.

Erlang non-linear patterns fit more with the semantics of match where an already bound name isn't shadowed, view patterns fit well into Haskell because of the ensured purity.

Older »