skysight-inc/HackerNews huggingface dataset:
That's not how people commonly use errors, with global variables.

The way code usually looks like is this:

func foo(arg int) error {
if arg < 0 {
return fmt.Errorf("expected >0, got %d", arg)
}
if arg > 8 {
return fmt.Errorf("expected >8, got %d", arg)
}
//do stuff
}

or

func foo(arg int) error {
if arg < 0 {
return errors.New(fmt.Sprintf("expected >0, got %d", arg))
}
if arg > 8 {
return errors.New(fmt.Sprintf("expected >8, got %d", arg))
}
//do stuff
}

In either of these cases, a caller of foo() can at best parse err.String() to see why foo() complained. But there is no way that errors.As or errors.Is help with the majority of errors returned by Go programs.
Me and my friend are brainstorming with an idea to build an issue tracker that will be headless. It can be deployed using yaml files where admin can define the configurations.

System will keep track of previous configurations

History of issue data will be preserved

Configurations can be deployed from dev to staging to production

Each component in the system will have a service. For example user management, configuration management, business logic etc

It will be available on cloud and on prem and using distributed infrastructure like Kubernetes and can be deployed on AWS or Azure

We will build clients for web, Slack and teams

The system will be extensible, developers can write their plugins

This is just an idea and we are trying to get some initial feedback on whether all this make sense, are there any other similar tools in the market and are we trying to solve any problem or not?
Want to Know about Automatic1111 & Stable Diffusion functionality using Extensions, Checkout this Blog Post.
This is one of those 'common misconceptions' where I hear about its refutation more often than I encounter people who believe the supposed misconception. Much like anything talking about map projections, in fact.
> a company called Karelia Software had a $29 search app named Watson with some better features like plug-ins for improved internet search. In 2002, Apple released Sherlock 3 with features similar to Watson, making Karelia’s app redundant and eventually forcing the company to close down.

Yeah, the employees of Karelia really thought the story more worthwhile than their livelihoods.
I see you can start linking things to urls/files, curious as to if this will unlock developers adding more metadata to designs which might eventually be nicely displayed in Figma.

I have a desire to try Figma out as a project management tool, as in being able to easily visualize which screens/flows have been implemented by a developer, which ones have been updated since. I believe Figma is a good tool for that as it is visual and often already used to show things to clients.
Much of that list is exaggerated or completely false.

For example, Microsoft actually charges their customers double if they bring their SQL Software Assurance licenses to Azure!

If you read the fine print, you'll discover that SQL Server licensing is either per physical core -- if you license an entire server -- or per virtual CPU if you license a single virtual machine. That is, in typical configurations, they charge per hyperthread on VMs and per core on physical servers!

Most of my customers have 2-4 physical VMware server blades licensed per core, and then they can put as many SQL virtual machines on top as will fit into memory.

Meanwhile SQL Server licensing costs are higher on Azure virtual machines compared to on-prem physical boxes for a given amount of computer power being licensed because you can only license them per hyperthread, and then there's no hardware sharing either. On-prem you can "oversubscribe" and run 128 vCPUs of SQL VMs on a 16-core / 32-thread server and only pay for 16 SQL licenses. In Azure, you have to pay for 128 vCPUs!

Despite all of the above, Microsoft claims that "customers can save up to 80% by using Azure Hybrid Use Benefit"! It's just not true. I've run the numbers with various reseller discounts, enterprise agreements, etc... and it always turns out Azure-hosted SQL ends up being more expensive than on-prem.

Okay, okay, the above is not entirely true: there is also the option of licensing an entire physical server in Azure via "Dedicated Hosts" on a per-core basis. Then (and only then!) you get the original on-prem licensing model. You still can't oversubscribe however, so you're still very unlikely to achieve the same level of consolidation and cost efficiencies as on-prem.

