Readit News logoReadit News
nadavwr commented on Generic interfaces   go.dev/blog/generic-inter... · Posted by u/Merovius
ntstr · 5 months ago
It makes more sense if you know about Rob Pike:

https://groups.google.com/g/golang-nuts/c/hJHCAaiL0so/m/kG3B...

>Syntax highlighting is juvenile. When I was a child, I was taught arithmetic using colored rods (http://en.wikipedia.org/wiki/Cuisenaire_rods). I grew up and today I use monochromatic numerals.

The language creator really hates it (and most modern editor tooling).

nadavwr · 5 months ago
I'm a fan of Rob Pike, but not of Go. Rob Pike contributed a lot of thought to editor tooling through the years, albeit not in the direction the industry seems to be going -- for example, Sam and Acme are two editors he developed. Acme UI design is inspired by Oberon and is based on tiling, but 3rd party tooling integration is entirely different and leverages Plan9 concepts to enable a whole lot of extensibility with practically zero complexity overhead due to integration -- without any true plugin architecture. There are limits to what can be accomplished this way, but it is surprisingly powerful and I can see why a community might gravitate to his views. Unfortunately he takes this minimalist approach too far when it comes to languages IMO -- a language with no coproducts in 2025 is either a niche language or unnecessarily underpowered (how they do error handling is atrocious). Over the last decade Go went from the former to the latter.
nadavwr commented on Effect of chewing hard material on enhancing cognitive function   frontiersin.org/journals/... · Posted by u/_DeadFred_
nadavwr · 10 months ago
I wonder if this offers one explanation for nail biting
nadavwr commented on Abacist – Calculations with non-decimal units and mixed bases in Scala   soundness.dev/... · Posted by u/cbeach
TOGoS · a year ago
This seems similar to the 'ComplexAmount' system I used to use in PHP and JavaScript programs for representing measurements using mixed units. Basically just a map of unit code => quantity. And for extra exactness, quantity would be represented as a rational number.

Was useful for a client that let you place orders using a mixture of USD and CAD (the alternative being a lot of 'canada'/'canadian'/'cad' fields added willy-nilly everywhere a cost needed to be represented; I don't know how people can stand to program that way). But also for generating G-code for a CNC router [1], when sometimes you want to model in mm, and sometimes in inches, and keep all the numbers exact until the last possible moment.

[1] https://github.com/TOGoS/TTSGCG

nadavwr · a year ago
PHP and JavaScript are dynamic. Here you'll be able to pass distances as feet or meters, but if you try to pass in pounds you'll get a compile time error -- can't do that in dynamic languages :)
nadavwr commented on Jazelle DBX: Allow ARM processors to execute Java bytecode in hardware   en.wikipedia.org/wiki/Jaz... · Posted by u/vincent_s
nadavwr · 2 years ago
Running bytecode instructions in hardware essentially means a hardware-based interpreter. It likely would have been the best performing interpreter for the hardware, but JIT-compilation to native code still would run circles around it.

During years when this instruction set was relevant (though apparently unutilized), Oracle still had very limited ARM support for Java SE, so having a fast interpreter could have been desirable -- but it makes no sense on beefier ARM systems that are able to support decent JIT or AOT support available nowadays.

nadavwr commented on Thanks to the Israeli accessibility law, I have to delete my websites   lifemichael.com/en/the-is... · Posted by u/avip
almog · 3 years ago
> Israel excels in bureaucracy. Ask every Israeli businessman. I don’t have an alternative but to close these websites. Providing free resources to assist others with learning programming for free has become too expensive.

I'm quite confused after reading this and seeing the list of websites where he was providing "free resources". At first I thought it'd be unlikely that a free resource would fall under one of the categories where the accessibility law applies (closest thing would be the educational services sector, which I don't think applies here) but I thought, well, maybe he's just being careful?

But what stroke me ad odd, other than never hearing about these free resources in Hebrew (my mother tongue), is that it seems odd for free resource provider to have _so many domain names_ in any language, but Hebrew in particular (.co.il domain names are expensive and Hebrew speakers is quite small even if you don't deduct those who feel comfortable studying in English).

So I clicked few of the links which by now redirect back from each of the the domain names to https://lifemichael.com/corporate/ where he offers his courses (which are not for free, not that there's any issue with that).

But I wanted to take a look what he offered in the past though these websites and plugging them into archive.org I found that each of them seemed to have served identical content, which prometes his non-free courses, including in-person courses (it's in Hebrew but it's easy to see that it seems identical even if you can't read the language):

* http://web.archive.org/web/20210510183659/http://www.phpbook...

* http://web.archive.org/web/20220513044948/http://www.htmlboo...

I see that he does have a youtube channel with free content though. It's in Enlish and I'm pretty sure there's no ground for the accessibility law to bite here (though I have no authority to skay so): https://www.youtube.com/c/lifemichael

At any rate, this post makes little sense to me in the context of free online resources as being subject to the Israeli accessibility law, and IMO the author does little to none in leading the reader to any other conclusion.

Since the websites he removed were mostly offering paid services, they may have been subject to the accessibility law is my guess.

nadavwr · 3 years ago
I also sampled his scalabook domain on wayback machine, and for the life of me I couldn't find any scala book ever having been hosted there -- not within the last few years anyway. My impression is that these sites have always been more SEO than content, and that even now OP might just be hawking his merchandise.
nadavwr commented on Ask HN: What Happened to Ceylon Language?    · Posted by u/whereisceylon
nadavwr · 3 years ago
The "better Java" niche was hot during Java's stagnation era (starting 2006 and lasting for almost a decade). The JVM was considered a great runtime, with a stagnant language, and lots of newer languages competed in that niche.

Scala and Clojure, and later Kotlin and others benefited greatly from that niche. The problem for the "better Java" niche was that Java never had to be the best JVM language in order to beat its JVM-based competition in the market. When Java started moving again (Java 8 introduced anonymous functions) and when the release cadence accelerated to every 6 months on 2017, the "Java is stagnant" justification for using other JVM languages lost a lot of traction.

Clojure was never really a "better Java" -- it's a JVM-based Lisp with good Java interop. Scala never leaned too much on the "better Java" niche, and the community is increasingly consolidated around FP. Kotlin still has some "better Java" ambitions, but they also have the Android community at their back. Without Android you would have seen Kotlin trying harder to differentiate itself from Java (EDIT: Google and Kotlin tied the knot in 2017, when Java moved to 6-month release cycle; probably not a coincidence).

Fairly young languages can still see rapid growth -- see Go (1.0 in 2012) and Rust (1.0 in 2015). But you are much less likely to see new languages trying to go head-to-head with Java on the JVM these days.

nadavwr commented on Guns, Privacy, and Crime   nber.org/papers/w29940... · Posted by u/rntn
therealjumbo · 4 years ago
CCW is very common in the US now, CCW holders are less likely to commit crimes than police officers. In general CCW or constitutional carry states don't see big wild west shoutouts at grocery stores so no. People are generally good and honest. Criminals are the exception to that, except they don't really care about whether or not carrying a weapon is illegal.
nadavwr · 4 years ago
A quick google search brought up a statistic from Pittsburgh 2008 where roughly 1/5 of perpetrators were the legal owners of the gun used in a crime.

Gun crimes are so much more prevalent in the US vs practically any other developed country. Usually by leaps and bounds. Australia used to have around 20% of US gun death rate for years. In 1996 they introduced strict gun control laws. Decline in gun deaths was gradual, but over some 15 years they went down by some 70%.

Gun control can work.

nadavwr commented on Guns, Privacy, and Crime   nber.org/papers/w29940... · Posted by u/rntn
burner556 · 4 years ago
If you were armed too they probably would think twice.
nadavwr · 4 years ago
What makes you think they'd think even once?
nadavwr commented on Bionic Reading – Convert Text into Better Way to Read Faster   github.com/crisanlucid/vi... · Posted by u/andsoitis
sdze · 4 years ago
How the hell did they manage to patent this? At least in Germany it is still "pending". I had the strong impression that you cannot patent software or algorithms (at least in Germany).
nadavwr · 4 years ago
From what little I know, in the US you can only file patents for "method and apparatus". I could be wrong but I think this is a very common restriction in patent systems around the world.

Suppose they file this patent for an ebook reader ("apparatus") with this specific feature implemented in a similar way ("method"). You would be in clear violation of the patent if you were to build and distribute a competing ebook reader with a substantially similar feature. But protection drops off rapidly the further you go from replicating both method and apparatus. I.e. if you only work on a piece of software (absent the ebook reader apparatus) I think you should be fine (but IANAL).

Now suppose you were to publish an Android ebook reader app with this feature, and publish it via Google Play. Supposedly this would result in a combined software and apparatus in violation of the patent. I'm not clear on how this is usually regarded (you'd have to at least worry about patent trolls I assume) but I doubt the patent owner has a legal leg to stand on (which won't necessarily stop them from trying).

nadavwr commented on Is Putin’s end game the roll out of a domestic CBDC?   the-blindspot.com/is-puti... · Posted by u/imichael
nadavwr · 4 years ago
This makes about as much sense as "Is Putin's end game to stop global warming by forcing Europe to move to green energy?" No sense at all.

u/nadavwr

KarmaCake day34October 16, 2015View Original