skysight-inc/HackerNews huggingface dataset:
The article is great, but there is one slightly misleading bit at the start:

> The most popular encoding we use is called Unicode, with the two most popular variations called UTF-8 and UTF-16.

Unicode is a list of codepoints - the characters talked about in the rest of the article. These live in a number space that's very big (~2^23 as discussed).

You can talk about these codepoints in the abstract as this article does, but at some point you need to put them in a computer - store them on disk or transmit them over a network connection. To do this you need a way to make a stream of bytes store a series of unicode codepoints. This is an 'encoding', UTF-8 and UTF-16, UTF-32 etc. are different encodings.

UTF-32 is the simplest and most 'obvious' encoding to use. 32 bits is more than enough to represent every codepoint, so just use a 32-bit value to represent each codepoint, and keep them in a big array. This has a lot of value in simplicity, but it means that text ends up taking up a lot of space. Most western text (e.g. this page) fits in the first 127 bits and so for the majority of values, most of the bits will be 0.

UTF-16 is an abomination that is largely Microsoft's fault and is the default unicode encoding on Windows. It is based on the fact that most text in most language fits in the first 65535 unicode codepoints - referred to as the 'Basic Multilingual Plane'. This means that you can use a 16 bit value to represent most codepoints, so unicode is stored as an array of 16-bit values ("wide strings" in MS APIs). Obviously not all Unicode values fit in, so there is the capability to use two UTF-16 values to represent a code-point. There are many problems with UTF-16, but my favourite is that it really helps you to have 'unicode surprises' in your code. Something in your stack that assumes single byte characters and barfs on higher unicode values is well known, and you find it in testing fairly often. Because UTF-16 is a single value for the vast majority of normal codepoints, it makes that worse by making it only happen in a very small number of cases that you will inevitably only discover in production.

