HNHacker News
TopNewBestAskShowJobs

kinjba11

273 karma · joined October 27, 2018

submissionscomments
kinjba11··on Oil System Collapsing So Fast It May Derail Renewables
Indeed https://news.ycombinator.com/item?id=28889108
kinjba11··on Was Google Earth Stolen?
More like the entire political spectrum. Regulation causing problems? Was the regulation trying to solve a problem for my tribe? Regulation needs to be fixed. Is it trying to solve a problem for the enemy tribe? Clearly the regulations need to be axed.
kinjba11··on Was Google Earth Stolen?
You say "new" as if there was a time when documentary makers didn't have a message

There is always a message and the line between fiction and nonfiction isn't always clear. Who is making the media and why, who did the research, who funded the project, etc.

What's sad and scary is that media literacy and critical thinking isn't a top priority for teaching in schools.

kinjba11··on Intellectuals urge Germany to keep nuclear plants online
I'm reminded of the Tom Scott video mentioning how parts of the grid is simply not up to the task yet to get wind energy from high-wind areas into the mainland.

'The islands with too much power' https://www.youtube.com/watch?v=8UmsfXWzvEA

kinjba11··on Go is a terrible language (2020)
I think there's a nice middle ground. For instance, in Swift a function can indicate that it throws, which is better than nothing.

    func canThrowErrors() throws -> String

    func cannotThrowErrors() -> String
kinjba11··on The City of London Is Hiding the World’s Stolen Money
I'm reminded of the Guardian article: "How Britain can help you get away with stealing millions: a five-step guide" all about how ludicrously loose the UK's company registrar is.

https://www.theguardian.com/world/2019/jul/05/how-britain-ca...

kinjba11··on Brave and Firefox to intercept links that force-open in Microsoft Edge
Blink is Chrome's engine. Blink is not Chrome. The Brave browser also uses Blink, for instance. Microsoft has been in the browser business for a long time and takes security updates seriously, to the point of force-updating people's machines which people gripe about.

Firefox is great yes, viva la resistance. Unfortunately I'm seeing more sites with quirks on Firefox so I tend to use both Firefox and Edge.

