skysight-inc/HackerNews huggingface dataset:
That will not be because of an array data structure for the lines.

When properly done, plugins/extensions are in separate process which do not hang the main UI thread. It helps if these processes has a low priority. Also, ionice is good when processing many documents.

Another flaw of many extensions/language servers have, is the lack of abort controller implementation. This means that debouncing doesn't work. So if there are many document updates, the server would hang.
[Article author here]

Never heard of Third Room before and I can't find anything much about it, so I can't help you there.
For people not using CSS a lot, vh is a little tricky on mobile. I guess that's what's behind "kind of" in the parent comment. It has to do with the fact that the viewport size changes as you start scrolling down [0]

[0] - https://dev.to/frehner/css-vh-dvh-lvh-svh-and-vw-units-27k4
I was too subtle, sorry
The Goat Stack
A tech stack for building full stack web apps with Go with minimal JavaScript
I am one of those who would insist on correctly splitting commits. Commits are a communication tool, and a well-crafted series of commits makes reviewing pull requests, which is a chore for most people, a lot easier. Months or years later, it is still important to easily review changes.

In a Gitflow repository I don't particularly like squashing feature branches since a sequence of commits allows the author to better document what they were thinking about. Squashing is fine in Trunk-based development since feature branches are usually less extensive.

I hate intermediary merges on feature branches because they tend to make up a large portion of the branch history and are harder to review than normal commits.
China warns 'military fans' they could face prison for posting photos online
I don’t think the examples shown reflect an element of critique.
A scary frightening conspiracy theory is actually comforting and reassuring. It gives a reason why there is evil and chaos and says that there are people in charge of things.

It's much less reassuring and more terrifying to look at the world and see that no one knows what's going on really, there isn't some brainy think tank with a 1000 year secret plan for the future, that randomness and chaos and brokenness is the default.

Conspiracy at any level tells us that there is a plan and tells us where we are in relation to that plan.
> This is irrelevant in the discussion that such campaigns were conducted, which you agree with yourself, and the fact that they're wildly successful.

I absolutely dispute the fact they were "wildly successful." People want to make this claim because it conveniently makes their political opposition ignorant tools befuddled by foreign powers rather than legitimate dissent. One might argue that nothing is more "destabilizing" than the polarizing idea your domestic opposition is brainwashed by foreign enemies.

>? We also know that social media is filled with bot accounts that spread disinformation. This also isn't new, and you don't need to be a researcher to verify it.

Except we keep finding the alleged bots aren't bots at all. My own Twitter account was, according to these groups, a bot. Perhaps we don't really "know" that at all. Perhaps most actual bot accounts have close to zero engagement.

> This war is not new, as you say, but with the advent of the internet it has become the most efficient and effective way to destabilize a nation.

