skysight-inc/HackerNews huggingface dataset:
Go has exceptions too however they serve a different use case.

Sometimes an error is a problem that should be handled with granular logic and sometimes an error is something that should hard terminate that function and any parent functions until it is captured.

The problem with exceptions is that some languages don't surface that a particular function or API might raise an exception so you're often left having to capture all exceptions and having to write generic failure messages hoping that the exception is descriptive (often it isn't). Or worse yet, you fail to capture that exception and end up with your application hard terminating over something that isn't serious to the programs function.

This is why err is so widely used in Go; it enables granular logic, makes it clearer where errors are communicated and thus when they need to be handled; and enables developers to escape code or report errors in ways that are more meaningful to those who actually run the application and who might not have the ability to read the code.

By more useful error messages I mean something like this pseudo-code

function writeLog(message string) {
open(CREATE | APPEND, "/var/log/example.log")
writeln(message)
close("/var/log/example.log")
}

If you had an exception in open(), writeln(), or close() then how do you report that to the user? What state has the function been left in? Do you have to capture the exception from each function or does some functions not generate an exception (close() probably wouldn't but the others could)?

Whereas (again pseudo-code)

function writeLog(message string) error {
err = open(CREATE | APPEND, "/var/log/example.log")
if err != nil {
return errors.New("Unable to open log: %s", err)
}

err = writeln(message)
if err != nil {
return errors.New("Log open but unable to write: %s", err)
}

close("/var/log/example.log")
// doesn't return an error
}

It's clear to the end user what specifically has failed, it's clear to the developer which functions can error and ok, the code is a little uglier for it but no more so than many of the other examples handling errors / exceptions (error handling is inherently ugly).

This is clearly a bonkers example made up on the spot and it wouldn't matter too much if there was one generic "unable to write to log" message. But the concept described above has proven very useful in larger applications I've written which have needed to handle errors nested several layers deep in a way that's meaningful for end users (as opposed to developers).

Now I'm not saying Go got it right nor that other languages haven't solved this in better ways and I'm certainly not trying to advocate that Go's error handling is "good". However it often feels like most of the complaints leveraged against Go's error handling don't really understand the point behind Go's design in the first place or have other missing pieces of information about what can and cannot be done in Go.
This reminds me of my teacher in micro architecture who mocked the insanity of the Pentium 4 NetBurst pipeline. It's hard to believe today that Intel fully expected and were commited to make that stuff run in upwards of 10 GHz. Meanwhile, AMD offered tongue in cheek Prescott Survival Kits¹ due to, uh thermal hazards. Those were the days. :-)

¹ https://i.imgur.com/BYtbfDX.jpg
Isn't BSD quite similar to Linux? I highly doubt it has any of the legacy platform features they specifically call out as problematic:

"Byte sizes other than 8-bits, or non-power-of-two word sizes

Source code encodings other than UTF-8

Big- or mixed-endian (at least for computation; accessing encoded data remains useful)

Non-2’s-complement integer formats (we supported C++20 dropping support for this)

Non-IEEE 754 floating point format as default floating point types

Source code in file systems that don’t support file extensions or nested directories"
> As a EU resident i wasn't ever informed of an EU Green Deal etc.

Where are you in the EU? In Germany it was in the news a good bit – I believe it was shortly following the start of the von der Leyen commission.
Yet she never called John "Toy Story" Lasseter back? How come?
> requires patient height and weight. I could enter ‘metric’ or ‘U.S.’ values

My scales has three settings, which I respectively think of as metric, US and British: kilos, pounds and stones+pounds.
They definitely need a warrant and definitely need probably cause. And it definitely has to be within the jurisdiction of CBP, ie. they can't pull you over for running a light.

What you do have is a lot of Americans will defer to LEOs without a second thought.
Mine was TI-99/4A BASIC. I wish I had a printer back then because I probably would have printed out some of my programs and I'd love to see what they look like today.
> From the sound of it it's going to be at least a few months before any more funding arrives

The time interval sounds vague. If you had to pick a future funding outcome in the current climate... it's not very optimistic for funding early stage companies. And what's to say if some less than optimal funding terms come around, your salary won't be cut because the company needs to weather the storm? The longer you stay unpaid, the less leverage you have in the future too because the less you can afford to entertain offers and interviews with longer timelines (let alone send a lot of applications because you'll have to be working). Probably better to frontload the job search and try to get another offer.
Posted partly because it features Audrey Tang, Taiwan's digital minster and of Haskell / Pugs / Perl6 fame.
Wait, we're talking about the same company that now owns RedHat, and whose next CEO will be RedHat's CEO, right? The same RedHat that has been the number one contributor to the Linux kernel, Gnome, and many other projects for over 2 decades?
https://gist.github.com/fwsGonzo/6b12f502a3873725c17f44dc5e2...

Very preliminary benchmark C++ Vs Rust on RISCV. C++ is just in its own league. Alone.

Having been at CppCon I can attest to the atmosphere of performance first in C++.
This is IBM. The idea that now is the mask-off moment is so funny.
“Why the downvote” is that perennial question. If I get downvoted I assume it’s a fat finger (it really could be on mobile devices!) or someone disagreeing with any tiny aspect of the comment from the spelling of words to the tone or perfect logical correctness. TLDR = don’t worry about downvotes
My university’s cluster was running off of Spectrum Scale/GPFS with two sets of hardware: one from IBM the other DDN. Our half-PB expansion was purchased through DDN as their gear is more performant and not as expensive.

One of the other admins was investigating the Lustre filesystem when I left.
Yep! That one.
Yesterday I was washing the car while listening to Music with the air pods. I mistakenly clicked them and it launched Siri which for some reason it called a number on my phone through Facetime.
> much of the anti-mongo sentiment is around people who used it in 2009-ish.

So? I think this is a very plausible way of measuring how much you should trust something. There had to be a downside to the "move fast and break things" that mongodb subscribes to (i.e., add features now, think about reliability later).

As it turns out, they moved fast and broke their reputation.
They’re also very weak examples of companies that do this. For starters, Apples localization is quite on point most of the time. Facebook and Google really don’t have many features at all that are territorially exclusive.
Ah, thank you. I didn't understand that and now this all makes a bit more sense to me.
In the UK it's illegal to open someone else's mail even if it was delivered to you.
A large portion of MS employees are vegetarian because many Hindus are vegetarian. At MS Build they always have both vegetarian and Indian vegetarian options.
Celebrating 30 Years of Microsoft Solitaire
Have you tried adding the word to the keyboard dictionary?
Or, more commonly, and at my work, they leave the company with 1 months notice and there isn't time to do proper handover of the plethora of projects they babysit. Whoever picks it up ends up learning everything from scratch and stale documentation
This is not exclusive to the US. Every country's border works similar. They can do enhanced interrogation without probably cause, without a lawyer.

You're right to refuse is still intact but your request to gain entry will almost certainly be denied.
I've never been able to keep 12 AM vs 12 PM straight in my head. If I have to put something on my calendar or set an alarm for that time, I always use 11:59 AM or PM.

Is there a mnemonic or trick for remembering?
Yeah, I was looking at chroma.js a day or two back and thinking “you call it ‘t̶i̶n̶y̶ small-ish’ [0]!? This thing is 40KB, 14KB gzipped [1], that’s by no means small!”

I’d expect such a library to be way smaller (I dunno, but less than 10KB/4KB), and preferably support tree-shaking so that I can just pick out the hcl() function, for example, if that’s all I want.

[0]: https://github.com/gka/chroma.js

[1]: https://bundlephobia.com/result?p=chroma-js
It isn’t really ridiculous. The number of people that buy an iphone because of Siri could share a pizza.
The tooling is improving. It's so much better than it was. With CLion I have a modern refactoring IDE of excellent quality (just don't try to use it with large code bases like Chromium, though, ahem). Build systems have improved remarkably. We have two excellent open source compilers.

