News for hackers. Stuff that matters.

gmartres

Re:The Sovereign Tech Fund Invests in Scala on Thursday January 29, 2026 @02:22PM (#46815179)
Chisel picked up Scala 3 support in 7.0.0 released last September (https://github.com/chipsalliance/chisel/releases/tag/v7.0.0), right now they cross-compile between Scala 2 and 3 but from what I heard they should eventually move to Scala 3 only to start taking advantage of new features like named tuples (https://docs.scala-lang.org/scala3/reference/other-new-featu...).
Thanks for open-sourcing this! Roughly, what's the performance overhead from running code under hermit? I'm wondering if this could be used for doing benchmarking with less variance on non-deterministic platforms such as the JVM (I assume hermit is "deterministic enough" that the JIT and GC threads of the JVM will run the same code on every execution?)
Re:Practical Deep Learning for Coders 2019 on Friday January 25, 2019 @07:00PM (#19003769)
What are the main differences with last year's course ? Also can we expect http://course18.fast.ai/part2.html to be updated in the near future ?
Re:Udash – Scala and Scala.js Reactive Web Framework on Sunday February 11, 2018 @03:51PM (#16354728)
> Is there a runtime lib? That includes e.g. Scala collections for the browser for example?

Pretty much all Scala code compiles with Scala.js, that includes the Scala standard library, as well as part of the Java standard library that has been reimplemented in Scala.

> How many kilobytes?

Scala.js does whole program optimization and dead code elimination, so there's not a single number that can be given here, you pay for what you use.

Meltdown also affects some ARM chips according to ARM itself: https://developer.arm.com/support/security-update
According to ARM yes, but only on a few architectures: https://developer.arm.com/support/security-update (Meltdown is CVE-2017-5754 and is responsible for Variant 3 and Variant 3a). See also https://github.com/marcan/speculation-bugs/blob/master/READM... which tries to summarize every known attack/platform/mitigation.
Re:What's wrong with the default build tool for Scala on Monday November 20, 2017 @12:05PM (#15741357)
> creator of Scala, and possibly also involved in SBT

Martin has never worked on sbt. sbt started as a community project and is now maintained by Lightbend, which Martin co-founded.

I'll be impressed the day this is turned on by default, or at least proposed as an option to the user after installation :).
Re:Visual Studio Live Share on Wednesday November 15, 2017 @05:42PM (#15708638)
How open is this going to be? Will it be based on a protocol implementable by other editors, akin to the Language Server Protocol (https://github.com/Microsoft/language-server-protocol) ?
Re:Reasonable Scala Compiler on Friday August 18, 2017 @11:17AM (#15046934)
you might want to give sbt 1.0 a try, it features better incremental compilation support: https://developer.lightbend.com/blog/2017-04-18-sbt-1-0-road...
Re:Reasonable Scala Compiler on Friday August 18, 2017 @11:13AM (#15046888)
The latest spec for 2.12 is available at http://www.scala-lang.org/files/archive/spec/2.12/
Re:From Monads to Machine Code on Sunday April 23, 2017 @09:42PM (#14181423)
The whole point of monads (and most other typeclasses) is that they're an abstraction. If you use a type constructor then you cannot generalize your function to work with any kind of monad, see for example the definition of `mapM` in https://hackage.haskell.org/package/base-4.9.1.0/docs/src/GH... which uses `return`
Radia Perlman also wrote a great (and fun!) book on networking: https://www.amazon.com/Interconnections-Bridges-Switches-Int...
Re:Scala 2.12.0 is now available on Thursday November 03, 2016 @11:16AM (#12864645)
The maintainers might not see your comment, I encourage you to make a PR: https://github.com/scala/scala-lang
Re:From first principles: Why I bet on Scala.js on Thursday August 11, 2016 @08:35AM (#12267685)
Scala does not have non-nullable types currently (but that might happen in the future), in practice this is not a problem simply because using null is seen as a code smell and basically no Scala library API expects parameters to be null or return null, optional values are usually represented with the standard library class Option: http://www.scala-lang.org/api/2.11.8/#scala.Option
Re:More code review tools on Tuesday March 15, 2016 @10:49PM (#11294637)
Part of a good review should be to review how you decided to split your PR into separate commits (does every commit have a single purpose, or did you sneak unrelated changes in a commit? Could the commit message be improved?). Furthermore, sometimes you have to rebase your PR on top of master (for example, because things changed in master too much, or because your PR depends on a patch that was recently accepted in master to actually work), this shouldn't make review comments disappear.
Re:More code review tools on Tuesday March 15, 2016 @07:11PM (#11293762)
> Its something we're still working on, but it still helps to vocalize your support for wanting improved force push support. :D

YES! I wish for that feature everyday. Gerrit does it exactly right.

Related to this, I really, really hope that you will consider displaying commits in a PR in the correct order, suppose that I have three commits on top of master:

  a->b->c->master
If I git rebase -i master and reorder my commits so that they look like this:

  c->a->b->master
Then the commit list in the PR will still be displayed in chronological order instead of DAG order, this is very confusing! The only workaround I've found is to amend every commit in my PR so that the timestamp order match the DAG order, this isn't very fun to do.

By the way, the post explicitly says:

> Some teams choose to use a commit-by-commit workflow where each commit is treated as the unit of change and is isolated for review.

I'm glad that you're acknowledging that. But then why do comments on commits still get hidden when they correspond to an outdated diff? I would love to be able to comment on individual commits, but if half my comments are hidden because they correspond to lines that don't match the current diff, then I'm not going to do it for fear of my comments being missed. You should not hide important information that I'm trying to communicate! Here's a better way to do it: Add a "Done" button like Rietveld/Gerrit for every comment (this is a very useful feature on its own) and hide comments _if and only if_ the "Done" button has been clicked.

Anyway, I'm glad that people are working on this stuff and that they're listening to the community, thank you!

Re:Scala Center on Monday March 14, 2016 @09:13AM (#11282654)
Some other languages have a central repository where everyone publishes their packages like https://hackage.haskell.org/, https://crates.io/ or the venerable http://www.cpan.org/. Scala has no such things: people publish to various repositories like http://bintray.com/ or https://oss.sonatype.org/, so a central place to get information about existing libraries would be very useful.
Re:Scala on LLVM on Friday March 04, 2016 @03:21PM (#11226626)
If you're interested in Dotty, other talks with more information are listed at https://github.com/lampepfl/dotty/wiki/Getting-Started#talks...
Re:Squeak 5 is out on Wednesday August 12, 2015 @12:28PM (#10048748)
What's the relationship between Squeak and Pharo? Do they have the same goals?
Re:Becoming Productive in Haskell on Friday April 24, 2015 @04:30PM (#9435838)
> What I wish would happen is GHCi allowed me to load just the things that type check

Use `-fdefer-type-errors` (should work with both GHC and GHCi), all errors become warnings, and if you try to use a function which was compiled with an error, you get a runtime error.

Re:VP9: Faster, better, buffer-free YouTube videos on Monday April 06, 2015 @05:07PM (#9330704)
I think the best explanation available is still http://forum.doom9.org/showthread.php?t=168947
Re:Exploring ML-Style Modular Programming in Scala on Saturday April 04, 2015 @06:23PM (#9322432)
Nice post! I think your encoding of functors could be replaced by:

  object Module {
    private class MyUnbalancedSet[A](O: Ordered[A]) extends MySet[A] {
      ... body as in your post
    }
    def UnbalancedSet[A](O: Ordered[A]): MySet[A] = new MyUnbalancedSet[A](0)
  }
Which looks more like "normal" Scala but still offers the same amount of abstraction.
Re:Hands on with Ubuntu 14.04 on Sunday April 20, 2014 @05:22PM (#7618528)
For LTS releases, Ubuntu provides optional updates of the kernel and the graphics stack: https://wiki.ubuntu.com/Kernel/LTSEnablementStack
Re:The world’s fastest VP9 decoder: ffvp9 on Sunday February 23, 2014 @08:09AM (#7285795)
> How do you know that you recieve VP9 and not VP8, is there some download script for this?

Right-click on a video, click on "Stats for nerds", see if there's VP9 on the "Mime type" line.

> As long as there aren't any compability issues I can't see why not, that said when playing some of my vp9 test encodings in VLC (which I believe uses ffvp9) I sometimes get decoding errors causing huge macro-blocks etc, when playing through Chrome or if I decode the vp9 stream to another format they play perfectly.

Assuming these issues still happen with a nightly build of VLC (http://nightlies.videolan.org), you should report the bug to FFmpeg: https://trac.ffmpeg.org/

Re:Skype does a clever trick when bandwidth is scarce on Tuesday October 29, 2013 @10:09PM (#6638989)
Though this isn't implemented by the reference encoder yet, the VP9 bitstream supports this (encoding a downscaled frame and signaling to the decoder to upscale it before displaying it).

Older »