Another issue with dedicated hosts is that the smallest dedicated 'v5' machines now have 60 cores, which is pretty huge, and getting bigger all the time. Utilising AMD's EPYC 9004 series will probably mean licensing 192 to 256 cores, minimum, Enterprise Edition only. Oof.

Similarly, if you compare PaaS offerings like Amazon RDS for SQL vs Azure SQL Database or Azure SQL Managed Instance, you'll find that AWS is cheaper for a given amount of performance. Azure SQL MI especially is ridiculously expensive for what it provides.

If I didn't have to keep working with these people, I would report them to our government's customer protections agency. What Microsoft is doing is very deceptive to the point of being illegal false advertising.
The president who set up this constitution is the only president who stepped down on his own after losing a vote at the Senate. I think you are a bit weak on the intricacies of the French political system/history, not even mentioning the fact that if you want to play that game, pretty much any political system was never self-generated and was by definition kickstarted by another system previously...
There is a browser on that thing. There will be generic 3d viewers that can access content over the internet. I think you can display what you want one way or the other.
That they don't want porn to be the centerpiece I can understand. That's very problematic or outright illegal in most parts of the world.
Seems like you want to avoid calls if possible. If not then to me it helps to think in packages. So there is no "I need to make a phonecall". There's option A - "I make a phonecall and the then I have this" or "I don't make a phonecall and there are those consequences". What's the key to me here is that both options are perfectly fine. I.e. "suffering + some reward" or "no suffering and no reward". Or sometimes both options require some suffering. That is not a problem though, that is life.

But suffering is really something different without anxiety. If it's unavoidable anyway there's a peace about it.

And I'm sorry if I come off as an armchair diagnostician, I have no clue about your life obviously, it's just that this kind of thinking made such a big difference to me that it feels bad not sharing it.
I was about to chime in about A=432Hz and stuff!

Not to mention training for absolute pitch on the chromatic scale has a heavy bias towards typical western music.
Yes. If you want to go on a fun legal adventure, sue them.

I used to run a legit DMCA takedown business and tons of competitors would just mass spam anything even remotely matching because their tech was trash.
Our software instead was accessing every infringing link before sending a request and requiring some human approval.

Most likely (I never worked with IPFS so no idea about it) they found those links linked by someone on some other page and believed the information on those links - or they just wanted to shut you down.