I actually enjoy working in modern C++ much more than I did in Java, which I did professionally for almost 10 years before this.

I like the idea of Rust, and followed it since the earliest days when Graydon proposed it. I like the syntax and the tooling. But every time I begin a project in it, the cognitive overhead of the memory safety features just throws me a loop. I have no doubt if I were to dig into a large and established code base using it it would click within a few days, but starting on my own... I lose focus quickly.

I do like Zig, though. It is a very nice C++ alternative.
Now I'm wondering if they'd run better through Wine in WSL.
It's one of the 'advantages' of having a relatively uncommon first name. Everyone knows who Elon, Adele, Beyonce and Barack are. I have an unusual first name and tend to go by just my first name, which works fine too. Sometimes a first name is just all you need.
It’s a survey of violent crime. So if by banking crime you mean getting mugged, yes, but if you mean a guy from India calling your grandma and saying he’s the IRS and needs her banking info, then no.
The U.S. Is Getting Shorter, as Mapmakers Race to Keep Up
Although Google Maps now fixed this, this was quite a bit of problem for the longest time. The place is Budapest, Hungary. Place names are unique within districts but not within the entire city. Entering Deák tér (tér meaning square) into Google Maps for the longest time has brought up a tiny speck of an insignificant location in the boondocks instead of the very center of the city where all three underground lines cross and the airport bus terminates. The thing is, the latter officially is called Deák Ferenc Tér... but noone alive calls it that.
Indeed, why give someone an old number. If you are concerned about meeting them again and want plausible deniability, transpose a couple of digits and swap a 1 for a 7.
“Old patch disabling Active State Power Management deleted, significant energy savings expected on some ancient hardware.”
I almost never use the "google assistant". However it has an habit of firing up while I'm driving listening to podcasts : "I didn't understand your command" (generally, at a annoyingly loud level, with that). I didn't ask you anything, you stupid. You've just misunderstood a sound coming out of the phone itself, where nobody said anything remotely related to "hey google" or "OK google". Puhlease.
You can submit a !bang request here pretty easily: https://duckduckgo.com/newbang

