Better HN
topnewbestaskshowjobs
Log inSign up

grumpyprole

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

Submissions

comment 3y ago · link · parent

I think your 90% number is significantly over-estimating. Most creative people are actually quite creative and not just recycling.

comment 3y ago · link · parent

You will have to proof read anything it writes and you should also fact check it, otherwise you are taking a risk. However, this is very difficult to do if GPT4 is unable to provide references or citations, or any provenance at all.

The human with the art history background at least has some credentials, whereby the output can be trusted, to some degree and explained if necessary.

comment 3y ago · link · parent

If there is a job that requires generating bullsh*t, then definitely it is at risk. Otherwise, no.

comment 3y ago · link · parent

If you buy a laptop with good Linux support, e.g. a ThinkPad. It should be fine for well over a decade in my experience. That is better value than Apple offer.

comment 3y ago · link · parent

Ubuntu offer an LTS distro though. In theory this should be more stable than Fedora. Perhaps it matters less for the desktop.

comment 3y ago · link · parent

> Programming languages have settled on '=' for assignment and '==' for equality comparison.

Certainly not all. "=" is a poor choice for assignment as it has a totally different meaning in maths. Algol and Pascal got this right with ":=". Fortran got it wrong here.

> plus '=' is used for assignment in math just as often too

No it's a relational operator in math, so "x = x + 1" does not have the same meaning as assignment to a mutable variable.

comment 3y ago · link · parent

Why does it have to be either extreme? It certainly looks much easier than Agda or Coq. As someone without a CS degree, I applaud them for not racing to the bottom and creating an ad-hoc dynamically-typed soup, which still needs an instruction manual, if only to figure out how the equality operator works.

comment 3y ago · link · parent

> Do you have any good resources on OCaml5 effect handlers I can follow?

I encourage you to have a look at the published paper, it's an easy read and covers the motivation and examples:

https://arxiv.org/abs/2104.00250

Here's an excellent talk that walks through modifying a non-trivial code base for concurrency using effect handlers:

https://youtu.be/k3oQwpyXmpo

> It does feel to me like error's and async's both should remain orthogonal

They aren't completely orthogonal though, as both are effects. Haskell and Rust model both with Monads. OCaml 5 can model both with effect handlers. It is desirable to track the difference in types, this is something I hope the OCaml folks will add in the future.

comment 3y ago · link · parent

> Long story short, this library solves the function colouring problem

For a great example of this, see OCaml 5 support for effect handlers. It's basically a generalisation of exceptions, very lightweight and elegant. I can't help but think this approach would have been a much better fit for Rust than the current async effort. Monads like Async and Result are a slippery slope into the world of FP, something Rust will never excel at. Effect handlers are an alternative which arguably better align with systems programming.

comment 3y ago · link · parent

> It's usually used for logging and exceptions.

That's why I was querying it's suitability for profiling. The time to get a lock for a global "safepoint" and then release it must be significant no?

comment 3y ago · link · parent

This of course relies on Java's reflection ability, in this case, an API to retrieve stack traces for all threads dynamically. An interesting question is how this is implemented and how regular invocation might affect the runtime (e.g. global locks).

comment 3y ago · link · parent

> Although I guess that in today's world, I could just say "use AI to figure it out."

Amazon do this and it doesn't work at all well for classical music. The album reviews are full of reviews for the same piece of music but different performances, it's not always easy to tell either. I stopped buying CDs from Amazon years ago, although primarily because they'd always arrive with cracked jewel cases.

comment 3y ago · link · parent

Not opposition, I was just trying to adding some historical context to your comment. I agree the JVM is poorly suited for modern Java and Oracle know this too, hence they are developing GraalVM.

comment 3y ago · link · parent

I tried it yes, it did not go well. First it gave me a snippet that looked correct but was not what I was asking for (I guess similar to a search engine). When I tried to point out why the proposed solution did not solve the problem, it could not modify it correctly. It kept oscillating between two incorrect solutions.

comment 3y ago · link · parent

I don't understand why anyone is seriously expecting "GPT" to write code? Writing code is really analogous to proving theorems (the Curry-Howard correspondence). IIUC that is not what the GPT "language model" was ever designed for.

comment 3y ago · link · parent

I think the emotional response is probably due to the fact that Protocol buffers is often forced upon teams, due to the desire for a common standard and the marketing power that Google have. But the author raises many valid issues and you would be wrong to dismiss them completely. The first version of Protocol buffers, IIRC, didn't even support static offsets and extracting a field without deserialising the entire message. So it was arguably both inelegant and inefficient. I was never impressed myself personally and have seen quite a few better closed-source wire formats inside various corporates.

comment 3y ago · link · parent

