skysight-inc/HackerNews huggingface dataset:
>The people in positions of power to limit speech are often wrong.

But they're always right about when to limit physical activity (violence etc.)? It's just as conceivable that we'd be better off as a society if certain forms of physical violence by private citizens weren't illegal vs certain actions of "verbal" activity (publishing child pornography, or classified military secrets) being permissible by law.
Doesn't seem to update the diagram when I update the text field.
Show HN: PHP VMValidator v2.4.2
This is simple attribute validation for PHP Models, based on the new features, presented in PHP 8 and works as a standalone and can be use in custom projects or in libraries like Symfony and Laravel.

Now it has new 2.4.2 release
Hah point taken, let me put it a different way.

In American films, if someone does extreme, superhuman stunts, the filmmaker typically feels pressure to explain that the character is actually superhuman in some way and not an ordinary guy with an office job. And he or she will be in peak physical shape.

In Indian film, an utterly ordinary character in "office job" physical condition will catch bullets, run faster than a full speed train, etc. No pressure to explain the seeming contradiction with ordinary reality. The film could be considered a romance, having ordinary people as protagonists, and these characters would be doing the above-mentioned stunts as part of the plot.

These aren't hard and fast rules, both sides of the divide deviate from them, but that's been my observation.
All Norvig's code is nice to read and also often enlightening.
Centralization of infrastructure that benefits from the economies of scale shouldn’t be a problem.
Making a pedantic argument on what constitutes an interpreter is silly. The title is bad. It is an interpreter. I'll continue to eat downvotes on this because of the pedantry of HN.
German village managed to go off grid and become energy self-sufficient
I like the list of OS you give, but System Administration is not the configuration of a system but instead thousands, with a mind towards performance and allocation of resources, but also includes stressing systems to see what will break. What is being administered is actually people, not machines, and perhaps ironically, relationships become of fundamental importance. Generally, sysadmins are not software developers; they are technology generalists and experts at any operating system and every application, even those they have never used.
Clicking/touching the scroll bar and dragging it directly is a valid way of using a scroll bar. Especially for people who come from a time when mice didn't have scroll wheels, clicking and dragging the scroll bar itself predates the convenience of whole-screen dragging (touch) and flicking the scroll wheel.

Dragging the scroll bar has its benefits over touch/wheel too: It allows for quicker, longer distance travel with fewer (and in the sense that you just move your arm, also simpler) movements.
This is a pretty wild mischaracterization. "I can't believe they let the FBI tell them what to do" is an incredibly bad take.
I highly recommend the book The Tyranny of Metrics by Jerry Muller for an in-depth look at these kinds of issues (in addition to Taleb’s work). Mistaking the map for the terrain (or any similar metaphor) whereby you think you know how things work solely through the lens of easily quantifiable (and gamed) metrics seems to be the mistake of this era. The book really opened my eyes to this problem everywhere (including software), and it only seems to be getting worse.
>(Another thing holding the company back was simply its base odds: Can you name a retailer of great significance that has lost its position in the world and come back?)

