Better HN
topnewbestaskshowjobs
Log inSign up

grumpyprole

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

Submissions

comment 5y ago · link · parent

You are absolutely correct. Windows also has particularly buggy displayport MST support and MacOS doesn't support it at all.

comment 5y ago · link · parent

I'm happy to entertain the idea that Go is a sweet spot for many, but please let's not pretend language features are universally bad. After all, Go benefits enormously from a garbage collector and its language-level support for Hoare's CSP. Two very important features that e.g C and C++ do not have (they do however have structs, for loops and if statements).

IMHO Go certainly chose wisely when it left out many OOP features of questionable value. And perhaps in doing so, it avoided the whole OOP culture, which has produced a lot of over-complicated software and tools. The culture of simplicity in Go is a really good thing and worth defending. However, we should be open to the idea that one or more additional language features might help to further this goal.

comment 5y ago · link · parent

But Go has no sum types either!

comment 5y ago · link · parent

It can be extra work to reason about the performance and efficiency of functional programs, such is the case with higher level languages. But modelling the domain is far easier. I can solve difficult problems using Haskell, e.g. writing a specialist DSL compiler targeting a GPU. I'm just not smart or patient enough to solve such problems in C/C++ or Java, although I do concede that many can.

comment 5y ago · link · parent

My theory is that GNOME (basically RedHat) were concerned about software patents. I cannot think of any other reason why they would make it so different to the mainstream and thus less intuitive for most. IMHO it is not an improvement. Luckily Ubuntu have made it slightly more normal.

comment 5y ago · link · parent

Perhaps you have some rogue process that is causing windows server to run at 4%?

comment 5y ago · link · parent

The first time I tried Scala, I got a type error based on the result of an implicit conversion, which succeeded locally but not for the entire expression. It took me a while to figure out what had happened. Advanced (mis) features such as this combined with encoding everything into objects with subtyping make Scala very complex. F# and OCaml are examples of much simpler languages that have most of the advantages (albeit no JVM).

comment 5y ago · link · parent

Are you testing on Windows though? I am specifically talking about Windows being the (biggest) problem with this architecture. It is very expensive to create new processes on Windows versus Unix (threads are cheaper on Windows though).

comment 5y ago · link · parent

Yes it will depend on repository size.

comment 5y ago · link · parent

I'm pretty sure it's the main reason. Look how many times Magit shells out to git to render the status buffer, too many to count: https://github.com/magit/magit/issues/1327

In a perfect world, Emacs would link to libgit2 and Magit would be adapted and folded into the core distribution.

comment 5y ago · link · parent

Magit is unfortunately so slow on Windows that it's unusable. This is a real shame, because the UI is fantastic. I think a better architecture would use libgit2 calls rather than launching multiple git processes for every single magit operation.

comment 5y ago · link · parent

There's a solo album by Eddie Jobson (circa 1985) "Theme of Secrets", which is an excellent showcase for the Synclavier (IIRC the entire album is done with it).

comment 5y ago · link · parent

> Most businesses are not "technology first" businesses

This is changing. For example, Banks are slowly realising that they are delivering all their services via technology. A serious outage of banking infrastructure can ruin lives, see for example the TSB debacle in the UK which even forced the then CEO out.

comment 5y ago · link · parent

I've been tempted by iPhone in the past for precisely this reason. But there's so many things it can't do on the software side. For example, with regard to music, FLAC support is poor and there's missing Bluetooth codecs like LDAC. Call screening, anti-spam and file sync are also not good enough for my needs.

comment 5y ago · link · parent

Functional programming is not just programming with closures. It's about "referential transparency". Referential transparency permits higher-level mathematical reasoning, which leads to safer/better program composition, optimisations, caching/reuse and parallelisation/concurrency. If you are willing to concede mutable-state and other uncontrolled effects, there is much to be gained.

comment 5y ago · link · parent

I mean it has a deliberately highly-provocative style. But the points he raises are all completely valid.

comment 5y ago · link · parent

The creator of LINQ, Erik Meijer, wrote a fun article "The curse of the excluded middle: Mostly functional programming does not work". Yes it's tongue-in-cheek and highly provocative, but many of his points are true. There is a lot more yet to be learned from functional programming than LINQ and switch expressions.

https://queue.acm.org/detail.cfm?ref=rss&id=2611829

comment 5y ago · link · parent

> I would never expect, at first, numbers[0] to print 999 after these statements, etc.

You are not alone! I've always disagreed with the idea that imperative programming is "more intuitive", more familiar to many perhaps. In a functional programming language, modifications to lists/collections result in new copies (with maximal sharing) and do not mutate the original. Such "persistent" collections have to be designed and implemented to make these operations cheap. Copying an array is typically not cheap and so Python just creates a new reference (pointer) for my_numbers.

comment 5y ago · link · parent

I am not advocating Java the language and it's shortcomings are really the topic of another thread. I am also not seeking to understand algebraic effects starting from Java, I've read the original Eff paper and would encourage others to do so. I raised them only as an example of a form of type checked effect that is already in widespread use.

comment 5y ago · link · parent

Java has always had checked exceptions, a weak form of type-checked effect. They were controversial because developers didn't like being forced to handle them, but I always thought they were a great idea. Algebraic effect handlers just generalise the idea of an exception, by providing a continuation that can be called to resume execution.

comment 5y ago · link · parent

Isn't your problem above essentially with Spring rather than the new JDK? Presumably Spring is using internal APIs that have changed in JDK11. And yes, the reflection and dynamic behaviour in Spring are not type safe (i.e. runtime failures). Spring XML is a manifestation of "Greenspun's tenth rule" - it gives people the flexibility of Lisp/Python by unsurprisingly removing static type safety - not a trade-off that many will agree with. You should tell management that your job had been made harder by the choices made by the original architects of the system (who I assume are long gone),

comment 5y ago · link · parent

Even Odersky regrets the abundance of curly braces, now that Python is eating the world.

comment 5y ago · link · parent

Exciting stuff! Keep up the good work!

comment 5y ago · link · parent

If they can also ship algebraic effects (and even better, typed algebraic effects), then I think it will push the language back firmly into "state of the art". This will mean it continues to get the attention it deserves. I'm excited about algebraic effects, I think they are much more intuitive than monads (and don't require code to be rewritten).

comment 5y ago · link · parent

We don't have enough laws to protect consumers and the environment. Such laws actually help businesses that do want to do the right thing remain competitive. So how about a law that guarantees security updates for at least 5 years, so these phones don't become e-waste before their time? Or a law for user serviceable battery replacement?

comment 5y ago · link · parent

And Fortran code (many parts of numpy). C doesn't have a complete monopoly on high-performance code.

comment 5y ago · link · parent

A brilliantly written article. Couldn't have said it better myself.

comment 5y ago · link · parent

My point was that when people turn on their TV and they don't see people like them in the media and in the arts, it must not exactly inspire.

comment 5y ago · link · parent

In the UK, opportunities for the working class are certainly much harder to come by. Entrance to many professions is closed-off by not going to the right private school, not having the money to pay for tuition to get into a grammar school or not having enough money or connections to work for free as an intern. Our government, businesses and the media are mostly run by privately educated individuals. We don't have "the American dream". It's not unsurprising to see why some parents might see state education as just day care.

comment 5y ago · link · parent

> I'm not sure battery replacement falls under the category of repair, more like required maintenance.

Which would suggest that Apple's glued-in batteries are a bad idea? Whatever one chooses to call the process of changing a battery, this is unnecessarily difficult with Apple hardware.

1
222324
69