News for hackers. Stuff that matters.

throwaway487550

Re:Rust 2018 is here, but what is it? on Friday December 07, 2018 @11:45AM (#18629149)
How could I write this in Rust?

    fun map f [] = []
      | map f (x::xs) = (f x) :: map f xs;
And boy, no TCO. What a shame.
Re:Rust 2018 is here, but what is it? on Friday December 07, 2018 @11:42AM (#18629122)
> Rust's traits are type-classes.

And the functor typeclass in Rust looks like...?

Re:Rust 2018 is here, but what is it? on Friday December 07, 2018 @02:44AM (#18625821)
Protobuf does implicitly, via code-generation, what could be done explicitly via defining algebraic types and pattern-marching on receive, a-la Erlang.
Re:Rust 2018 is here, but what is it? on Thursday December 06, 2018 @10:20PM (#18624879)
Still, we want more things to be boldly and shamelessly borrowed from ML and Haskell

  * Universal pattern-matching (everywhere)
  * Obvious syntactic sugar for defining and applying curried 
    functions, partial application.
  * Type-classes (as a one single major innovation in PL 
    since Smalltalk)
  * receive (or select) with pattern matching (Erlang, protobuf).
  * first class typed channels (Go).
  * multimethods (CLOS).
Thank you!
Re:An Introduction to the EMACS Editor (1978) on Thursday December 06, 2018 @09:04PM (#18624503)
No. They never produced anything even vaguely similar to J2EE, NodeJS or PHP.

Old School things, like ML, MIT Scheme, T3 Scheme, Common Lisps and Haskell are unattainable to modern narcissistic idiots.

Re:An Introduction to the EMACS Editor (1978) on Thursday December 06, 2018 @07:51AM (#18617576)
https://www.youtube.com/watch?v=_2NI6t2r_Hs among other things.

These were places where old-school (with classical understanding, if we follow Robert M. Pirsig) people tried to reduce grounded in reality concepts to optimal (as humanly possible) implementations, as opposed to the modern tendency to pile up more and more crap.

Re:'Dark fluid' with negative mass could dominate the universe on Thursday December 06, 2018 @06:20AM (#18617062)
How abstract concepts, introduced to establish artificial symmetry, could be used to describe aspects of reality which does not rely on any abstract notions whatsoever?

Some processes are symmetrical to an outside observer, which does not imply that anything must be or should be symmetrical. It is an observer's preference to see symmetry everywhere.

There is no such fucking things as "dark" liquids or negative "masses" merely because a model superimposed on reality have nothing to do with reality itself.

The impossibility is the same as the principal impossibility of revealing the CPU's actual wiring from the level of code it runs. There is not a single fucking way to do it in principle, no mater what fancy guesswork one would use or what kind of a wrongly simulated model one will superimpose on what one is able to "see" and examine.

This is not even science, but some sort of contest of abstract theology, crafted to please fellow reviewers and sectarians.

Re:An Introduction to the EMACS Editor (1978) on Thursday December 06, 2018 @06:11AM (#18617031)
Nowadays it cannot even be fully comprehend how places like MIT, Stanford AI lab, Xerox Park research and, of course, Bell labs were islands of intelligence and sanity compared to the modern day's ocean of screaming bullshit.

''Dark liquid with negative mass'' sort of papers is what it all came to.