This seems significant. If you look at what's happened to most anchor department store retail at malls in the time since, it isn't pretty. You can look at the individual stores (Sears, Macy's, etc.) and find individual culprits to blame. But there's a reasonable point to be made that no one was in a position to turn JC Penney around even if they could have eeked out a bit more money for shareholders and debt holders.
A plea for lean software [pdf]
This looked promising, while I browsed the index. Especially the first chapters that discuss human cognition. Since software is still a human creative endeavor cognition is key to understand software engineering. However, continuing to read the index I am discouraged and I expect that this is a difficult read. I was expecting more like a handbook, more succint, that I could use to explain software engineering to non technical leaders.

Also, why in the world somebody would choose R as a vehicle to present software engineering fundamentals? This by itself almost disqualifies the book for me. It would have been much more useful, IMO, to use some imperative or object oriented, more common, language.
Brand new iPhone features that Android already has
“A Genetic Switch” is one of the best books in my field. The entire book is about a single genetic switch in a bacterial virus, starting off high level before going down into the nitty gritty, all for this single switch. Highly recommend for a deep dive into how genetics can actually be controlled, down to the physics level.
The second sentence is a good reason NOT to use hydrogen in your breeding material, since if you do you have to separate the tritium from it, and do it very rapidly.
By DW News https://dw.com

https://twitter.com/dwnews
I only have a couple of points regarding this.

First, simply, I don't know anyone that puts their DB connections "on the internet". That live, raw, database "SQL" socket to be poked, prodded, hammered, and cajoled by complete strangers (or their automatronic minions).

Second, is DB latency. Sending "coarse" grained service requests across the planet is one thing compared to the potential volume of random SQL commands that folks do.

Mind, much of that can be mitigated if you build a stored procedure service layer. But classic "2 tier" "client/server" work didn't do that exclusively, just just threw out SQL willy nilly as the need dictated.

As old school as I am, even I tend to shy away from the "monolithic DB". You think your app was a monolith before, wait until it's all baked into Oracle. I've always found the DB to be a "bad citizen" when it comes to things like versioning, source code control, etc.

Even if I were doing a desktop app, I still think I would prefer a middle tier ("application server") managing service endpoints than cram it all into the DB, especially today.
Try the model F. It's significantly better than the M. Still the polar opposite of topre
I've never had this problem with my good bank (First Direct) but I had this problem with a bank I use for some routine financial transactions (Santander, currently advertised by celebrities Ant & Dec for some reason) and also with my safe bank (NS&I, a bank owned by my country and thus "safe" in the sense that if it's bankrupt so is my country and therefore that's the least of my problems)

Maybe every other bank is better? I doubt it. For me one bank being unavailable is a mild inconvenience (it so happened I wanted to use Santander to check some records, but most days I wouldn't have noticed) but most people only have one bank, so it being out of action is really problematic, and we live in an era when "you could visit a physical branch" might as well be "You could fly to the moon" for all the practical good it does normal customers.
This is a very interesting exploration of language, grammar design, and tools for thought.
How long ago was that? I never remember it taking more than a minute or so to get a good fix with GPS devices. I'm talking about Garmin devices.
The hegemony of the USA is not threatened. It’s a pipe dream and has been for at least a decade.

The world is firmly multipolar now and if the USA refuses to help in tackling the problem we all face, it’s just going to find itself more and more marginalised on the global scene which is exactly what has been happening since the Trump presidency.
> If you only hear about the negative effects of screens and social media, the logical solution would be to stay away from them as much as possible. But by doing so, one misses out on the opportunities provided by digital devices, like using tech to supplement connections in the real world or to learn something new online.

People are obviously already aware of the benefits of using devices with screens. We don't need to be reminded that FB helps us reconnect with old friends, or that the internet helps us access information. Why would the news write a story on that?

News stories tell us about the extent to which negative social and health markers have appeared in the wake of social media and smartphones becoming ubiquitous. We can then use that information to decide whether the obvious upsides are worth the potential downsides.
Most of the time the fastest way to any given site is to avoid unnecessary network hops.

Now maybe CF have a more efficient route here or there but really I can’t believe that for most people it’ll be faster.

As for security or privacy I can’t imagine they’re much safer than browsing most HTTPS sites directly. There’s nothing to say they’ll be able to resist a secret US government subpoena for records either.
> But if high-energy-cryptocurrencies are effectively declared illegal in the U.S

This makes sense insofar as easy access to cryptos through players like coinbase, cashapp, or other kyc players disallow US citizens from purchasing pow coins.

Anything short of that may turn out like torrents do: where users do it and hope they're not the one the gov makes an example of.

It's easy enough to turn on a VPN and then hammer away at any pow coin. If electricity use is an issue, just claim you're training a deep learning model. There's not much any authority could do about it, especially if you have luks or veracrypt guarding your data as one should.
Reminds me of this Andy Warhol quote:

"What's great about this country is America started the tradition where the richest consumers buy essentially the same things as the poorest. You can be watching TV and see Coca-Cola, and you can know that the President drinks Coke, Liz Taylor drinks Coke, and just think, you can drink Coke, too. A Coke is a Coke and no amount of money can get you a better Coke than the one the bum on the corner is drinking. All the Cokes are the same and all the Cokes are good"
Cloudflare is shoving Warp down any open throat they see. It's really annoying. I recently did some sales calls with them and they really want everyone using Warp.

I'm sure that the traffic analysis it unlocks for them is incredibly valuable. But I'll never use this.
Technically, it’s only the pedantry of a subset of HN.
You are comparing having a feature vs not having it. To make it fair you have to provide for polymorphism, and at that point most of your points become moot in lower level languages as well. Also, bounded subclassing exists (sealed/final classes) so in theory most/some of the optimizations you mention are possible.
Biggest pain points with Warp for me are lately, due to all the abuse by scrapers and such, quite a few sites just throw a 403 when I try to connect to them through Warp including my bank-- consider yourself lucky that you haven't been affected yet. And, most of the time, if I try to use Google search, I just get,

"Our systems have detected unusual traffic from your computer network. This page checks to see if it's really you sending the requests, and not a robot."

And, then I am encouraged to enable js so google can provide me a series of captchas to solve.

It used to work better than a VPN terminating at my own VPS, but now Warp netblocks appear to have a worse reputation than even a colocrossing/low-end box vps.

Per Cloudflare's FAQ, sites behind cloudflare see your original IP, other sites do not yet:

https://developers.cloudflare.com/warp-client/known-issues-a...
I’ve been using Anki on and off for years, especially during college. Having a solution to create cards faster is something I would definitely benefit from but haven’t invested in myself. I know a simple spreadsheet would do it, but maybe a tool that takes a snapshot and auto saves it… good luck on finishing school!
What went down on Wikipedia after Queen Elizabeth II's death was announced
"make do" ? Unless you were a cartologist, surveyor, or geo-cacher would you even care?
Virtually all data structures are a subset of an array of structs (sometimes with unions). That magic is what you do with the structs.
FreeCAD's user experience is incoherent or perhaps more like chaotic for a newcomer - to FreeCAD, but experienced in CAD -. Like there was no coherent way of thinking or common approaches in it, like if hundreds of people added pieces to it here and there the way they pleased.

At least this is what I seen 5-7 years ago, gave up very quickly struggling with it - a software supposed to make things easier, not more complex, and FreeCAD made things unnecessarily difficult and complicated. Maybe I should look at it again now, hopefully things improved.
> That Ram can map to Alluri, but the mapping to Lord Rama is absolutely loud and vociferous.

Any elements that you might perceive as mapping to Rama is an homage to the 1974 classic movie: https://en.wikipedia.org/wiki/Alluri_Sitarama_Raju

That representation is what is etched into the minds of Telugu audience.

> I could be mistaken about the mapping of Bheem

You are mistaken.

> And that's just one point amongst the 10 I have made with references.

Yeah, the rest them are either unfalsifiable or statements of opinion.

> Moreover, it is very easy for me to see that you are upper caste hindu

I'm fascinated to know how you came to that conclusion. I'm a half-caste with one side of my family entitled to minority status. Try again.

> Yes, I watched parts of the movie.

Wait, you didn't even watch the movie in its entirety?
Existential Psychotherapy - Irvin D Yalom. A profound, well written book. Once you understand yourself, it helps you to understand others.
That’s not correct. There are large emission issues that would should tackle first. How we generate electricity is one of them.

Carl Sagan warned us almost 40 years ago that coal would be a future problem.

https://youtu.be/Wp-WiNXH6hI

That was clearly a large problem that could have been addressed, and still needs to be ASAP.

Coal-fired power stations emit over 10 Gt of carbon dioxide each year,[4] about one fifth of world greenhouse gas emissions, so are the single largest cause of climate change. 8500 coal power plants in the world.

“Coal-fired power stations emit over 10 Gt of carbon dioxide each year,[4] about one fifth of world greenhouse gas emissions, so are the single largest cause of climate change.”

https://en.wikipedia.org/wiki/Coal-fired_power_station

So, we start the discussion with air travel, trying to reduce 2% to under 2%. While we’ve ignored 20% of global emissions.

We actually cost ourselves decades. So many miracles needed by 2050, when we could be talking 2070.

Now, let’s just tell everyone we need to do everything at once.
> that too will fade

I admire your quasi-religious faith here, but that's not what I see. Something to ask yourself: Did the Nazis just magically fade? Or did people perhaps do things to counter them? And did that Nazis do any harm while people were waiting for them to fade on their own?

> They will sign up if there's value on that platform.

Again, this is just religious faith, not a serious argument.

Do some sign up? Sure. But it's fewer. And they talk less. The more Nazis you have, the more active they are, the less their targets will be around.

If you're up for learning something, go read Loewen's "Sundown Towns". He documents how after the civil war for a number of decades, many places all over the US were and stayed ethnically cleansed. The peak of this was things like The Wilimingon Insurrection and the Tulsa Massacre. But smaller ones happened for decades all over the east, north, and west.

How did the ethnic cleansing happen? A lot of verbal abuse and threats on the part of white people, with occasional outbursts of violence. In the face of that, the threatened non-white people, mostly Black people, moved elsewhere. They would try moving in, because there was "value on that platform". And in the face of white hostility and abuse, they would generally move right back out.

That dynamic didn't go away, and gets repeated in online spaces to the extent that hostile whites can get away with abusive behaviors. There's a significant fraction of the population that enjoys being abusive, both because it's personally fun and because they see it as necessary to policing tribal boundaries. To the extent a platform allows those people to thrive, their targets will enjoy less ability to speak. A platform's main choice is how much they value that abusive speech over the speech of the people who would be silenced by it.
> > Much better than any framework already.

> I doubt that. If my first attempt at a dynamic web app in like 10 years is better than the current frameworks than the state of web development must be much worse than I realized.

The state of webdev is indeed terrible, there is progress being made but its hard to tell where and if it is real progress. There was a fun article the other day onhere that explained why React became popular and how that no longer necessarily applies but the popularity persists because it is well known. I cant objectively tell how true that is. What is the better stuff is like... peoples opinion? Frameworks are there because html/css and js have their shortcomings (what those are is more opinions) but I much prefer working with those over hiding them. An abstraction on top of something bad doesn't make it great.

People can glue code fantastic things really fast nowadays but when it stops working it takes a wizard to fix things. With many components of your thing getting updated it is easier for conflicts to arise.

Perhaps the question is: How much performance and stability can you exchange for fast development? Guessing how much performance you are going to lose is not easy to guess, it might be completely irrelevant for the use case, it might be horrific. Will you be around to fix things in the future? Will others have to work on your code? A reasonably sane standard way of doing something is going to be a huge advantage there.

> Your other comments about inlining go against most advice I've seen on best practices (with which I happen to agree). For one thing it's much nicer to edit files that are written in one language than in 2 or 3.

Nah, its all the same. You are gaining nothing. You could ask : how much editing files are you going to do vs how many times are people going to load the page? A http request takes time, the browser doesn't know it has to load a css file and 2 scripts until it receives and parses the html, a new request is made which takes time again. Depending where the user and the server are located a request may take a long time.

I find it quite silly how we need a gaming pc to parse websites nowadays. The user is also in some remote corner of some remote country on ancient hardware.

You should absolutely have external css and js if the user is likely to browse multiple pages. Inline they would have to load it for every page view.

People may also block external js and css files. Add blockers may get rid of your code section and if your app is many files spread out over many folders it is much more likely to break than a single file that contains everything.

The single file will either load and work or the server is not working.

In an ideal world we could have things inline on the front page and tie it to an url so that it can be cached and used on other pages.
I taught adults in international settings (i.e. i go on site, to their culture) on and off for the last three decades.

> Studies have found that screen time shrinks people’s attention span to less than that of a goldfish

In my experience, attention span has decreased from 50 to 90 minutes to 15 to 30 minutes in adults in high-discipline-oriented fields.

There might not be a research for the goldfish attention span, but it sure feels like it for me.
why does there seem to be this false dichotomy in the comments here of, if climate change is caused by individual actions, it cannot be caused by cooperations and vica versa? Both of these are true and they are entangled. And the solution is obviously on both fronts as well. We need people to not fly long distance for team offsites and family reunions once a quarter, we also need to have changes in legislation/political system to make it easier to go to work without a car, have changes in legislation to require flight companies to carbon offset helping with the first point etc etc etc. Why does the focus have to be on either or, I don't see it.
> My understanding is the climate is unconcerned with the per capita figure. It is concerned with total CO2.

That it is concerned with the total CO2 is why per capita is the correct measure when determining if some group of people is doing better or worse than some other group of people at addressing CO2 emissions.

If you go by per country, then countries splitting or joining can change whether a group of people are emitting more or less than their fair share of the world's total CO2 budget. A high emissions country can simply split into multiple smaller low emissions countries. They are still emitting the same amount, but because they redrew some arbitrary lines on the map they are suddenly low emitters.

Take that to its logical conclusion and you get more and more splits, with the limit being a world of 7 billion countries, and per country then ends up being per capita anyway.
Duff's device.
> can the government enforce that the software has to be written a certain way?

The answer is yes, but this is not enforcing that the software is written a certain way, it is proposing to regulate proof-of-work energy use because of it’s negative environmental effects. The government already does regulate the environmental outcomes of many other businesses, and not necessarily the method by which they achieve this outcome. Also see export controlled software. Car exhaust, factory exhaust, chemical dumping, waste dumping, water pollution, toxic waste storage… there’s a huge list of regulations that are both constitutional and good for society.

> it sounds like code is considered free speech

That has no bearing, and sounds like a misconception about what Free Speech actually is. Free Speech rights in the US do not give you the right to say anything you want without consequences. They only prevent the government from jailing you over some kinds of public speech, and there is a long list of types of speech that are not protected (Google “free speech exceptions”). Generally speaking, the kinds of speech that are not protected are the kinds that do harm to society, so regardless of whether you consider code to be speech, some kinds of speech are not only not protected, there is mountains of precedent for regulation and punishment of speech that does damage.
Deep Time Underground
Most RDBMS have auditing features these days. Unless there's a lot of complex logic on the client that's sufficient. Otherwise yes, there are plenty of libraries and services for collecting and analyzing logs these days. I've looked at streaming Java Flight Recorder logs too, but it's probably overkill.
Personally, I think it’s more the traditional HN egoism which in a lot of way is the traditional American egoism. Most HNers seem very happy to talk about fighting climate change as long as you don’t point out the role of their own privilege life style in it.