kinjba11··on Treating beef like coal would make a big dent in greenhouse-gas emissions
Devil's advocate. I'll probably be down-voted, but note that ignoring details gives fuel to skeptics (as in https://www.youtube.com/watch?v=sGG-A80Tl5g).

1. How is this 14.5% number calculated? Does it include deforestation? Grass-fed is far different than deforesting for grazing land or crop land.

For instance from the FAO PDF you quoted: "extensive livestock are often kept in remote environments where deforestation and land degradation reflect weaknesses in institutions and policies". The headline then should read "deforestation and bad land policy causes climate change" not "stop eating cows".

2. Again, how are these 10x numbers calculated? Comparing e.g. industrialized agriculture to inefficient agriculture in a third-world country is not going to convince skeptics. If beef production is extremely inefficient somewhere, we should fix that.

3. If country A emits 100x the CO2 production of country B for the same end result, that needs to be noted. If my neighbor has a giant gas-guzzling monster truck spewing emissions, my neighborhood is not at fault, it's just him.

4. Agree 100%. We should be addressing the deforestation. Saying "stop eating meat" is not the solution. "Don't buy food from Brazil grown on land that had rain forest last year" is more nuanced and probably easier to follow. Matter of fact, don't buy products made by totalitarian regimes, slaves, child labor, etc. We should know where and how our products are made. I'm not advocating "don't buy sneakers" because some sneakers are made in unethical ways.

5. Humans love meat, that fact is not changing anytime soon. We should advocate for more efficient (and yet more ethical). If we need to, governments should pass laws to make production sustainable similar to what is done to prevent overfishing.

6. We have a perfect machine, well studied and used for millennia, for converting corn husks and other inedible things that would otherwise be thrown away into fertilizer: cows. Bonus, in addition to fertilizer, you get milk, hides, bones, highly nutritious meat, etc.

7/8. Totally agree. More laws need to be passed to regulate this industry, it's truly sickening. All meat products should be twice as expensive or more as they currently are to account for this.

kinjba11··on LLVM 13's new pass manager improves Rust's compile times by up to 20%
I wonder if it's time to move past that original meaning, or perhaps invent a new catchy term to describe the problem. I'm reminded of this CppCon talk

https://youtu.be/rHIkrotSwcc?t=888

kinjba11··on Shenandoah in OpenJDK 17: Sub-millisecond GC pauses
Can you link to any documentation/examples?
kinjba11··on Taming Go’s memory usage, or how we avoided rewriting our client in Rust
Channels are not always the best solution (unless you're referring to Rust channels?)

https://www.jtolio.com/2016/03/go-channels-are-bad-and-you-s...

kinjba11··on Shenandoah in OpenJDK 17: Sub-millisecond GC pauses
> apply using to any type that has Dispose() without inheriting from IDisposable

Last I saw, this was still being debated by the LDT and weighed against similar proposals such as introducing a `defer` keyword like Swift/Go.

kinjba11··on Meat accounts for nearly 60% of all greenhouse gases from food production
It is easy for statistics to ignore the big picture, ignoring important details and caveats. There is no single number for CO2 emissions for beef and different crops. If beef is 10x more nutritious than cereals, does that change the equation? If cows are raised on grassland unsuitable for crops, does that change the equation? Would the demand for non-edible products produced by cows be satisfied with more CO2 intensive solutions? Highly efficient, mature and industrialized agriculture in the US is very different from burning down forests to raise cattle or make room for poorly raised crops as happens in some countries - does that change the equation?

I highly recommend watching for more details. https://www.youtube.com/watch?v=SdrhpThqlCo

kinjba11··on Brooks, Wirth and Go
Go values stability. But time passes and big changes do happen. Go modules. Generics.

I wonder how many of the same arguments were made about Java back in the day. Java got generics at around 8 years after its 1.0 release in 1996. Go's getting them 9 years after its 1.0 release in 2012.

We should probably compare apples-to-apples. C++ has been around for 35+ years. Java has been around for 25 years since its 1.0 in 1996. Python for 26 years. C# for 20 years.

I wonder what people will think of Go in 10-20 years when its age matches more established ecosystems. Will devs be complaining about dealing with pre-generics code then?

kinjba11··on What is ‘elite overproduction’?
In the US at least, Bachelor's is much more common than a Master's. It depends on the area of study I bet. The views I grew up around about education treated Master's as a waste of money with a "go PhD or get a job after the 4 year bachelor" prevailing theme.
kinjba11··on Cloudflare's inaccessible browser contradicts the company's mission
Perhaps I wasn't clear. The fact that some corporations do shady things does not mean it is inevitable that all corporations do it.

I'm arguing against the logic: "every big company always ends up being a den of advertising evil". Cherry picking examples like Google is not proof of this.

Not every company is Google or Facebook. Is Apple selling its soul to advertisers tomorrow? Is Netflix going to insert ad breaks every 5 minutes any day now? Is Tesla going to have you watch an ad every time you start the car?

kinjba11··on Cloudflare's inaccessible browser contradicts the company's mission
To me saying any $X big company is a ticking time bomb is nonsense.

The fact is, a number of companies control a huge number of eyeballs. An unethical exec taking advantage of that would cause enormous PR nightmare. If you're making money with a great brand reputation, you don't mess with the recipe.

kinjba11··on Lucasfilm hires YouTuber who specializes in deepfaking big-budget movies
But people do care if it looks legit. Something that is legit supports their views better, even if it just looks legit and is actually counterfeit.

But totally agreed it needs to be common knowledge that everything digital can potentially be bogus. This stuff should be taught in schools from an early age honestly.

kinjba11··on What's bad about Julia?
In a functional language `map` and `filter` are nice to chain together. For instance in Haskell:

    [1, 2, 3] & map (* 3) & filter (> 4) & sum
This takes the array, maps it, filters and sums it in one go. If the array was say 1,000,000 elements and you used multiple `map`, `filter`, and other similar functions you'd soon run out memory (or use much more than needed) if they were eager and allocated a million-element array at each step as opposed to running through the array one time.

The alternative is to use imperative style (for loops and such), but the functional style is often more declarative and easier to read and write (think SQL).

kinjba11··on Piped: A privacy-friendly YouTube front end which is efficient by design
Please tell us how Google "overtly threatens some of our most fundamental human rights" by providing free services? Just saying Google is evil doesn't make a good argument.
kinjba11··on America’s Collapsing Meritocracy Is a Recipe for Revolt
Fascinating seeing the parallels between history and today.

> vanishingly few U.S. policymakers have degrees in science or foreign languages, and yet they nevertheless make decisions regarding nuclear weapons, biotechnology, and international trade.

Has any society ever had educated politicians as the norm? It seems like politicking is a skill in itself that leaves no time for other education (with few exceptions such as Jimmy Carter).

> the competitive testing regime systematically favored the wealthy and the connected—who thus had more reason to continue to support it.

Nothing new here, but

> A need for government revenue led to the development of the “irregular” route for advancement, in which offices and degrees could be purchased rather than earned. Between 1830 and 1912, only 32 percent of Qing officials had actually passed the examinations

That's a bit shortsighted of a policy no? Codifying the outright buying of political office is a bit different and more extreme than buying influence we see today (and throughout history). Maybe a real historian could speak to this bizarre policy.

kinjba11··on Against SQL
You're not alone. Myself and many coworkers don't feel the need to capitalize everything, preferring `select * from Table` to the shouting version `SELECT * FROM TABLE`. It ain't the 80s anymore, we can use lowercase.
kinjba11··on Against SQL
A natural join selects all matching names which is not the same as what the article is saying. The database already knows about foreign keys. Why do I have to say

  select * from A a join B b on b.Id = A.OtherId
SQL IDEs will auto-suggest that "on b.Id = A.OtherId" because it's the foreign key and could be inferred. That's what you need 99% of the time.
kinjba11··on Against SQL
Care to back up those claim with evidence? The SQL queries are toy examples. Experienced SQL users don't write SQL like in the article because they know SQL's pitfalls and avoid them. It doesn't mean SQL isn't full of pitfalls and bad decisions (like many very old programming languages still in use).
kinjba11··on Against SQL
I've been around quite a bit of SQL, and views are great. But they're not exactly as easy as assigning to a variable. If I followed your logic per compressibility I'd have to be creating views - permanent global objects - for almost every query I write. Do you create views every time you need to write some ad-hoc SQL?
kinjba11··on Against SQL
> maybe they are asking a bit much from SQL

But this article is thought provoking to say the least. It follows the courtroom logic of holding the defendant SQL on trial for as much as possible. And SQL is guilty of a lot of crimes.

I do hope GraphQL and similar query languages become more prevalent and standardized, as it seems SQL could really use some stiffer competition.

kinjba11··on Against SQL
Should the filesystem matter? I'd assume a database would just allocate a large chunk of disk space and memory and do what it will with that on a layer closer to the metal than files.
kinjba11··on Against SQL
An additional subquery and a CTE are both restructuring the query significantly, which is the author's point.
kinjba11··on Against SQL
It is a toy example. Perhaps imagine a more realistic subquery that is much longer. Are you going to duplicate a 50 line subquery to get the salary when all you want is one more value? No, you'd probably want to restructure the query with a join or CTE instead. To the author's point, a large change relative to the gain.
kinjba11··on Npm Audit: broken by design?
> not what the code in this package does

Here's `is-number` (https://github.com/jonschlinkert/is-number/blob/master/index...):

    module.exports = function(num) {
      if (typeof num === 'number') {
        return num - num === 0;
      }
      if (typeof num === 'string' && num.trim() !== '') {
        return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
      }
      return false;
    };

Care to explain why these 5 lines of code need to be a package? To me, having something so simple be a package by itself is absurd.
← PreviousPage 3 of 5Next →