I've done it a few times so far.
If it doesn't matter if you miss a hire or not, why would you be going through the effort of buying a large fancy salmon and shipping it to the candidate? You could just not do that and not care about the ones you miss since they don't matter.
bad news for equal opportunity in hiring
> the 80486 is not a RISC CPU

My immediate thought when I saw the title was: "hey that is a CISC CPU, right?". I only get the chance to have the CISC/RISC dialogue once every couple of years. Most IT folks don't bother with chatting about CPU architecture any more. These were some fun discussions to have back in the day. With the price and speed that CPUs have nowadays these discussions feel redundant.
(1) keeps cropping up but these new languages are hardly "FP" or even using "FP" features. I think we give FP research way too much credit.

Pure functions? No, none of those languages can even express the concept except maybe C++ with the const keyword (which is as old as Haskell itself).

Immutable data structures? Even very modern languages like Kotlin don't really have them. You can define a data structure where the fields are immutable after construction but it's not transitive. There are read only collections but not immutable collections, without doing extra work. Maybe immutable collections will turn up at some point, there's a proposal to add them, but it'll just be a library not a language feature.

Type inference? New languages don't use full blown Hindley-Milner TI, they do much more limited TI that's designed to strike a balance between readable error messages, documented APIs, IDE performance and so on. Meanwhile the concept of TI is obvious and required no inspiration from anywhere - anyone who ever looked at source code will be struck by the repetition required.

Generics? C++ templates started being discussed in 1985, and it's again a pretty obvious concept that would occur to anyone who wanted to offer type safe collections.

I honestly can't see the huge impact FP supposedly had on mainstream programming. All the ideas its advocates try to claim for their own are either not used, or are obvious but usually not implemented the same way. My guess is if Haskell had never existed modern languages would look exactly the same.
The sad thing is that I actually vaguely remember them in the office and that earlier, as a kid, few things were cooler than the TV UFO series:

