« first day (783 days earlier)      last day (110 days later) » 

user1804599
@FredOverflow lol
 
user1804599
Custom string interpolation is a good alternative to XML literals and Scala already supports it.
 
But XML support waaaaayyy predates string interpolation.
Slide 19 is interesting.
Only about 10% of coursera students make it through the course.
@райтфолд Slide 34
 
user1804599
Procedure syntax is a prime example of what I call tutorial-driven design.
 
Slide 45: Martin does not understand Monads?
@райтфолд What is procedure syntax? def?
 
user1804599
2:25 PM
{} instead of = {}
 
user1804599
It's terrible since you expect to be able to do def foo(): Unit { 42 }.
 
user1804599
Which also parses.
 
user1804599
It is an abstract method with a refined type as return type.
 
Do you think Scala should have an abstract keyword?
 
user1804599
It has one.
 
user1804599
2:30 PM
abstract override def f() = super.f() :D
 
user1804599
scala> abstract class C { def f(): Unit { } }
<console>:1: warning: Detected apparent refinement of Unit; are you missing an '=' sign?
       abstract class C { def f(): Unit { } }
                                        ^
<console>:7: warning: Detected apparent refinement of Unit; are you missing an '=' sign?
       abstract class C { def f(): Unit { } }
                                        ^
defined class C

scala> class D extends C
<console>:8: error: class D needs to be abstract, since method f in class C of type ()Unit is not defined
 
> hey, look, some PhD student chose Scala and not Go/Rust/Python/Nim/Swift/Java/Ruby/Haskell to write their "hadoop killer", and managed to make Scala from a "hey it's too complex 1 star won't program again" to "a language you can't ignore anymore and the hottest thing in big data / data science that is now even used in banks, BANKS I'm telling ya".
 
user1804599
> We mostly follow Java's and Scala's standard naming conventions.
 
user1804599
> mostly
 
user1804599
fail
 
user1804599
omg
 
user1804599
oh
 
user1804599
I've seen that one.
 
But it's only like 10 days old?
 
user1804599
at least, that talk
 
user1804599
2:40 PM
not this instance of the talk
 
user1804599
which is probably very similar
 
> videos plz :) Clojure/conj had their talks up hourly... Will we not see scaladays videos for some time because they must first be typechecked?
 
user1804599
@FredOverflow After having interpreted a function ten times, my VM JIT compiles it and replaces the function by the JIT-compiled version: github.com/mill-lang/mill/blob/feature/mill/jit/mill/src/…
 
You seem to be making great progress :)
 
user1804599
It works for hello world!
 
user1804599
2:41 PM
You can compile hello world and run it.
 
> This Odorski is least bothered about usability of Scala or Eclipse, so please do not ever again post anything by this callous Genius.
 
user1804599
Iota is a Turing-complete programming language with nothing but two operators. :D
 
user1804599
 
7:04 PM
@райтфолд lol funny. Did you make it yourself?
 
user1804599
@FredOverflow no.
 
user1804599
@FredOverflow I have a doubt.
 
@райтфолд Just one? A singleton?
 
user1804599
 
> changed the title from Make Boolean a twoton to Make Boolean a doubleton a day ago
That's your doubt? How to name a Doubleton?
 
user1804599
7:13 PM
No.
 
user1804599
My doubt is what to document first.
 
> No description provided.
Not that much worse than most real world documention...
 
user1804599
lol
 
user1804599
I mean documentation, not issue description.
 
like Javadoc?
 
user1804599
7:15 PM
No.
 
user1804599
Documentation about the language.
 
user1804599
Language specification.
 
screw spec #yolo
 
user1804599
Specification is one of the core ideas of Mill.
 
user1804599
Contracts and all. :v
 
7:25 PM
@райтфолд Origin?
 
user1804599
@FredOverflow /r/scala, somewhere in the all-time top posts.
 
> If Paul Philips, as a Scala internals developer feels that it's all gone to shit, then that's ok, but don't make such a drama to call Scala useless and horrible, because that it is not. That's like saying a race car sucks because under the hood there's a bunch of ugly wires and grease.
 
 
3 hours later…
10:38 PM
@райтфолд How come most of my commits don't have my github avatar next to them?
 
user1804599
@FredOverflow email address wrong
 
user1804599
@FredOverflow I'm learning Mercury!
 
@райтфолд I knew there was a catch to using that users.noreply.github.com fake address :)
@райтфолд Mercurial?
 
user1804599
No, Mercury.
 
user1804599
10:41 PM
Yes!
 
Reason?
 
user1804599
Fun!
 
user1804599
This Mercury program I just wrote reads five lines and prints them in reverse order with commas instead of newlines:
 
user1804599
:- module hello.

:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.

:- implementation.
:- import_module list, string.

:- pred main(list(string)::in, io::di, io::uo) is det.
main(Strings, !IO) :-
    ( if   list.length(Strings, 5)
      then io.format("%s\n", [s(string.join_list(", ", Strings))], !IO)
      else io.read_line_as_string(IOString, !IO),
           ( if   IOString = ok(String)
             then main([string.strip(String) | Strings], !IO)
             else io.write_string("Oops!\n", !IO)
 
user1804599
Note how main is pure despite of the I/O involved.
 
user1804599
10:47 PM
And that without monads!
 
user1804599
!IO is syntactic sugar for IOState_in, IOState_out, and IOState_in is unique, so it cannot be aliased. This allows for pure mutations.
 
user1804599
Because if you are the only one who knows about the input you got, you can mutate it all you want without anyone else noticing!
 
user1804599
Efficient immutable arrays achieved through mutability. :D
 

« first day (783 days earlier)      last day (110 days later) »