Better HN
topnewbestaskshowjobs
Log inSign up

grumpyprole

4,485 karma · joined Jun 30, 2015 (11y ago) · 2,043 submissions

Submissions

comment 7y ago · link · parent

Bazel has not "been stable for years", perhaps you are thinking of "Blaze"? Bazel is full of brand new code and recent bugs (such as not releasing file handles) suggest it is not yet fully ready for mass adoption.

comment 7y ago · link · parent

Google the "Out of the Tar Pit" paper by Moseley and Marks. After incidental complexity, Accidental complexity is the all remaining stuff. It's the complexity you wouldn't have to deal with in an ideal perfect world. For example: manual memory management, performance optimisations, JavaScript equality semantics, aspect-oriented programming, dependency injection frameworks or any other ad-hoc technology to work around issues further down in the stack.

comment 7y ago · link · parent

It's one of my all-time favourites too. The Criterion Collection edition I believe contains the final directors cut. The ending is superb, it beggars belief that Hollywood tried to butcher it.

comment 7y ago · link · parent

Yes I like Dhall, I also had a go at my own one a while ago: https://github.com/willtim/Expresso

comment 7y ago · link · parent

In my opinion, a statically typed config file would be preferable.

comment 7y ago · link · parent

Congratulations and a huge thank you to all those involved! Emacs is a truly remarkable piece of software. I started using it for text editing over 20 years ago, now I use it pretty much as an operating system!

comment 7y ago · link · parent

IMHO the windows phone live tiles made the static iPhone icons look very dated (they are essentially unchanged from 1980's NeXTStep). Even now I believe the iPhone clock and calendar icons require privileged hacks to show the correct date and time.

comment 7y ago · link · parent

It's certainly not as readable as the Haskell version, despite the claim to the contrary in the comments. But it's nice to see them supporting this style of programming.

comment 7y ago · link · parent

A hammer isn't strictly better than a rock, it costs a lot more money/resources to obtain :)

comment 7y ago · link · parent

> Hmmmm, I wonder how a subscription can cause side effects?

A subscription is a side effect.

comment 7y ago · link · parent

IIRC they are essentially Monads, but someone decided that was too scary a name. The result is confusion for experienced programmers, ironically the ones more likely to use F# (!)

comment 7y ago · link · parent

The monad does enable imperative programming in Haskell, yes. But it is not needless complexity. It enables an imperative program to be assembled using a pure functional program. Imperative statements become first class values, control flow constructs can be just user-defined functions, no macros needed. Monads, of course, also allow us to change the meaning of a semi-colon. This can be used, for example, to implement lightweight fiber threads with custom schedulers, again all without macros.

It has been said that Haskell is the world's best imperative programming language: https://stackoverflow.com/questions/6622524/why-is-haskell-s...

comment 7y ago · link · parent

> And since FP is a style, it can be followed quite effectively in almost any language.

It's not black and white. FP is more like a spectrum, with pure functional programming more towards the opposite end, just before total functional programming. Put another way, adding lambdas to Java does not make it like Haskell. Even Scala cannot effectively be used as Haskell substitute, as some in that community eventually realised.

It remains to be see how much of FPs benefits (composition, abstraction, reasoning) can be fully realised in languages with rampant side-effects and mutation.

comment 7y ago · link · parent

Well if it was a MacBook, everything would be glued-in or soldered, but yes the trend is worrying. I guess the popularity of MacBooks, despite their form-over-function, is what is driving this. But surely they could have kept the T490 like the T480, especially as the T490s exists.

comment 7y ago · link · parent

You never defined what you meant by a "good concurrent GC", only now are you asking for "performance" numbers.

My point is that writing a GC for Java has in fact proved very difficult. It took Sun and Oracle many man years and different GC designs to get where they are today. So it seems Java also needs a "good" concurrent GC. With both functional and OOP languages generating a lot of garbage and sharing language features, I don't see a big difference in requirements in practice. And sure enough, Clojure/Scala seems to work well using the JVM GC and F# seems to work well with the .NET GC too.

I think the burden of proof rests with you and your statement that the concurrent GC situation is somehow more challenging for an FP language.

> I only accept CS papers about it

Me too

comment 7y ago · link · parent

There are a few papers about Haskell's GC by Simon Marlow where this is discussed. The absence of mutable references is a big win for writing a concurrent collector.

comment 7y ago · link · parent

I'm not a web developer, but I don't think the OOP features of JavaScript are really used much. I once saw some jQuery code and it looked pretty functional to me.

comment 7y ago · link · parent

It's actually harder to write a GC for a language like Java with both rampant mutation and plenty of garbage!

comment 7y ago · link · parent

Why is the IO monad a leaky abstraction? Any function that returns an IO computation in Haskell, is still a pure function.

comment 7y ago · link · parent

GUI frameworks have always been OOP-based because everybody was copying Xerox Parc. But even the most successful were not always easy to use (composition and control-flow/concurrency being particularly awkward). Modern GUIs are all based on HTML/CSS these days anyway and certainly not always OOP, as demonstrated by frameworks such as react.

comment 7y ago · link · parent

The Pixel slate didn't fair so well in all the reviews though.

comment 7y ago · link · parent

This depends on what you mean by "technology". I would expect them to be aware of emerging trends in the industry. Bonus points also for an interest in the latest computer science. But I don't care if they haven't hacked on groovy gradle scripts or injected Spring AOP pointcuts into Java beans. This sort of tech is accidental ad-hoc complexity and not progress.

comment 7y ago · link · parent

Fedora chooses what Red Hat develops. And Red Hat are building their own OS, with a lot less of the modularity and customisation that has historically been possible in Linux.

comment 7y ago · link · parent

Spring and "aspect-orientated programming" are completely ad-hoc! They use reflection and byte-code generation to implement various forms of runtime magic. This makes reasoning about ones code much much harder. IMHO there are much better ways to solve the dependency and cross-cutting concerns problems, unfortunately Java is not expressive enough to encode them. To be clear, I'm not saying Spring isn't useful, I'm saying the fact that Java needs Spring is unsatisfactory.

I wouldn't say my situation is great, most jobs are Java jobs :)

comment 7y ago · link · parent

They are an example of managing content without overlapping windows. i3, Sway and Xmonad all have good support for them.

comment 7y ago · link · parent

The litigation from Apple came after Microsoft copied the Mac with overlapping windows (as shown elsewhere in Wikipedia), so this article does not appear correct. Windows 1.0 had tiling windows because IIRC, its lead developer, a former Xerox Parc employee, insisted on a tiling window metaphor. Many other multitasking systems of the period were also based on tiling windows. Overlapping windows certainly became the fashion, thanks to Apple, but you haven't proved they failed because users didn't like them.

comment 7y ago · link · parent

> They failed because normal people didn't like them.

Do you have proof of this? I suspect they failed because everyone decided to copy the Mac which was trying to emulate a real desktop with bits of paper on it.

> Super limited "tiling" window managers do make sense with such limited UIs.

They also often make sense for complicated UIs, e.g. IDEs such as Visual Studio and browsers such as Firefox, which have docked sidebars and tabs in preference to overlapping windows.

comment 7y ago · link · parent

i3/Sway has workspaces and tabs which would still support this workflow and allow it to scale to more apps. It is particularly good with multiple monitors. You don't have to tile the windows!

comment 7y ago · link · parent

Congratulations on the release! I currently use i3 but am looking forward to trying this. Backwards compatibility was a great idea!

comment 7y ago · link · parent

I could equally state that overlapping windows are not a good default for everyone or every device type. It's also worth pointing out that Apples newest UI, iOS, uses a tiling window manager.
1
373839
69