SHADO

SUPREME HEADQUARTERS ......

ALIEN DEFENCE ORGANIZATION ...

SECRET LOCATION .... BENEATH FILM STUDIO

https://www.youtube.com/watch?v=ya_9fUNstvc
Yeah, I find this article really distasteful. Being a public figure shouldn’t mean you have zero privacy.
Meant genuinely and with 0% troll: why? What does it get you that ls (-ltr and optionally |less) doesn't? I know that some people love mc and I've never...got it. I've never really asked them in great detail.

What are the 'killer features' of MC over the more "usual" *nix tools of find/grep/ls/awk/sed/vim? I'd love to know if I'm missing a trick!
Agreed.

Hence my comments pointing out that the things that most people seem to think stop YouTube from being profitable (bandwidth and storage) aren't really factors for Google.
Interesting the author mentions he is inspired by MVP.css[0]. I am in the process of changing my home page yet again to remove the current CSS framework I used. No more classes. After a few months not touching my site I find don't understand my own web site. Interestingly I still remember HTML elements I learnt in late 90s. I am sticking to styling HTML and will use one of the minimalist CSS frameworks that have been popping up on HN[1][2] of late. I see this can be used with pandoc, I just installed pandoc yesterday to see if I should use pandoc as my static site generator. Look forward to trying this out.

[0]https://andybrewer.github.io/mvp/
[1]https://github.com/dohliam/dropin-minimal-css
[2]https://news.ycombinator.com/item?id=23220081
No, they really don't need a warrant and they really don't need probable cause. I could pull out USC refs but just read https://en.wikipedia.org/wiki/Border_search_exception
The AM isn’t the main problem. It can be looked up. The issue is whose 11AM? What time zone?
It is a bit funny that Elon Musk makes cars, and this girl getting errant texts is named Tucker (her last name). By Tucker I mean Preston Tucker the American automobile entrepreneur who made the famed Tucker sedan. [1][2]

Note, Tucker also had some run-ins with the SEC. [3]

[1] https://en.wikipedia.org/wiki/Preston_Tucker#Tucker_Corporat...

[2] https://en.wikipedia.org/wiki/Preston_Tucker#/media/File:194...

[3] https://en.wikipedia.org/wiki/Preston_Tucker#Turmoil_surroun...
>>I think almost everybody in European countries knows about AM/PM

Again, as a Polish person I don't think that's true at all, certainly in Poland it isn't.
Looks super simple and nice to use, great for those working with the JAMstack building a custom experience! What are your plans for this going forward?
I'm convinced it's actually gotten worse with the 11, I recently went from an iPhone 7 where Siri only really activated randomly a handful of times a year and could set timers (Only thing I ever use it for) with a shout across a room over the sound of an oven and fan.

Now it randomly activates multiple times a week and really struggles to even pick up me talking to it right next to it.

Convinced they've switched to a less capable microphone system because assistants were all the rage in the 7 era but now I think people have realized it's not really that important.
Putting aside the topic of how easy is it to understand a trained ML model, I really hope we won't end up in a SEO-like situation.
I made a video about this for my students. Basic math behind a NYT graph
https://www.youtube.com/watch?v=w2--cCFwSbA
At the border, they need neither a warrant nor probable cause.

https://en.wikipedia.org/wiki/Border_search_exception
But none of these things are happening in US, you have double the cost of healthcare for a lower life expectancy than countries of comparable living standards who have universal healthcare.

What's going wrong with the system of perfect competition with insurance companies?
Be careful, "enhanced interrogation" denotes actual torture, such as waterboarding.
How I run my web app using Render
> You will find out that minimalist Oberon is long gone and the language in a certain sense compares to C#, D in complexity, with support for generics, untraced references, exceptions, linkage models, inline Assembly.