In practice, almost no-one wants to go through the hassle of actually suing you (especially if you're a 13 year old from another jurisdiction who makes 1k per month in ads on warez -what money can they expect to get from you?) so it's either a very large customer with money to waste (think Zumba Fitness big) or it's just an empty threat.

Unfortunately DMCA law is insanely bad as it's forcing compliance from small actors or you're risking legal action - but what can you expect from a government lobbied by copyright owners.

I run some website with user uploaded content right now - and I've implemented an automated takedown form which waits less than 24hrs from each takedown request and then automatically remove the content automatically.
does that work with "people with guns are potential killers" in the US ?
Germany the state - indeed, but German as a culture/language/nationality(in the contemporary definition) was definitely there.

Same with Italy, which wasn't a single state until the mid XIX century. Over to the east states lost independence and remained so for hundreds of years, only to re-emerge in the XX century.

My point is that state as an entity doesn't fully define one's identity.
Like Godwin's Law, every discussion of Vim on HN will inevitably tend towards complaining that it doesn't have features that it has shipped with 10-30 years.
FsF have been taken over by corporatists from the open source movement and is shell of it's former self
The problem is that the first-level error in most Go functions is fmt.Errorf(some error message, some args). The idea of pre-allocating an exported global error object (like io.EOF) is very rarely useful, and error structs are very rarely used either, because they require much more ceremony than just returning a fmt.Errorf() (or even an errors.New()) on the spot. But errors.Is is only useful if you take the first option, and errors.As is only useful if you take the second option.

So, in practice, neither errors.Is nor errors.As are terribly useful, and %w just gives you a false sense of usefulness.
You always get only a really tiny window of information, selected by your medias, about foreign countries. (It doesn't matter which receiving country you are in, it is a general principle, not just about the USA).

In France, we almost only hear about other countries politics when there is a chance for a far right party to gain something. As far as all other domains are concerned, we may from time to time get a funny/shocking miscellaneous news item, and that's it.

Also, images/stereotypes about a country last a long time, long after they have stopped being true.

Ironically, perhaps the only emitting country that differs a bit is... the USA, for probably most countries over the planet are flooded with information and contemporary culture from the USA.

For example, to get back a bit to the original subject, people may know the American police and justice system better than their own. Like, French people when they are arrested would believe that they have enforceable rights and that rigorous processes are respected. Ah!

Once, in custody, I even had the impudence of requesting a lawyer as I was allowed to. LOL, no way. And it is not simply a problem of a rotten police: the prosecutor, the judges, they are all covering this up, it is the whole police+justice system which 'works' like this.
Schumer knows nothing about the topic. He does have corporate consultants helping him out, with wallets in hand.

This is being driven by the big companies, seeking to erect barriers to competition.
Can you provide examples? if you ask explicitly some toxic ingredients and stuff.... yeah I doubt we can consider the "AI" to be in direct fault.

If a kid asks "how do I bake cookies for my family" and the AI proposes to add some cyanide into the mix... yeah we have an issue.
> I have had well-educated French acquaintences telling me for a decade that France is ripe for a new system of government

First, this is not "well-educated French acquaintences" so much as it is supporters of Melanchon's LFI political party, who explicitely campaign on the idea of ending the 5th republic to start a 6th where all problem would be magically solved.

Second, the reason I hate his proposal, is because he explicitely refuses to give any specific detail on what the 6th republic would be. He claims it would be "decided by the public" but there is no reason why a pre work couldn't be done BEFORE. In effect, he pretends to be saying "we will end the 5th for a better 6th", but what he's actually saying is "let's end the one we have now instead of fixing it, and replace it with something I will have the power to decide, you must accept to throw it away without knowing what you will get in exchange or how it will be made but trust me it will totally be better and I will totally let the people decide".

Our 5th republic might be flawed, but I'm not putting it in the trash without any idea of what we will get in return, that's brexit referendum level of flawed.

And I will always be weary of someone who claims to have a simple solution to a complex problem, on the condition that I give him power over me, especially if another condition is that I cannot know what said solution is before making my decision.

Third,

> the 6th in its history

Would be the 6th republic sure, but absolutely not the 6th "system of government", it would be like our 25th or something ?
Finding an expensive apartment vs. not finding an apartment at all, really?

Say you are single, have some experience and get low-balled into a CHF 100k contract. Not counting 13th salary this translates to CHF 7.7k per month gross / CHF 6k net (before health insurance). I.e. at up to 1/3 of your monthly net you can spend up to 2k per month on an apartment. There are plenty of those to choose from inside Zurich city, even if some might be small for the price or have other drawbacks. You can find cheaper/bigger/nicer easily by expanding your search radius to the (extremely well-connected) suburbs.
I think apple forcing using metal is a mistake. They don't have moat here - nvidia has with CUDA. All those CV researchers using mostly CUDA or OpenCL and they are not gonna learn metal because they probably not in even Apple ecosystem. Apple dropped ball on OpenCL.

Plenty of useful algorithms and GPU computing frameworks but barely anything available with metal backend. Libraries like OpenSYCL, OpenCV, Open3d, PCL don't have any Apple GPU backend.
Same. Also Apple payments are great for subscriptions, as like PayPal, they provide a control center to cancel subscriptions. For things like streaming services where I know I only need it for a month, I cancel them within seconds of signing up.
We celebrate the revolution while ignoring it went terribly, being in terms of rights, economy or basically anything else, and we happily put an emperor on the throne less than a decade later
Economically right-leaning but culturally left-leaning, he's let in tens of thousands of migrants, does not expel them (cf. the "OQTF" stories pretty much every day), and on top of that, uses taxpayers money to fund them throughout the country.
> The trade-offs between different projections are rarely discussed

And?

The trade-offs between longpolling and websockets are rarely discussed outside of very small cohorts. The tradeoff between wankel-engines and piston-based motors are rarely discussed. The tradeoffs between oak and pearwood are rarely discussed.

That's why our society has division of labor and people becoming experts in their topics.

And I am pretty sure experts on cartography have discussed the different merits and tradeoffs and converged on Mercator for a reason. I don't know what that reason is, and I don't care. It works, I can use it, and as long as no one can point out a tangible problem with it, I see no reason to worry about it. Same as the cartographer doesn't need to know or care why I decided that the chatapp he installed uses longpolling to communicate with the backend instead of a websocket. Same as I don't need to know or care why the carpenter who made my desk used oak instead of pear or rosewood.

And seeing countries as smaller or bigger than they are isn't a problem in my eyes. I can reasonably expect an educated person to know that maps are 3D->2D projections and are thus distorted. If I want to know the exact size, I can always look it up. I don't have a more or less favourable view of a country or its people based on the countries apparent size on a map.
I did “false object” programming with C, back in the mid-90s. I never read this book, but we came up with similar approaches. I got the idea from QuickDraw GX. I passed around structs, as “nouns,” and some had built-in “verbs.”

I used function pointers, and these created kind of a “poor man’s vtable.” Not exactly “polymorphism,” but similar.

I needed to do it for a modular imaging peripheral SDK. Back then, the only reliable way to cross an external module boundary was with ANSI C (stack conventions).

It worked quite well, as they were still using the same SDK, 25 years later.

WFM. YMMV.
Everyone who can afford it you mean?
Software Engineering: A Look Back and a Path to the Future
Ah ah like when we used to say :
Russia, China and North Korea exist on completely separate spectrums.
I run goaccess on a cron job and have paired it with a MaxMind GeoIP database so that you can see where people are coming from etc.

https://goaccess.io/
Technically they're correct. The same way as users of toilets are potential terrorists.
Another problem is how people define civil rights. We're past the point when „civil rights“ or „human rights“ had an universal meaning.

You want democracy? Good. You want to limit corporations to make sure small businesses stand a fair chance? Ok. You want to touch personal property, cancel opponents or abolish borders/police/military/etc? Russian boat that way.
SocialGouv/e2esdk: SDK to build end-to-end encrypted web applications
Honestly the west wanted for China to be more like us but in the end our power hungry politicians made us more like China. And we are on track to be even worse because there are some morons who are actually in favor of police state and “democratically” vote to be policed by the goverment and their cronies.
I imagine you would get a lot of blank stares with that POV, at least from folks with working bullshit detectors (like young kids that haven’t been conditioned to “modern” industry practices).

I found the article a great example of the kind of crap that passes for programming these days.
Yes, although you need to make sure it doesn't get optimized away.
Random shot in the dark: if anyone in Ireland wants 3 IBM pcs from 82, hit me up! (only two monitors)

"@".join("three", "theelous3.net")

also have almost all parts for a compaq portable ii
What are you talking about? When has “the left” been in favor of eroding the access to, or quality of private and secure communication in a comparable context?
Unfortunately it takes time and experience to filter out the hype and marketing but hype and marketing usually acts against good experience. I thought something is wrong with me when a thought came to mind that (early) no-sql really really could use relations. People said I'm silly for trying to make no-sql sql-like.
I seem to remember I was on the FBI watch list for subscribing to Linux Journal back in the day.
Storing counts as processing under the GDPR; the definition is in article 4. It's not hard to find.

> ‘processing’ means any operation or set of operations which is performed on personal data or on sets of personal data, whether or not by automated means, such as collection, recording, organisation, structuring, storage, adaptation or alteration, retrieval, consultation, use, disclosure by transmission, dissemination or otherwise making available, alignment or combination, restriction, erasure or destruction;

https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CEL...

One can use the “legitimate interest” basis (recital 49 may be relevant here) or “compliance with a legal obligation” for logging.
I had a similar experience cancelling Prime. They used some really ugly patterns such as making cancel links as obscure as possible while adding big CTA buttons to try to keep me subscribed.

I tried to cancel a subscription I had recently for a cosmetic product and the website literally told me that if I wanted to cancel I had to call the company and explain why.

I'm surprised these patterns are legal to be honest. If I don't want to pay for something and I have no contractual obligation to continue paying it should be a simple "cancel" -> "confirm" journey. Anything more and it starts to feel deceptive and a little fraudulent.

I've learnt my lesson though. I put all subscriptions on burner cards now and simply cancel the card when I don't want the subscription anymore. Much less hassle and all my subscriptions can be managed from a single app.
It's the second, younger generation of devs who are realizing that "complexity kills". Those of us who started in 2000's have already seen this. It's a natural cycle. We are seeing a spring-back to monoliths and away from micro-services and crazy tooling chains.

It was completely unnecessary, and most importantly, cost the industry a fortune. If you are older, you have been wondering why you need to work more to achieve less. To me this has been demoralizing, and actually put me through some tough cycles of depression. I no longer enjoy this job. I used to DO things and walk away from my desk every day having a sense of achievement. Now it takes 3 days to set up your microservices locally just to reproduce a bug, apparently because your system with moderate traffic needs to look like Shopify.

Bad example - Shopify is a monolith.
Great recommendation, I read this today and compiled some WIP notes if someone wants a sparknotes version: https://taintedcoders.com/rust/rust-for-rubyists/

I've been learning about Rust game development with some friends after being a long time Ruby developer and am looking for better ways of explaining the low level stuff to high level rubyists.
> Russia wanted West to approve it's greed to get additional territories

USSR != Russia

> Only Hitler was ready to sign such agreements.

Im pretty sure Austrians, Czechs and Slovaks would disagree

> former gangster

Maybe he was just street smart :)
I like Helix, but I found it very laggy through ssh, where vim is quick enough.
Doesn't GPS have to have an antenna on the outside of the hull for reception? If that's so, then GPS requires puncturing the hull, or widening an existing puncture, which sounds like something that requires awfully good justification.
"The devices can range from $15 to $300, and many people need them only a few times a year."

What kind of thermometers do you need in the USA to measure a common fever??

They are less than $5 in EU [0], but I'm sure it's because of our "higher taxes" and "long waits".

[0] https://www.amazon.it/Pic-Family-Termometro-Digitale-Pezzo/d...
and whether plain char is signed or unsigned is unspecified.
The author did mention emacs in the previous article where he talked about editors.

> The reason I didn’t stick around Emacs was basically because of its runtime choice, and ultimately, its Lisp ecosystem. The Emacs community is one of the best I have been talking to, and they have really, really talented people working on insanely complex topics, like turning Elisp code into native code (via C), including Emacs itself. But even with all those optimizations, the editor was still feeling too slow, and has a lot of background that you can feel. All the abstraction layers, all the Lisp macros (oh no), etc.

https://phaazon.net/blog/editors-in-2022
Another hack : just pick one thing from the list and do that really well. All the rest is a bonus.

Another one : learn to say no -and this is a big one and difficult in some cases- but setting boundaries can help. Some people just never communicate that they are swamped. Ask your manager or higher up on what they consider a good days work and how it differs from your experience.
The rise and fall of the third reich. Nazi Germany history tends to be looked from a far and trivialized, with phrases like "oh he attacked russia in the winter, what a dumbass", "it was another totalitarian government that got out of hand".

This book gave me a proper example and details on how horrible things begin, continue and end.
> most restrictive ecosystem we’ve ever seen

I get what you are trying to say, but this just isn’t true.