No amount of Facebook ads can destabilize a nation, and nothing out of the Internet-era has come even close to the impact of past influence campaigns, although no doubt as t -> infinity, we'll see something.
I don't know about Macbooks, but if the company-provided Laptop runs Windows, tmux + editor is nowadays very easy using WSL2.
This is a great idea and really good execution. Apparently the server is not beefy enough for HN front page, but that is easily forgiven in my book.
Interesting. I hate Eclipse with a passion, I find the ergonomics so horrendous, and back in the days it was a hog. Maybe on today's hardware it's leaner than webkit based vscode. But the last time I tried to use git with it .. it made things 10x harder than the CLI. It was so bad that I developped RSI in 24h (and I'm a daily emacs user)
I guess bricking your device makes security irrelevant
Thanks for the advice! I can probably handle that kind of an upgrade. I just don’t know enough about electrical to diagnose/fix those kinds of issues
Kiva: A non-profit that expands access to capital for entrepreneurs
It's kind of weird that the livestream seems to be holding up a lot better than the library. Maybe because they put a lot of power behind it in anticipation.
[Article author here]

OK, look, yesterday, I spent an hour carefully writing a simple explanation for some zeeb on Fesse Bouc on why you couldn't expand a ZX Spectrum with more RAM.

He replied with a one-line dismissal saying it was boring.

I blocked the nasty little troll.

Do you really want me to try to explain this, or is this another idle snarky comment?

Trying to summarize what's important about this tech is going to take a substantial chunk of my day. It's all in the article anyway. Have you RTFA and read the Wikipedia page on the original Croquet? Have you, in other words, done the absolutely minimal effort?
Painting the picture that the alternative to hyper aggressive war machine is North Korea is a little bizarre to me to be honest.
What is lacking is any space for community. No mailing-list or other place to discuss the direction of the project. No documentation expressing what is the overall reason or rationale behind the project, or who are the main contributors, how decisions are made, no roadmap.

There seems to be zero braking force on adding new features to the syntax and libraries. While I agree with 90% of them, I can find no discussion of why they were added, what arguments against adding were considered, how the decision was made, and by whom.

I have created my own (as yet unreleased) fork of Lua, adding some of these same features. I could abandon it and instead use (and contribute to) Pluto, but I am frightened by the mystery surrounding its origins, governance, and seeming lack of community input into the future direction.
If Microsoft doesn't get royalty free rights to resell access to everyone's content on demand, China will become the powerhouse of interference-free media? Rrrrrright....
The chatGPT model is not reproducing the contents nor making it available at scale. I, the user, ask the model to read the website and other websites and come back with a useful summary to me. This is not training data thus not violating copyright any more than a browser showing the full text would.
Definition of Transformative Use: The legal concept of transformative use involves significantly altering the original work to create new expressions, meanings, or messages. AI models like GPT don't merely reproduce text; they analyze, interpret, and recombine information to generate unique responses. This process can be argued as creating new meaning or purpose, different from the original works.

In the case of the famous screenshot, the AI just relayed the information it found on the web, it's not included in its training data.

So you're just wrong.
Ask HN: Lightweight data analytics using SQLite, Bash and DuckDB – too simple?
Over the last 12 months, in parallel to using Google BigQuery, I have built my own processing pipeline using SQLite and DuckDB.

What amazes me is that it works surprisingly well and costs much less than using BigQuery.

Roughly speaking, here's what I do:
A SQLite database receives IoT sensor data via a very simple PHP function. I currently use the FlightPHP framework for this. The data is written to a table within the SQLite database (WAL mode activated) and states are updated by the machines using triggers.

Example of a trigger

CREATE TRIGGER message_added
AFTER INSERT ON messages
BEGIN
INSERT OR REPLACE INTO states
VALUES
(
new.id,
new.status,
new.time_stamp,
new.current_present,
new.voltage_present)

This allows me to query the current status of a machine in real time. To do this, I again use a simple PHP function that provides the data via SSE. In the frontend, a simple Javascript method (plain vanilla JS) retrieves the JSON data and updates the HTML in real time.

const source_realtime = new EventSource("https://myapi/sse_realtime_json");
source_realtime.onmessage = function(event) {
var json = JSON.parse(event.data); };

For a historical analysis - for example over 24 months - I create a CSV export from the SQLite database and convert the CSV files into Parquet format.

I use a simple BASH script that I execute regularly via CronJob.

Here is an excerpt

# Loop through the arrays and export each table to a CSV, then convert it to a Parquet file and load into the DuckDB database
for (( i=0; i<${arrayLength}; i++ ));
do
db=${databases[$i]}
table=${tables[$i]}

echo "Processing $db - $table"

# Export the SQLite table to a CSV file
sqlite3 -header -csv $db "SELECT * FROM $table;" > parquet/$table.csv

# Convert the CSV file to a Parquet file using DuckDB
$duckdb_executable $duckdb_database <<EOF

-- Set configurations
SET memory_limit='2GB';
SET threads TO 2;
SET enable_progress_bar=true;

COPY (SELECT * FROM read_csv_auto('parquet/$table.csv', header=True)) TO 'parquet/$table.parquet' (FORMAT 'PARQUET', CODEC 'ZSTD');
CREATE TABLE $table AS SELECT * FROM read_parquet('parquet/$table.parquet');

EOF

Now finally my question:
Am I overlooking something? This little system works well for currently 15 million events per month. No outtages, nothing like that.
I read so much about fancy data pipelines, reactive frontend dashboards, lambda functions ...

Somehow my system feels "too simple".
So I'm sharing it with you in the hope of getting feedback.
Today you can buy a Miele household appliance. A liebherr fridge. A Dyson vacuum
cleaner(I bought mine like 20 years ago and works like the first day).

People can buy a stainless steel drum washing machine, or you can buy it in injection molded plastic. Most people buy the plastic one, because the other is much more expensive.

Fair enough, the only problem is that you see the person who bought one with the plastic drum complaining about how it broke after warrantee period is over.

People want things to last forever and be cheap, and that is not possible. Making an stainless steel part is way way more difficult and expensive that doing a plastic mold, and is not mass produced as much because most people do not want to pay it.
Yes, obviously, but why?

Good products are still out there but there are very few trustworthy sources of reviews that actually test the durability. Project farm comes to mind as a rare example. Consumer reports does a decent job but puts it behind a paywall.
For me this occurs when I put my phone on landscape.
The GPL was specifically written to lock code out of the proprietary realm, so if you hate copyright[0] you'll hate people using it as intended.

[0] To be clear, I know of few who actually like copyright. Tolerate it? Use it as needed? Sure. The only people who actually defend the current broken-ass system are large media companies which are built to optimally exploit it.
Currently it means treat people as special because of their skin color and to me is pretty much actual racism. In an ideal world it would mean what you say it does (everyone is valued equally irrespective of melanin or other immutable characteristic), but as someone born with the wrong skin color it pretty much means I'm valued less by polite society. It's horrible and I won't stand for it. History will judge them.
So they used trademark, not copyright? That's even stranger. Surely if I make a box for a game showing the tetromino shapes in a random configuration, that could not possibly match any existing logo or company name. That would be like owning a trademark on "Nintendo" and all the possible permutations of its letters, so I could not found a game company called "Entidonni".
> edit: It didn't even occur to me to compare the time-cost of "just pay for the article", but: last I read, it's half an hour of work to cancel a New York Times subscription [0]. So, that option's not even on the table.

I canceled mine two weeks ago. It was four clicks. One annoyed me because they tried to get me to stay with an offer, but I didn't drop them because of the price.
Step zero is definitely the OTP Design Principles doc (part of the OTP distribution):

https://www.erlang.org/doc/design_principles/users_guide

There are some good texts that have more examples:

Erlang & OTP in Action - https://www.manning.com/books/erlang-and-otp-in-action

Designing for Scalability with Erlang/OTP - https://www.oreilly.com/library/view/designing-for-scalabili...

One big example of distributed Erlang is Riak:

https://github.com/basho/riak
ISO 42001: A new foundational global standard to advance responsible AI
Seems like a variation on the birthday paradox.
I can't see the popularity of the red line. How will I see the popularity of fullscreen Chromium on Windows 11 now? /j
For code golf purposes, ~n&1 works fine
You'd still need to be able to block these addresses or at least have a reputation system for them, otherwise telemarketers would just tank their own reputation for some sales, or people would pay the homeless to sign up and let them send spam via their digital inbox.
I did indeed - thanks for correcting!
> But I disagree with the underlying assumption that you can anthropomorphize LLMs. Gradient descent and backpropagation don't take place in the brain. LLMs "learn" in the same way that Excel sheets "learn".

Backprop doesn't happen in us, but I think our neurones still do gradient descent – synapses that fire together, wire together.

And ultimately, at the deepest level we can analyse, our brains' atoms are doing quantum field diffusion equations, which you can also do in an Excel spreadsheet, so that kind of reductionism doesn't help either.

> Humans are living beings with needs and rights. A person being able to legally squat in a home doesn't mean that a drone occupying property for some amount of time also has squatter's rights, even though you could easily and affordably automate and scale the deployment of drones to live and hide away on properties long enough to attain rights regarding properties all over the country.

Yes, but we can also do tissue cultures and crude bioprinting, so it's a very foreseeable future where exactly the same argument will also be true for living organisms rather than digital minds.

We need to figure out what the deeper rules are that lead to the status quo, not merely mimic the superficial result. The latter is how cargo cults function.
I mean, iirc in the USA the postal service is a consitutionally mandated service. So this could be (legally) done "overnight" simply by defining electronic mail sevice as a form of postal service. Plus that would be an email service subject to the privacy protections of the USPS.
A Shell Script for Blank Calendars
If you've been working in nothing but PHP, you assumedly know web dev. HTML, CSS, Javascript, the principles of APIs and REST, Database access, etc.

If you have strong fundamentals in all of those, the language abstractions on top of that should be very straightforward for you to pick up.

People will blast me for this, but my honest advice is "fake it till you make it". If you can confidently convey your expertise in the interview, and pass the tech screen, and rapidly get up to speed if/when you're hired, then that's all that really matters. Most job listings don't tell you the negative stuff either.

How does the company you're applying to know what you worked on at your previous roles? They don't. Don't tell everyone all your sins. Vanilla PHP and cruddy WP template work, all deployed with FTP? No, you worked on Laravel with React, and maintained the CI/CD pipelines for deployment. Don't sell beyond your means, but appreciate that if you were stuck working on garbage and they refused to let you use best practices, you have to look out for youself.
Does anybody know about a unit library in C?
Worth noting that it's points, not pixels. On my 15" Macbook Pro, full screen, it shows 900 as the line, whereas in pixels it's closer to 1800 or sth.
Ah, that explains why I stopped receiving so much spam from DigitalOcean last year. Thanks
If you are not Russian then I am so sorry for you falling for their conspiracies, Russia is not the victim here, they always think of themselvees as a super power that God himself given them the right to screw smaller countries over.

I do not think diplomacy could have solved this, only way this could have been prevented if is Kremlin would not have been so corrupt and incompetent, if Putin would have known that the 3 day operation would be at least a 3 year one he would not have started this war. (or special operation if you live in that democratic country where you are not allowed to name a war a way ).

I was just reading this https://novayagazeta.eu/articles/2023/12/28/russian-poet-sen...

Putinists explain how Russia was forced to put people in prison for their opinions.
From [1]: ”after three years of ownership”

While I generally agree with you, that data isn’t very conclusive.

JD powers also need to be read carefully to not put all problems in the same basket. Malfunctioning engine vs “Bluetooth pairing was laggy with my 8 year old android phone” can be counted in same basket if you don’t look carefully.

This brings us to the next thing which is that both expectation and complexity on todays cars are thousand times higher than 20 years ago, both from customers and emission agencies. Given that, it’s amazing how well they still work. Often better than older models.

This puts cars in its own exceptional category that is much more difficult to compare. Where’s a freakin juicer, a ballpoint pen or a pair of gloves has no additional expectations today compared to 1940. They just got worse.
Spa water confined to lithosphere for a period of 1.5-5 million years
I have not read the source but I had always assumed that this was the lovingly crafted effort of someone who is intimately familiar with the js standard making sure that some hypothetical expression like ![1] is neither odd nor even. Surely the idea that modulo is beyond developers is too horrifying to contemplate.
In some situations this is ok. But if money actually changed hands then you can’t pretend you didn’t pay someone, so you’ve got to essentially create a debt or a new check, depending on whether the new total is negative or not. And that means all those new amounts may now need a different effective date. And each state can have different rules about collecting overpayments back from employees (some simply don’t allow it). We deal with staffing companies where folks forget to fill out Friday or fat-finger something on their timesheet, and we get it 2-4 pay cycles late, mixed in with other corrections and adjustments. There’s quite a lot of specialized logic involved.
The French post office does offer an email service: https://www.laposte.net/accueil
Make it cost a few cents to send a mail with it, just like stamps of physical mail.

It's mostly intended for receiving anyway.
It's not about the $129. It's about companies like Evernote and Reddit hooking users in by offering their services for free for years and then deciding at some arbitrary point "hey, freeloader, time to pay up".

This literally happened to me a few weeks ago.

I purchased an app called Screens last year to remote into my machine at home from my iPad. It's worked great for years.

One day, the app displays a pop-up notification on open recommending that I upgrade to Screens 5 (a free-to-download app) via the App Store, which I did.

On trying to connect to my machine, I discover, surprise surprise, that the only reason for this app's existence is now locked behind a subscription.

(I accidentally purchased the subscription and tried to get a refund immediately afterwards. apple denied the request three times, and the developer can't do anything. I could issue a charge-back, but Apple could counter that by terminating my account and denying the charge-back. Amazing.)
How does anyone have trust in their government besides to provide basic services? Every single government is hellbent on mass surveillance, and the EU is currently leading the way, not the US: https://www.eff.org/deeplinks/2023/11/article-45-will-roll-b...
Personics: The cassette-based iTunes Store of the 1980s [video]
Tangent:

I've been programming for many years, and the old VI vs Emacs inside-marker/debate about which one "real" programmers use has been a constant for the entire duration.

(Because it is only one of those two. Any other is out of the question.)

Anyway, how much of this, quite frankly, non-issue turned important geek status marker is *not* about cargo culting? The programmers back in the day, real or fake, had to use some editor, right? I'm sure they would have been happy to use any editor, as long as it was free.

The programming profession is, in my not so humble opinion, a commodity profession by now.

What I mean by commodity profession: Exactly what you need to know to be a web dev (to take a prominent example) is well-defined since long.

Caring about small things like this just corroborates my point.

I think it is time for all status-chasers (?) aged 20-something to stop caring about ridiculous geek markers such as debating terminal IDEs.
Constant screen redrawing and input lag.
We go through this every few months. Here's the recipe -

1. Visit https://olcsupport.office.com/ and submit the complaint.

2. Wait for the auto-reply, followed by the "Nothing was detected" email.

3. Reply to the latter with "Escalate" in the body.

Within a day, they hammer shit in place and the block is removed.
No, but it is how first-order atmospheric drag is modeled, which may be what confused the GP comment.
There's a "polite society" thing going on.

Briefly, something like:

1) Ycombinator could not tolerate HN becoming a site known for sharing IP-law-violating content. And the people who come here by and large are smart and socialized enough to implicitly understand why.

2) At the same time, a large number of folks here mostly wink and nod at that sort of consumer infringement. And there's a society-wide bias towards "things like news are less protected", so that gets to slide.

3) But people also have a need to tell consistent-seeming stories about how things work, thus the mental gymnastics.

It ends up being similar to trying to explain why people pretend to be prudish innocents about sex. It largely reduces to "a small subset of the population goes sufficiently ballistic about what I consider to be relatively trivial stuff as to make it not worth fighting over, even if I find that to be ridiculous."

There are a lot of different versions of this that become so normalized it can be hard to notice.
Are media really rent-seeking? They create new content and analysis, for which they want to be compensated. It seems quite different to hoarding natural resources or land, for example.
Interesting mention of Sidekick Plus, there was a complete SDK for it which I don't think ever got released anywhere (I had a copy as I was working for Borland at the time). It allowed multiple documents to be open at the same time.
I just noticed that the new Zotero has a double click to zoom feature, which does pretty much the same thing. It's great!
IntelliJ (and the whole Jetbrains suite of IDEs), has one of the best VIM plugins I've seen in an editor. It's hard to say what it does differently to others, but I've rarely encountered a situation where it does something common in my workflow differently to (neo)vim. It's just pleasant to use and gets out of my way, and has a nice method of configuring whether a shortcut should be handled by the IDE or the VIM plugin when they might conflict.