Generics is something I can't live without, to be honest. But I don't like C++'s implementation of generics. The error messages they generate and the whole SFINAE business make for a horrible programmer experience. Rust has the best implementation that I know of currently. Inline assembly sure is useful.

Anyway, thanks for the extensive answer. I think I understand your point of view better now.
> In the absence of context there is no best answer.

sigh why do people always feel the need to redefine words?

By any definition of the word, "best" is correct term to use here.

Here's a few definitions of the word "best", please and in all honesty, tell me why the use is wrong given the following:

• best: "In the most excellent or most suitable manner; with most advantage or success: as, he who runs best gets the prize; the best-behaved boy in the school; the best-cultivated fields."

• best: "In or to the highest degree; to the fullest extent; most fully: as, those who know him best speak highly of him; those best informed say so; the best-abused man in town."

• best: "Of the highest quality, excellence, or standing: said of both persons and things in regard to mental, moral, or physical qualities, whether inherent or acquired: as, the best writers and speakers; the best families; the best judgment; the best years of one's life; a house built of the best materials."

So if there is a finite set of possible answers and a set of criteria that establish a metric to turn this set into an ordered set, there is by definition a non-empty set of best answers. The context-free metric for ranking cities is global relevance: https://en.wikipedia.org/wiki/Global_city

And now please look at the number 1 spot of this list.

Thanks for reading.
Or auction it off, I'm sure someone will buy it. Some people are quite happy having 867-5309 for example.

Indeed I wonder if the current owner is doing this piece with the idea she might auction it

https://edition.cnn.com/2009/SHOWBIZ/Music/02/03/ebay.jennys...
How Big Tech Is Setting the Work-from-Home Standard
And yet no one discussed the idea.
Facebook employees may face pay cut if they move to cheaper areas to remote work
I would caution comparing IBM to McKinsey. Very different DNA. Also, vs Accenture\Deloitte there is a big difference in that the two don't have their own products to push into boxes in component diagrams - IBM does and execs know it. This puts it very much at a disadvantage.

Accenture, Deloitte & IBM are considered Tier 2. The BMW, Mercedes, Audi if you will.

McKinsey, Bain, BCG are Tier 1. The Lamborghini, Ferrari, Aston Martin, etc.

Tier 2 do their darndest to get into Tier 1 but the nature of the work is very different and the chasm between tiers is hard to cross just like in the car industry. Source: I've done extensive work in both tiers.
Ask HN: What are ways to make serious money playing computer games?
I know at least a dozen Bills and even more Steves but only one Elon.
From their Q4/2019 results:

Revenue Highlights 4Q19
Total Revenue $21.8B

Cloud & Cognitive Software $7.2B

Global Business Services $4.2B

Global Technology Services $6.9B

Systems $3.0B

So Watson is a portion of the "Cloud and Cognitive".

Further down, it shows just the Cloud part:

Cloud Revenue $6.8B

$7.2B-$6.8B=$0.4B

Not bad, but $400M in Watson "Cognitive" revenue isn't a notable portion of $21.8B.
I am from Poland, and while we understand 12-hour clock and use it interchangeably with 24-hour one (well, mostly old people, young people just use 24-hour clock) - nobody uses AM/PM.

In Polish it's 8 rano (in the morning) vs 8 wieczorem (in the evening).

I can't remember which is which in AM/PM, and have to check each time :)

And the issues with midnight/noon are frustrating and 12-hour-clock should just die.
Yes, you can’t have 12:01AM being in the afternoon, so 12:00AM must be one minute before 12:01AM, so it is also dark.
I wonder if anyone is working on special languages for talking to voice interfaces. Maybe a reduced grammar would allow for better recognition accuracy and reliability. And we could get more helpful corrections.

The problem reminds me of the difficulty of programming in applescript. In applescript, articles like "the" can be inserted optionally in the code, and there are lots of equivalent ways to write things, i.e. "if x equals y" is the same as "if x is equal to y". As a result I never remember the syntax, and error messages are less helpful.