The Java JVM was originally designed with a very dynamic language in mind, e.g. Java's support for dynamic loading, dynamic binding, reflection etc. The influences at the time were Smalltalk and ObjectiveC. As Java has evolved to be a much more statically typed language (especially Java 5), the JVM has somewhat struggled to exploit this while maintaining backwards compatibility. It's nowhere near as bad as the Python situation though. I believe the CLR was built with things like parametric specialisation in mind from the beginning.

comment 3y ago · link · parent

> There is no such thing as computers without programming.

"Programming" in industry has a very narrow definition though.

comment 3y ago · link · parent

Even new super premium wireless cans like the Focal Bathys don't have LDAC. Despite Samsung being the most popular Android vendor and famously having LDAC but not licensing AptX. One would need to use SBC with the Bathys on a Samsung. Although it was quite established, LDAC seems to be used less and less, I wonder why, license fees?

comment 3y ago · link · parent

When I first played with VB in the early nineties, it was also about the time Microsoft Foundation Classes was released. I compared the two approaches for building UIs and it pretty much soured my opinion of C++ for life.

comment 3y ago · link · parent

> And your definition of metal is amusing

I did not attempt to define Metal. I only tried to point out that it is often heavily compressed, as is pop music, see for example:

https://www.theguardian.com/music/2008/sep/17/metallica.guit...

I certainly find the idea of playing this stuff on a 10K Hifi amusing, which was perhaps your original point?

EDIT:

You can check your favourite albums, by using this resource: https://dr.loudness-war.info/album/list/1/dr/asc?artist=Epic...

Compare with e.g. some classical music recordings: https://dr.loudness-war.info/?artist=Berliner%20Philharmonik...

comment 3y ago · link · parent

> Is matching the original recorded sound really the purpose of a good hifi system ?

Yes, at least it used to. Hifi means High Fidelity, which means a high degree of exactness in reproducing the music, as the artists and recording engineers intended.

> Hifi speakers are supposed to add their own character to the recorded sound, no?

I would argue they should not. But consumer "Hifi" certainly does often colour the sound. This is why many audiophiles had to seek out "studio" monitors and earphones. However, even this term has lost its meaning. You will not find "Beats Studio" earphones in any studio.

> When talking about acoustic instruments, doesn't each one sound different?

Maybe slightly yes, but only in certain ways. A bad audio system might make them sound unnatural. Pianos and violins certainly have much less variation than electric guitars.

comment 3y ago · link · parent

The thing is, some original Vinyl recordings really do sound better than recent heavily compressed "remasters" on CD. Perhaps this person just doesn't know how to explain why the Vinyl sounds better when all the techies say CD is superior (e.g. higher dynamic range, in theory).

comment 3y ago · link · parent

> Thing is, I really doubt a 10k system would offer something really relevant above this.

The problem with testing Hifi using Metal is that only the recording engineer really knows what it originally sounded like. Metal recordings are also generally very compressed and so not a good test of dynamics and transients. A good test of a Hifi would involve acoustic instruments, violins, cellos, pianos, orchestras etc. You also need very well recorded source material.

comment 3y ago · link · parent

> Plenty of large, complex infrastructure is written in Python.

shudders

comment 3y ago · link · parent

> So which one is better? Neither.

I agree. And your "2 cents" demonstrates a depth of understanding greater than that offered by these rules.

comment 3y ago · link · parent

Completely agree. These rules simply do not lead to better outcomes in all cases. Looking at the rules and playing Devil's advocate for fun:

> Prefer polymorphism to “if/else” and “switch”

Algebraic data types and pattern matching (a more general version of switch), make many types of data transformation far easier to understand and maintain (versus e.g. the visitor pattern which uses adhoc polymorphism).

> Code should not know about the internals of objects it’s working with

This is interpreted by many as "don't expose data types". Actually some data types are safe to expose. We have a JSON library at work where the actual JSON data type is kept abstract and pattern matching cannot be used. This is despite the fact that JSON is a published (and stable) spec and therefore already exposed!

> Functions should be small

"Small" is a strange metric to optimise for, which is why I don't like Perl. Functions should be readable and easy to reason about. Let's optimise for "simple" instead.

> Functions should do one thing

This is not always practical or realistic advice. Most functions in OOP languages are procedures that will likely perform side effects in addition to returning a result (e.g. object methods). Should we also not do logging? :)

> “DRY” - Don’t Repeat Yourself

The cost of any abstraction must be weighed up against the repetition on a case-by-case basis. For example, many languages do not abstract the for-loop and effectively encourage users to write it out over and over again, because they have decided that the cost of abstracting it (internal iteration using higher-order functions) is too high.

comment 3y ago · link · parent

This idea was raised years before Martin Fowler blogged about it. The tar pit paper linked in the article is from 2006 and the author's had been doing this year's prior to that.
1
121314
69