UTF-8 is the generally agreed to be the best encoding (particularly among people who don't work for Microsoft). It is a full variable length encoding, so a single codepoint can take 1, 2, 3 or 4 bytes. It has lots of nice properties, but one is that codepoints that are <= 127 encode using a single byte. This means that proper ASCII is valid UTF-8.
That is exactly the solution that I was using before making this. My first thought is that automating my manual enter-pressing could be as simple as injecting a newline into the command output every 10s or so. However I figured if I was going to make it I may as well add a bit of extra polish.
Despite have a deprecated dependency, is there any issue using wkhtmltopdf? I'm running it in quite a few projects to generate letters and invoices, and not experiencing any issues.
I read on HN that !s is a good alternative

https://www.startpage.com/privacy-please/
well, they gained control by seizing the canal then lost it due to the invasion, hence why I said 'regain'. Both the Soviet and US pressure resulted in the stop of the invasion, but certainly the USSR had an important role, if anything to distract the media from its invasion of Hungary.
Thanks!! This looks super interesting. I couldn’t find any decent solutions except princexml but I will give this a whirl

The fact that they are achieving it via poly fill sounds like a genius approach!
The thing I find interesting about revisiting these old pieces is that the debate about the merits of OOP is effectively stymied. This post and the article it replied to posted yesterday (https://news.ycombinator.com/item?id=26586829) could effectively have been written today. And the debate in the comments tends to be pretty formulaic as well. It's one of those perennial topics that generates a lot of heat from rehashing tired arguments without generating much light in terms of new thoughts.

There are a bunch of topics like this, in my own area you see the same four or five topics come up repeatedly with nothing new or interesting said on them.

I'm kind of intrigued if anyone has any thoughts on how to shock life back into these zombie debates?
In my experience, when you have a field with two popular but different options and a lot of strong opinions about which is good and which is crap, neither side is right. Both sides have merit, otherwise they wouldn’t have a following. Examples: functional vs object-oriented programming, Ruby vs Python, Mac vs Windows, AC vs DC, rock vs pointy stick.
Well, using helm certainly would have been advisable.
Slap a "free to a good home" sign on it and let the people take back what is rightfully theirs. Ever Given Day shall be celebrated every year commemorating the moment when the free market failed.

"Mommy, did you really get a shipping container full of crockpots when you were my age?" "Yes, my child. We cooked like kings for many a season."
There are only 1229 primes up to 10,000, not 1230 as the article says. Not sure whether this is a bug in the code or a typo in the article. I still remember this because 25 years ago as a teenager I spend quite some time making primality testing as fast as I could. My implementation was certainly not as naive as the one from the article - only testing up to the square root of n, only testing against primes I had found before - but not sophisticated in any way, for that I lacked the mathematical knowledge. I can not exactly remember how fast I got it but I am pretty sure it was sub-one-second, like 0.2 or 0.3 seconds maybe for the range up to 10,000. On a 50 MHz i486.
Cryptoghost is the first NFT that doesn't rely on external hosting for pictures
In high school, I built a 1-bit sound board for the Sinclair ZX-80, programmed in machine code to play musically tuned delay loops for notes. This was inspired by noticing AM radio interference as sounds corresponding to program execution. Highlight was getting it to play “Yankee Doodle” for a science fair. Think I still have it in a box somewhere, will look.
Randal Monroe was also wondering why most of the emoji aren't just modifiers: https://xkcd.com/1813/
That would be illegal and if they attempted to enforce it they would be engaging in piracy.
Riders will just use pay-by-qr-code.
Could you replace dredging with just a whole lot of flowing water? Pump water under the hull, let the sand turn into mud, have the weight of the ship push the mud to the side. As the ship gets lower and lower, less of its weight becomes supported by the sand.

The mud would still flow to the sides. You might wanna do some dredging over there to give the mud somewhere to go, and make more manouvring space. But in any case, this way you can move a whole lot of sand with very basic equipment. You can't move it far, or move it "up" but you can move it.
Exactly.
If a second canal was made through Israel, the price to pass through would fall to just above the maintenance cost.
Responsive test tool, easy as it should
Gotcha, thank you for the clarification on this! Somehow when I read through the documentation on how it works, I must have misunderstood it.

I did make am RFS:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985893

and I want to say I did the XCC to the relevant sponsors? I know I included th Debian on Mobile mailing list (they are the ones to suggest how to submit debian packages).
Canada's safety net is better than the USA but it's not as good as many places in Europe.

I lived in Amsterdam for a year and in that time saw maybe 2 homeless people. One law they had was if a building has been empty for over a year you're legally allowed to squat there and the owner has to go through a lengthy process to evict. This stops people buying investment property and leaving it empty. If this was on Vancouver it would have massively helped their housing problem as all those apartments used for offshore assets could be used by squatters (though this would bring its own set of issues).
Laguna Garzón Bridge
FBI Warns Imminent Deepfake Attacks “Almost Certain”
Here's a Jan 2008 archive link for the article being responded to: https://web.archive.org/web/20080112111747/http://www.sics.s...

I'm surprised that the original anti-Object Oriented Programming article says "data structures and functions should not be bound together" since in functional programming (if we take that as the extreme opposite of OO) they are still kinda bound together. Like if you have a JS array ['cricket', 'football', 'badminton'] it is both data and almost like a function at the same time, since you can iterate through the items and make code execute for each

For example in a webpage if there is a div id=football then you can select it using:

['cricket', 'football', 'badminton'].forEach(function (i) { document.getElementById(i); } );

In my mind this type of code really blurs the line between variables and functions
So theory is not my strongest suit, maybe someone can clarify some things for me here. It seems like these equalities that we're looking for are things like the identity laws, but also extended by mathematical operations like bitshift being faster than division by 2.

Do these equalities carry all the way into general programming, to the point where we could for example say a short loop is equivalent to an unrolled loop, and thus suggest that optimization? Would we have to come up with an exhaustive list of equivalences, or is the list actually short and well known like they are in logic (Identity Laws)?

Will we at some point basically plug Egg into LLVM and have it find new optimization passes?
Depends on your Chromebook, I have a Acer R13 and it's installed and running (just checked it). Android app's don't have a designated "runs on Chromebook" Flag as far I know, so you can't really block it.

But Chromebooks are sometimes a little bit special. I'm working on a app right now which is designed for tablets and wanted to check if I could run it on my Chromebook, because of the bigger screen (13" compared to Samsung S5/S6 with ~10") and I couldn't install it from the alpha channel. The thing was, it has a camera, a front camera, but the Manifest.xml required the default camera permission which was missing and this prevented me from even finding the app in the PlayStore.

And Slack as app is basically only the website. All the "native" apps seem to just render it (Linux, MacOs and Windows are Electron apps, the Android version feels like a WebView)
I think the conversation around OO suffers from the same problem that any major engineering trend suffers from: namely that eventually, the concept gets conflated with the way that enterprise software and overpaid consultants completely fudge the implementation of the concepts. Consultants get paid big bucks trying to convince your company that you need to be doing microservices or OO or nosql or whatever the latest fad is and that you need them to help you implement it. It’s not based on any real technical need. It’s just institutional FOMO.

OO has it’s place in the space of possible patterns to choose from based on the kind of solution you need. I think these overarching claims of superiority are missing the point completely. I personally like a combination of function and OO concepts that can work synergistically together and play the kind of role that they excel in individually.
Much of the debate or criticism of OO have been targetted at the theoretical side of object orientation, and perhaps less towards the practical implementations, which allows for some flexibility in the programmers approach to objects.

I would like to see someone do a language that enforces all of the OO paradigms and best practices on the programmer, just to see what the resulting code would look like and behave.

For instance, I'd love to see a compiler than throws a error if you violate the single responsibility principle. Much of the OO spaghetti code I've seen have been because objects are basically just structs with methods and 10 different ways and object could change state.

For practical purposes I doubt I'd ever use such a strict language, but it would be interesting to see if the result is safer and clear code. I suspect it's more code though.
The overwhelming vast majority of reasons I've heard people give for preferring Uber/Lyft over regular taxis are (1) regular taxis could not be summoned via an app or web page, instead requiring a phone call or curbside hailing, and (2) their credit card terminals were often broken so that you had to pay cash.

Both of those specific problem are solvable for most rides without going anywhere near the level of complexity described in that post you linked to that details why the Uber app is so complicated.

Most of the Uber app complexity that post gives is because they want one app that works nearly everywhere and does a lot more than just let you summon a ride from A to B and pay via credit card.

For most US cities you could cover the payment needs of most riders with something from Square installed in the car. That gets rid of a huge amount of complexity (or rather, pushes it to someone else).

That should be good enough to make them a viable alternative to Uber/Lyft for probably 95% or more of the rides in a US city.
Yes, I am very much aware (myself being a libertarian - in the actual sense, rather than the perverted "freedom is when capitalism" / "socialism is when government" sense).
Try this:

https://apps.apple.com/ae/app/rpn-30/id1451413517
The dot-com bubble 1995-2000 included multiple delivery service companies.

kozmo.com https://en.wikipedia.org/wiki/Kozmo.com

Webvan was once valued $4.8 billion.
I was wondering if it is sand, can it be liquefied using vibration around the hull to help loosen it? Something like what they use to vibrate concrete while pouring it. https://www.youtube.com/watch?v=tV4sTbpa7Hc
> Why is it so difficult to copy files to/from my phone?

Because they want you to have no choice but use their cloud storage

> Why is it so difficult to list all the files in a folder?

Because they don't want you to know what is a folder, just to type everything in their cloud storage search engine so you are even more locked in
>> and maybe Classical VB (only because I don't know exactly what they mean by that, how far back do we have to go to get to Classical VB? The fall of the Roman Empire? Is it primarily used with an abacus?)

funny enough I worked at a place a year ago who’s main language was VB6 and they were terrified of objects. Mostly exposed to it on the web side with python and php written by two new developers

Oddly some of their best code was some VB6 using OOP that someone had snuck in sometime years ago.
Penis size is not really correlated with a reduction of population.
This sounds like a great "how ww3 started" intro story for a game
The UK has nothing on the US, where they managed to con the masses into believing that lobbying isn't bribery.
We used this extension the other day for our LaunchHN [0] where we got 175ish comments. It was super useful, both to get notifications in macOS, but also to people able to page through the comments and see the read/unread ones. Definitely keeping this extension installed!

0: https://news.ycombinator.com/item?id=26540692
You can verify that the teaching materials are not really up to scratch. Even nim and zig, which have less resources behind them, I think, do a better job there. The manual is a reference manual, and it was difficult to find all the operations on arrays. E.g., the difference between Array{Int} and Array{Int,1} is not clarified from the start.

And as I said: I wrote a straight-forward backtracker. It just recursive function calls: check a possible state for the current item, and when successful, update the overall state and move on to the next item; on return, try another state for the current item, until the search space is exhausted. There's not a lot to optimize, nor is there a lot of work for a JIT compiler.

> on the most flimsy basis

I've got more gripes. Forward type declaration to name one. But I'm not spewing disdain: I just don't see Julia take a larger role in general software development.
Storing arbitrary information via RNG configuration seems improbable.
Zuckerberg Acknowledges Content Related to Capitol Riot Was Posted on Facebook
What if this became the new “invert a binary tree on a whiteboard”?
Are you an excellent developer that has spent their life towards FSF activism rather than working for $BIG_CORP?
Joe's original rant can be found here: http://harmful.cat-v.org/software/OO_programming/why_oo_suck...

I can see that Erlang and Joe's (RIP) insights about OO might conflict with your view of the world, but IMHO that's just because of the OO indoctrination people grew up with.

Recommend learning key concepts of OTP/Erlang/Elixir first, and then revisit your initial opinions.

You might even conclude Joe Was Right
The ship is twice as long as the canal is wide.
There are between 6 000 to 20 000 containers on this ship.

Thou reduce weight any meaningful amount you would need to remove hundreds or even thousands of containers.

I am not even sure if anyone would be willing to fly 4 helicopters tethered to each other, but even if they do, its going to be very slow for safety reasons.

And good like finding insurance company that is willing to cover, if anything goes wrong.

And enough pilots and helicopters, to do that 24/7 for a few months

> This is a physics problem
no it isn't
Here’s a recent interview with them https://youtu.be/VykTBPKwYnA

I’ve been considering starting a software coop to build open source versions of these middleman gig work services for a while. Would anyone on here be interested in joining one?

With so many well paid engineers I’m also surprised that there’s not more coop based tech startups in the states.
OneWeb sends up 36 broadband internet satellites
So, in an emergency situation, how should the police hail or if necessary a true autonomous vehicle to stop? The technological solutions are alarming, but so are the low-tech solutions like stingers and firearms.
It's not that dramatic:

> In 2020, the total revenue generated amounted to 5.61 billion USD and 18,829 ships with a total net tonnage of 1.17 billion passed through the canal. [1]

1: https://en.wikipedia.org/wiki/Suez_Canal_Authority#Revenues
> If you have sexual fantasies about young kids, you are a pedophile. If you have sexual fantasies about sex with corpses, you are a necrophiliac.

Yes, but simply being those things isn't something they chose any more than gay or trans people chose to be what they are. Unlike gay or trans people, acting on those fantasies would be wrong, but there's nothing wrong with just having them. There is a difference between being a pedophile and being a child molester.

Do you have any idea how many people have rape fantasies? The vast majority of them never rape anyone or want to be raped for real, it's just something that excites them sexually. Are we to condemn them as well? How about those who harbor fantasies about slavery like the aforementioned Larry Garfield?

> You can quickly think "I'm gonna kill this person", but it doesn't make it so. Most people have such a quick thought, which basically makes all of us killers.

To you maybe, but to those of us who realize there is a difference between fantasy and reality it doesn't mean much of anything. Also, perfectly normal people often play games about murdering people for hours on end.

> This is considered normal, because most of us are that way.

Is your problem that it is amoral or that it is abnormal? Or are the two the same to you?
Billboard.js 3.0 release: D3.js v6 support and new candlestick type
Note how many upvotes this article has, and how long it has been on the front of HN.

How many people have skimmed the the headlines and had this assertion register semi-consciously as a fact, whether or not they even looked at the article or comments.

Misinformation noise.
This is what I wanted to write. There's a bunch of tools in programming, as in any field. There's no tool that's right for every job or wrong for every job.

Sounds boring, but judgement is what the work is about. When you're talking about a specific system you can say "I think we should use OO for this" because so-and-so. But each system needs its own explanation.
I always miss the point of cryptokitties or cryptopunk for the reason that, even if the NFT is decentralized, the display of the art is centralized, at any moment the developers of cryptokitties for instance could change the display of any cat from the variants that are in the chain..
On bikes like that, there's a reserve-reserve trick sometimes. Sometimes, the tank is an inverted U shape so when the pickup runs dry there's still a little more fuel on the other side of the U. If the bike is light enough, you can stop the bike and lean it way over to pour that last bit over to the pickup side. Might get you another couple miles.
Is Time Travel Possible
Is time travel possible? Well, it's the question man has been asking for a long time and it's possible on the quantum level. Just have a check. Actually speaking, you are living with a lot of optical and auditory illusions, coming right from the brain for example, it takes a long time for the light from faraway galaxies to reach you. So, when you look into the sky with a telescope, you see what those stars and galaxies looked like a very long time ago. https://www.youtheuniverse379.com/2021/01/is-time-travel-possible.html?m=1
I wonder whether it has had an impact on drugs price in the streets
Amazon Walks a Political Tightrope in Its Union Fight
I managed to get 8 octaves of tones out of a ZX-81 in my youth without any extra hardware. Bit banging the cassette port audio out and running that output into line in worked. Wasn't amazing and boring organ tone at best and would use a fair chunk of the CPU. But like most thinks was a case of fellow school friends boasting about their zx-spectrum with audio, one just don't take that sitting down.
I feel like agreeing with you in the "under a year" estimate, but a month seems too short. IMHO, the real problem would be the slow start.

Based on the Wikipedia page, it looks like the construction itself took 10 years but the preparations took an additional 4. Given that "over 30,000 people were working on the canal at any given period", you would first have to build enough infrastructure for all the workers who would be doing the digging, then transport them there (plus the machines), pay them, feed them, and then clean it up once the work is done.

If that's the case, then waiting the 2-3 weeks it would take to dislodge the ship itself may make more economic sense.
Why would you want to revisit these debates, having progressed beyond them? :)

Instead of rehashing "Is OOP good, actually?", we should explore the boundaries of the paradigm by making a popular language that's based on prototypes, or that privileges composition over inheritance, or pulls apart the various pieces of OOP into standalone concepts that can be mixed and matched. If we get inspired, maybe come up with some new pattern or language affordance that's similarly groundbreaking to functions, objects, classes, message-passing, threads, or whatever. Maybe the obviously-better development paradigm of 2050 hasn't been articulated, yet.
Cisco and GR gov scandal deal: PII of 1.5m citizens for e-learning service
CNN tracks down two families ripped apart by anti-Uighur crackdowns
Yet JavaScript is much more harmful than ActiveX ever was.

Flash was an abonimation, yet you could disable it with barely any consequences. Same with ActiveX.
Have you ever thought of just accepting that you can't predict how long a project will take to complete?

It's a revelation. You get to have some hard conversations with other managers. But in the end everyone finds it easier to deal with "it'll be ready when it's ready" rather than endless missed deadlines and overruns.
Elon Musk probably has a team working on it.