recentpopularlog in

mcherm : scala   165

« earlier  
Comparing the Same Project in Rust, Haskell, C++, Python, Scala and OCaml - Tristan Hume
A *really* good case study: for a course, several competent teams wrote the same program is various languages. Afterward, the code size was compared. Slight advantage to Python and Scala, but mostly it depended on the design decisions, not the language.
programming  programminglanguages  rust  scala  python  haskell  C++  ocaml  via:HackerNews 
june 2019 by mcherm
Consider syntax with significant indentation · Issue #2491 · lampepfl/dotty · GitHub
Scala will probably introduce indentation to signify block structure. Here's why.
languagedesign  scala  via:reddit 
may 2017 by mcherm
Moving from Java to Scala | R.N Tech
How his company moved from Java to Scala and what they found. They started w/ tests first (low risk); they found immutable collections and functional coding to be good and it was faster to develop.
scala  programming  via:HackerNews 
february 2015 by mcherm
Why I Don't Like Akka Actors
Akka actors in Scala are not composable. Their interesting behavior is not checked by the type system.
concurrentprogramming  scala  languagedesign 
october 2014 by mcherm
typelevel.scala | Typelevel Scala and the future of the Scala ecosystem
Someone proposes forking the scala compiler (but retaining binary compatibility) to have a version for the folks from the Haskell world that's different from the version used by the folks from the Java world.
scala  via:HackerNews  personal_net 
september 2014 by mcherm
Grundlefleck's Blog - Using Scala Will Make You Less Productive
He says Scala made him LESS productive. Complaints are compile time, IDE support, operator overloading is confusing, and implicit is confusing. He clearly understands the language so this is a well-reasoned review.
programming  programminglanguages  scala  via:HackerNews 
march 2014 by mcherm
Java: easy to read; Scala: expressive of high level concepts
Java restricts how you can express things which means it's always low level but easy to jump into someone's code. All specialists create a jargon which is concise but difficult for outsiders. Scala supports "jargons" for projects: better high-level expressivity but difficult to read for outsiders to the project.
scala  languagedesign  java  programming  via:HackerNews 
december 2013 by mcherm
Scala — 1★ Would Not Program Again
A critique of Scala as being difficult to use.
programming  scala  via:reddit 
december 2013 by mcherm
Scaling Scala vs Java - all that jazz
Scala apps perform and scale better than Java apps because the language makes it easier to use things like asynchronous calling and immutable data.
programming  java  scala  asynchronous  immutable  scalability  via:HackerNews 
november 2013 by mcherm
Parallel Universe • No More Callbacks: 10,000 Actors, 10,000 Threads, 10,000 Spaceships
He ran a simulation with LOTS of "actors" using the actor library rather than traditional threading. Says it works well.
concurrency  concurrentprogramming  programming  java  jvm  scala  performance  via:HackerNews 
october 2013 by mcherm
fogus: Groovin’ with Scala
A simple program in Java and step-by-step showing how it can be much simpler and shorter (and more readable) in Scala.
languagedesign  programming  scala 
october 2013 by mcherm
How learning Scala made me a better programmer | David R. MacIver
The Scala compiler was buggy, so he learned to generate a reproducible error and then minimize the program that generates it. This is a slow but vital debugging technique whenever you cannot isolate the error.
programming  via:DavidMacIver  DavidMacIver  scala  debugging  blogworthy 
september 2013 by mcherm
Scala Try/Catch Lifting Proposal: One Div Zero
Java has try-catch as a statement, Scala has it as an expression. That means in Scala it can be embedded in the middle of something complicated, like a call to a function. Here is discussion of two different ways of implementing that on the JVM.
languagedesign  scala  programming 
february 2013 by mcherm
Scala Macros - Getting started
One example to show how to use the new experimental macros in scalar.
scala  progamming  via:HackerNews 
april 2012 by mcherm
Effective Scala
Twitter's style guide for Scala code. It has lots of good suggestions almost none of which have to do with trivial formatting issues, and many of which apply for ANY language, not just Scala.
via:LambdaTheUltimate  scala  programming  twitter 
february 2012 by mcherm
SIP-14 - Futures and Promises - Scala Documentation
A scalar library for futures. Uses asynchronous callbacks. Which thread does it run in, I wonder?
scala  parallelprogramming  concurrentprogramming  via:twitter 
january 2012 by mcherm
True Scala complexity | @yaaang's blog
A detailed example of how Scala can be very complicated, even when trying to do something apparently straightforward. Good discussion with the community about it. Where does one go from here? I want all the things, but without complexity!
via:HackerNews  scala  languagedesign  programming 
january 2012 by mcherm
Scala, Patterns and The Perl Effect : Bruce Eckel
Some things are hard to learn; so if everyone uses different idioms a language is hard to read. Perl's "more than one way" vs Python's "one obvious way". Scala has many smart early adopters and the culture is too clever; it's bad for adoption of the language.
languagedesign  python  scala  via:BruceEckel  BruceEckel  programming  programminglanguages 
december 2011 by mcherm
Scala's version fragility make the Enterprise argument near impossible - Lift
In order for a language, in this case Scala, to grow beyond a certain size it needs some way to handle deeply nested library dependencies. Java does this well by having amazing backward compatibility. Scala has no good solution today and that's a problem.
scala  languagedesign  librarydesign  architecture  via:HackerNews 
december 2011 by mcherm
The Rest Of The Story | codahale.com
His review of Scala, and why you shouldn't read it.
scala  personal_net  programming  java  via:HackerNews 
november 2011 by mcherm
Scala benefits and drawbacks
One company's review of using Scala.
scala  programming 
november 2011 by mcherm
InfoQ: Is Scala the new EJB 2?
I disagree with most of what this article says.
scala  progamming  java 
november 2011 by mcherm
Java8 Lambda Expressions – Perhaps not as sexy as intended? | Craig Tataryn's .plan
Unlike scalar, lambda expressions in Java 8 don't have a "function type"; they can substitute for any interface / abstract class with just one method, and you have to care which one.
programming  languagedesign  java  scala  via:reddit 
november 2011 by mcherm
Scala Actors are Just Code - No Magic
An explanation of how Scala's actor library LOOKS like special forms in the language, but in fact it's just a library, and Scala has lots of ability to make fancy-looking syntax valid. For a use case like this, that may be good (I'm not sure); for 99% of all libraries, it's a bad thing, IMHO.
scala  languagedesign  programming 
august 2011 by mcherm
Swarm of XeBees » Is Scala really Faster than Java?
Analysis of a performance test that showed a Scala program ran faster than a Java program to do the same thing. Says the difference is in reduced need for garbage collection because of better data structures.
scala  java  performance  via:HackerNews 
june 2011 by mcherm
Scala levels: beginner to expert, application programmer to library designer | The Scala Programming Language
Martin Odersky's proposal for how you can take "subsets" of Scala (rather like everyone uses a subset of C++, except that there no one agrees on which subset to use).
scala  programming  MartinOdersky 
february 2011 by mcherm
Switching to Plan J
He tried Scala, but went back to Java. He likes the language (although the type system is too complex for him), but the killer was unreliable tools. He said IntelliJ > Eclipse, but neither was good enough.
languagedesign  scala  java  via:HackerNews  intellij  eclipse  programming 
february 2011 by mcherm
Kirk's Rants: Scala Considered Harmful For Large Projects?
Don't use Scala for parts of big Java projects in an enterprise context because it's just too tempting to use weird features and make maintanence difficult. It's very much like C++ in that regard.
java  scala  enterprise  programming  C++  via:HackerNews 
february 2011 by mcherm
YACC is Dead: the derivative of a regular expression
This paper introduces the odd concept of the derivative of a regular expression and discusses how to use it to build a really cool parser in a language like Haskell or Scala.
programming  computerscience  scala  via:LambdaTheUltimate  parsing 
december 2010 by mcherm
One Div Zero: Phantom Types In Haskell and Scala
Very clever typechecking trick. Create types that are private to your module, but which cause the typechecker to verify that certain things are done to initialize an object before it is used. I wonder if the same is possible in Java? (Probably not.)
haskell  scala  types  programming  via:JamesIry  JamesIry 
october 2010 by mcherm
A Scala success story: commercial usage of Scala at Capital IQ ClariFI
The story of someone trying scala on a real programming project. The review is better than java, but still has some warts. Also questions the conventional wisdom that rewrites are never wise - at least if you have good tests.
scala  programming  java  functional  softwaredevelopment 
september 2010 by mcherm
Ruminations of a Programmer: Using generalized type constraints - How to remove code with Scala 2.8
How scala allows you to add a method to a parameterized class (eg: collection of Foo) that can only be called (checked at compile time not run time) if the parameter (Foo) meets certain criteria. For instance, add a "sum" method on Collection that only works if the contents are Numbers.
scala  languagedesign  via:DebasishGhosh  types 
august 2010 by mcherm
Scala: Post-Functional, Post-Modern, or Just Perl++?
Debates whether Scala is a functional language. Clearly it's mixed functional and imperative. Points out that Perl is mixed that way too (I'm not sure I buy this argument).
programming  perl  scala  functional  via:RobertFischer  RobertFischer 
march 2010 by mcherm
Ruminations of a Programmer: Why I don't like ActiveRecord for Domain Model Persistence
Having domain objects automatically persisted is nice. But having to extend some class to do it (ActiveRecord) is not so great. For one thing, it ties you down to just one persistence mechanism. Debasish Ghosh has a solution that's less intrusive (basically, it uses introspection).
database  DebasishGhosh  via:DebasishGhosh  programming  scala  activerecord  persistence 
february 2010 by mcherm
Monkey-Patching, Single Responsibility Principle, and Scala Implicits | James on Software
Comparing Scala's implicit and Ruby's open classes as alternative ways of "monkeypatching". Scala's wins for enhanced locality.
programming  ruby  scala  monkeypatching  implicit 
february 2010 by mcherm
chris blogs: Programming for Android with Scala
Instructions for getting Scala applications to compile and run on Android.
scala  android 
january 2010 by mcherm
Simply Scala
A REPL for Scala written in Google AppEngine -- *except*, that you get a fresh interpreter for each submission; it doesn't persist the data in your session. (Which makes it close to useless.)
scala  appengine 
january 2010 by mcherm
A Postfunctional Language | The Scala Programming Language
Some say Scala isn't a functional language. This author says it is, but perhaps it takes "functional" for granted and does other stuff too. He uses the term "postfunctional".
languagedesign  scala  programming 
january 2010 by mcherm
Prettt-tty, pretty, pretty good!: Optional laziness doesn't quite cut it
If a function want's a parameter passed lazily, it's caller needs to obtain it lazily for that to actually work, otherwise the caller will evaluate it. In Haskell everything is lazy by default, but in Scala, you have to mark things lazy and that means you have to propogate the laziness up the call chain -- perhaps even altering interfaces. This, claims the author, is a fundamental failure.
laziness  haskell  scala  programming  via:TheLeftFold 
december 2009 by mcherm
Scala's Selfless Trait Pattern
A useful pattern in Scala: a library of functions that can be imported OR added as a mix-in trait.
scala  programming 
november 2009 by mcherm
Programming and politics: Concurrency Patterns: Java, Scala, and Clojure
One person's comparison of locking, STM, and actors as mechanisms for coordinating concurrent programming.
concurrency  java  scala  programming  parallelprogramming  concurrentprogramming  clojure  stm  computerscience  via:HackerNews 
october 2009 by mcherm
IntelliJ IDEA Open Sourced | JetBrains IntelliJ IDEA Blog
Wow!!! IntelliJ IDEA to be released as open source!! (A paid version will still exist.)
intellij  opensource  programming  java  scala  ide  eclipse 
october 2009 by mcherm
Rich Dougherty's blog: Delimited continuations in Scala
Scala introduces delimited continuations. A compiler plugin transforms the source code to continuation-passing-style.
scala  continuations  concurrency  concurrentprogramming  programming 
october 2009 by mcherm
Swarm: Distributed Computation in the Cloud on Vimeo
Video presentation describing "Swarm", a new project for a language that tries to implement cloud computing by moving the computation to where the data is. Relies on the (not yet released) version of Scala which provides continuations that can be saved and/or moved to a different machine before being resumed. They do that by rewriting the program for continuations instead of trying to save the contents of the stack. Interesting.
swarm  programming  scala  scalability  continuations  stm  parallelprogramming  concurrency 
october 2009 by mcherm
Swarm: A true distributed programming language - Blog -
An interesting idea in concurrent programming. Instead of moving the data to the computation, move the computation to the data. He built a working prototype.
concurrency  parallelprogramming  scala  swarm  via:slashdot 
october 2009 by mcherm
Meta-Programming with Scala: Conditional Compilation and Loop Unrolling « Michid’s Weblog
Somehow this seems deeply wrong. It attempts to show a practical use of building church numerals and such in Scala's type system... it builds automatic loop unrollers and conditional code that execute at compile-time. But I really feel that if we really wanted that sort of compile-time transformation (I'm not sure we do) that a different mechanism (other than the type system) would be better.
scala  computerscience  programming  types 
october 2009 by mcherm
Scala vs Clojure – Round 2: Concurrency!
A review of the concurrency in Scala and Clojure by someone who is strongly biased in favor of Clojure.
stm  softwaretransactionalmemory  scala  clojure  programming  via:HackerNews 
september 2009 by mcherm
A Scala Puzzler « Apocalisp
Scala types are powerful enough to perform basic computations just within the type system.
via:reddit  personal_net  scala  types 
august 2009 by mcherm
How packages work in Scala « David R. MacIver
How import (well, packages anyhow) work in Scala and why it commonly causes a certain sort of bug.
programming  scala  languagedesign  languages 
july 2009 by mcherm
Pimp My Lock: A case study in Scala API design: Uncountably Many
Interesting exercise in API design, and how Scala could do a really good job of presenting a usable interface for something awkward to use (in this case, Java locks).
scala  programming  api 
july 2009 by mcherm
One Div Zero: Java Has Type Inference and Refinement Types (But With Strange Restrictions)
An interesting observation: Java has type inference and other fancy type data which it will propagate, but ONLY within a single expression. As soon as you assign to a variable or pass to a method (thus exiting a single expression) you have to be explicit.
programminglanguages  scala  java  languages  via:reddit 
july 2009 by mcherm
Starting with Lift
An introduction to Scala's "Lift" framework for web application development.
scala  lift  webdevelopment  programming 
june 2009 by mcherm
Scala IDE support | Jayway Team Blog - Sharing Experience
A review of the state of Scala support in various IDEs as of 2009-03-12.
scala 
may 2009 by mcherm
Scala on Google App Engine | The Scala Programming Language
Google's "App Engine" (their cloud computing platform) will run Scala.
appengine  google  scala  programming  cloudcomputing 
may 2009 by mcherm
Mending The Bitter Absence of Reasoned Technical Discussion — Alex Payne
How to AVOID getting into "religious wars" while discussing technical subjects, like comparing Ruby and Scala.
scala  programming  ruby 
april 2009 by mcherm
Twitter jilts Ruby for Scala • The Register
Apparently Twitter decided that for back-end and middleware stuff, ruby just didn't scale -- largely because of limitations in its VM. So they rewrote it all in Scala and now are big fans. The front end was left in Rails.
scala  twitter  programming  languages  scalability  ruby  virtualmachine 
april 2009 by mcherm
Good Math, Bad Math : Gap Buffers, or, Don't Get Tied Up With Ropes?
An example of how it's better to use a good SIMPLE solution than a fancy one. Also, MarkCC likes Scala.
datastructures  via:GoodMathBadMath  markcc  programming  computerscience  scala 
march 2009 by mcherm
Nabble - [scala] URGENT: Please read if you have any information about Tony Morris
An interesting example: a newsgroup and IRC forum react to an apparent suicide threat.
via:reddit  socialcomputing  scala 
march 2009 by mcherm
« earlier      
per page:    204080120160

Copy this bookmark:





to read