Better HN
topnewbestaskshowjobs
Log inSign up

sideeffffect

318 karma · joined Jan 5, 2019 (7y ago) · 168 submissions

Submissions

comment 6y ago · link · parent

> C# is holding it back though

not as much C# the language, as CLR, the runtime. Because of reified generics, which is the way things are done in the .NET world, and which the runtime needs to support, it would also require explicit support in the runtime for Higher-kinded types or Type classes. And that won't happen without C# having these features (and having them first).

F# is really really great, but it is like an unwanted child of Microsoft :(

https://github.com/fsharp/fslang-suggestions/issues/175

comment 6y ago · link · parent

> not sure there are any real blockers for Scala on Android anymore. I imagine it's mostly a resource problem now

not really, it's still the problem Android being Java < 8, and Scala on Java 8 features.

https://github.com/scala-android/sbt-android/issues/334#issu...

comment 7y ago · link · parent

Ian Hickson's insightful short essay about DRM was on Google+. But now it's gone...

Not entirely, actually, thanks to the Internet Archive!!!

https://web.archive.org/web/20190119000840/https://plus.goog...

comment 7y ago · link · parent

I suspect that the big part of that 120MB is bootstrap-guile (Guile is a Scheme implementation)

if you want to go really minimalistic, see stage0, it's like 500 Bytes

https://github.com/oriansj/stage0

details are in the article

comment 7y ago · link · parent

If you (or anybody else) haven't given up on Scala just yet, have a look at ZIO

https://github.com/zio/zio/

It's a fresh, and pragmatic too, take on how to do pure functional programming, but without advanced concepts (like higher-kinded types).

could be (and maybe even has been) ported over to other languages besides Scala

comment 7y ago · link · parent

I think the author was trying to point out that Scala has type system features, like Higher-kinded types, which (although very useful in practice IMHO) are non-existent in other mainstream languages, including TypeScript.

I think that's a legitimate and, most importantly, factually correct point to make.

If you're interested in what these "Higher-kinded types" are: https://typelevel.org/blog/2016/08/21/hkts-moving-forward.ht...

comment 7y ago · link · parent

> statement that the CLR ties you to C# is not justified

it is. F# developers are stuck with the language progress and can't (or don't want to) add big and important features like Type Classes or Higher-kinded Types, until C# adds them first

https://github.com/fsharp/fslang-suggestions/issues/243

comment 7y ago · link · parent

there's https://yabits.github.io/ , a coreboot payload implementing UEFI

or you can use https://www.linuxboot.org/ as a coreboot payload

comment 7y ago · link · parent

Ron presented this at Curry On 2018

Ron Pressler - Finite of Sense and Infinite of Thought: A History of Computation, Logic and Algebra

https://www.youtube.com/watch?v=2oNmR0q1uA0

comment 7y ago · link · parent

if it's based on seL4, which is licensed undel GPLv2, that we should be able to get our hands on the source code! yay!

comment 7y ago · link · parent

there's been some effort

https://github.com/NixOS/nix/issues/859

comment 7y ago · link · parent

also, Fury, the new Scala build tool by Jon Pretty, uses IPFS to distribute builds/build definitions

https://fury.build/

https://github.com/propensive/fury

https://youtu.be/Xti2I2Csww8?t=1620

it seems like people working on package management/distribution related things LOVE the idea of IPFS

comment 7y ago · link · parent

https://github.com/ipfs/go-ipfs-chunker

> go-ipfs-chunker provides the Splitter interface. IPFS splitters read data from a reader an create "chunks". These chunks are used to build the ipfs DAGs (Merkle Tree) and are the base unit to obtain the sums that ipfs uses to address content.

> The package provides a SizeSplitter which creates chunks of equal size and it is used by default in most cases, and a rabin fingerprint chunker. This chunker will attempt to split data in a way that the resulting blocks are the same when the data has repetitive patterns, thus optimizing the resulting DAGs.

I think they should use the rolling hash based chunking by default

https://github.com/ipfs/go-ipfs-chunker/issues/13

comment 7y ago · link · parent

It's a bit sad, that Dhall (programmable configuration language for YAML & co.) used to use IPFS for its source/packages, but stopped, because of reliability :( (I'm wondering if there are/were others?)

> Early on in the language history we used IPFS to distribute the Dhall Prelude, but due to reliability issues we’ve switched to using GitHub for hosting Dhall code.

http://www.haskellforall.com/2019/01/dhall-year-in-review-20...

https://github.com/dhall-lang/dhall-lang/issues/162

I wish IPFS the best, because at least in theory this seems like a perfect use case

comment 7y ago · link · parent

I personally hope that I will eventually find the time to read Practical Foundations for Programming Languages by Robert Harper

https://www.cs.cmu.edu/~rwh/pfpl/index.html

direct link to a preview of the 2nd edition:

https://www.cs.cmu.edu/~rwh/pfpl/2nded.pdf

direct link to an unabridged version of the 1st edition:

http://profs.sci.univr.it/~merro/files/harper.pdf

comment 7y ago · link · parent

The new module system for Haskell (GHC, to be precise)

https://ghc.haskell.org/trac/ghc/wiki/Backpack

https://plv.mpi-sws.org/backpack/backpack-poster.pdf

comment 7y ago · link · parent

tiny clarification: Function composition is just function composition. Pipes are a different syntax for function application.

see https://news.ycombinator.com/item?id=18971451

comment 7y ago · link · parent

maybe I'm being overly pedantic, but people seem to be confused about this:

the pipes in your typical functional language (`|>`) is not a form of function composition, like

```

f >> g === x -> g(f(x))

```

but function application, like

```

f x |> g === g(f(x))

x |> f |> g // also works, has the same meaning

f |> g // just doesn't work, sorry :(

```

123456