skysight-inc/HackerNews huggingface dataset:
This is just par for the course on HN. Only engage with the weakest responses to your comment. Do not engage with anything providing a decent rebuttal. Makes your thoughts look more solid and the “opposition” look worse as the thread develops.
With tracing libraries, e.g. https://opentracing.io/
Do you object to the “cis people are also weird, gender is weird” bit? Why? It’s always seemed very weird to me that the vast majority of people DO align with gender roles and DO enjoy the sexually dimorphic body they have, even though that body had a 50-50 chance of being the other sex and cultural ideas of gender seem to be pretty randomly assigned (the clothes men and women are supposed to wear change over time, for example). Why aren’t more people unhappy because they are not the other sex? Either there’s something innate that tells you you are a certain sex and makes you want to imitate others of that sex - in which case obviously it can go wrong, hence transgenderism, and that’s a completely neutral thing to happen - or it’s all cultural brainwashing and we might as well let people choose their bodies and gender expression anyway.
Is there actually an offical list of stdlib functions compilers are "permitted" to inline - and why shouldn't they be able to do it for any such function? If they're statically linked I can't see how it matter, you're just saving on some machine code instructions to push arguments to the stack and pop them off again (plus the instruction pointer jumps) surely?
If you don't automate, don't document and don't check that it is actually working your process from the get-go it is only your own fault, especially when working on industrial scale like this.

Rotating the certificates constantly works for personal websites but it is not ideal in places where one can't easily update things - like behind corporate firewalls or where corporate processes permit updating/replacing things only in fixed cycles, which are often much longer than 90 days.

Don't remember the Let's Encrypt root certificate expiring fiasco from year ago? Granted, that wasn't really Let's Encrypt's fault but it shows well that these things can be a tad more complicated than just running a script every 90 days.
Ask HN: How risky is it to go with a freelancer to build a website?
I have a friend who has a small Shopify store. They now need an extra layer of complexity that they can't fully get with Shopify. They are planning to get a website built by a freelancer and asked me for advice. My reply was to delay that for as long as possible since it's costly and risky and deal with the extra complexity by doing some tasks manually so that they have control over their site. Am I overly pessimistic ?
The original argument was that Japan imports all of its energy; nuclear is no different to fossil fuels in this regard. You raise plenty of other interesting issues, but don't address the question of energy sovereignty.
This is just insanely wrong-headed. Tests with no code are always negative value, the time it took to write the tests. Code with no tests might also be negative value, but it at least has the possibility of having positive value.

Tests are great and TDD is great for some people, but the whole point is to write useful software. It's important not to lose sight of that.
I've this. It reminds me so much of the type of little experiments that people would create in Flash in the early 2000s.

It's a real shame there isn't the equivalent combination of development/graphics/animation/distribution that flash allowed. The creativity it enabled was outstanding and so accessible to get started (pirated copies were so ubiquitous). It had such a shallow learning curve. I kind of long for a return of that type of tool.
Runs fine on my iPad Air 4th gen, FWIW.
Not eligible
I seriously doubt it's a scam as the flagship medallion fund is only available for insiders (people who actually work at rentec and know how it works).
> Germany is also not turning coal plants back on

"Ab Oktober werden insgesamt zwölf Kohlekraftwerke mit einer Leistung bis zu knapp sieben Gigawatt zusätzlich Strom für das deutsche Netz zur Verfügung stellen."

From October, a total of twelve coal-fired power plants with an output of up to almost seven gigawatts will provide additional electricity for the German grid.

https://www.handelsblatt.com/unternehmen/energie/stromerzeug...

> Gas use percentage wise is pretty much the same as 10 years ago.

The very chart you cite has gas use almost tripling from 1990 to 2020, from 36 to 91.

> the collapse of nuclear in France

There was no "collapse" of Nuclear in France. This counter-factual talking point has been corrected so many times it isn't funny any more. What happened was that France scheduled maintenance work that had been deferred during the pandemic. This was planned, because with nuclear power, you can plan things.

The reason that it was planned for summer is that that is when both energy demand is at its lowest and otherwise not-so-stellar renewable production is at its highest.

Unlike renewables, which are mostly unpredictable, and the little that is predictable is bad: that they produce far less energy when it's needed most.

And even the Twitter thread you cite (which also incorrectly speaks of French "outages"), admits that a whopping 1/3rd of the reduction in nuclear production was due to Germany turning off plants.

Also, you might want to take a closer look at the chart you cited. The still very modest drop in coal you spotted mostly coincides with a drop in total energy consumption, making the relative reduction even more modest than it already is. So we just used less energy overall. Whoop-dee-doo. And coal use rose again even in 2021 in absolute terms, so before the war.
Measuring code quality is always fraught with issues. That said, I could imagine that code bases that allow for swearing generally have a more honest and open communication culture, so swearing may be an indirect indicator of this. Which may be a better explanation than the hypothesis that "the use of swearwords constitutes an indicator of a profound emotional involvement of the programmer with the code and its inherent complexities, thus yielding better code based on a thorough, critical, and dialectic code analysis process."
Abstract:

> One of the most fundamental unanswered questions that has been bothering mankind
during the Anthropocene is whether the use of swearwords in open source code is positively
or negatively correlated with source code quality. To investigate this profound matter we
crawled and analysed over 3800 C open source code containing English swearwords and
over 7600 C open source code not containing swearwords from GitHub. Subsequently,
we quantified the adherence of these two distinct sets of source code to coding standards,
which we deploy as a proxy for source code quality via the SoftWipe tool developed in our
group. We find that open source code containing swearwords exhibit significantly better
code quality than those not containing swearwords under several statistical tests. We
hypothesise that the use of swearwords constitutes an indicator of a profound emotional
involvement of the programmer with the code and its inherent complexities, thus yielding
better code based on a thorough, critical, and dialectic code analysis process.
Running an xrandr script with ’--scale’ when you plug in the externals works okay for me. I have a 4k laptop monitor and 2 X 1k externals. It's perfectly fine for work use cases.

This is on i3wm btw
It is always interesting see a large company lurch into action when they have to execute a series of high stakes manoeuvres that falls outside of their documented procedures. Even more interesting when they charge a low level employee to action it.
Interesting! I'd say:

<font> provides no structural or accessibility information. It was only there for styling purposes.

<dialog> provides structural and accessibility information plus interactivity that previously required JavaScript. It comes with default styles but that's not the primary reason to use it.
“This comparison was done by running multiple hypothesis tests, such as the Kolmogorov-Smirnov test. These tests, combined with our visual analysis of the data yielded the result that repositories containing swearwords exhibit a statistically significant higher average code-quality (5.87) compared to our general population (5.41).”
I'd like to hear your thoughts on [[peruvian bull]].
Passwords.google counts 577 but I have a seperate set in firefox. Like everyone else that "knows" this many, there's a system. The major accounts don't have a system, I have around 25 accounts with 2F enabled, plus a few financial accounts that all have uniquely created passwords. I absolutely do use a password manager. I don't need to rely on my system, but I will never use the auto-generated passwords.
Writing our own League of Legends probuilds
For me switching between code and tests is a context switch. TDD approaches that I'm familiar with encourage frequent swapping between them which really drains my productivity. It's much easier for me start something and hyperfocus than it is to swap back and forth.
So the topic was basically about extending nuclear only in response to the short-term situation? Not about reevaluating it as a valid green energy source?

> Germany wants to safe the whole world by "going by example". So instead of thinking pratically and realisticly "we" try do to things ideologically.

This is so strange to me because my view has always been that Germany is this rational pro-engineering actor. Narcissistic and superior, but nevertheless logical and calculating.

The idea that a bunch of windmills are going to power all these factories? That all the gas is somehow greener? I mean we know how this discussion goes - the amount of energy needed for that level of industrial output is just too big for non-greenhouse gas emitting sources. How exactly do they respond to that?
I think it’s certainly a possibility. And the reality of this has been quite the discussion point during our small company’s tax and budget planning.

The tinfoil hat side of me wonders if this was done to possibly provide cover / a reason to do the layoffs. Someone lobbied for this. Congress had bipartisan support for extending the R&D carveouts for software development last session. Yet they didn’t. Why not?

They probably just ran out of time in the lame duck session… but still, why not go for a bipartisan win? Perhaps could be that tech companies are the ones legislators are comfortable sacrificing at the moment, although it seems they’d want to attack the big tech giants and not impact every company doing software development. I don’t get it.
You realize it is Sunday, right? And that probably a lot of relevant people are not in the office today, even if the techops grunts who are on call are scrambling.
No, they have some equations that match the observed data extremely well, up to interplanetary scale, and are the basis for a lot of technology that we use daily.

Now there are some discrepancies between what we expect and what we measure at galactic scale. A very popular hypothesis is that these discrepancies are due to some dark material that we haven’t been able to observe otherwise.
No, global warming is not about prediction.

A consequence of a higher global temperature is that the frequency of natural disasters will increase and their severity will ne amplified, but that's not the same as predicting anything.

An argument can be made that it's already killing people, as both frequency and severely of fires, heat waves, draughts, floods, etc has significantly gotten worse within the last 20 years. That doesn't mean that all deaths to natural disasters can be attributed to global warming for obvious reasons, but logic dictates that by increasing the severity of the event, at least some of the harm can be attributed to climate change. Singling anyone out is gonna be impossible however.

For the record: the increased frequency and magnitude of disasters is a pretty tame side effect of global warming. There are much bigger long time issues for farming, biodiversity and toxicity in water.

https://climate.ec.europa.eu/climate-change/consequences-cli...
The DVD version was the one to have.
The same is clearly true of economics and philosophy as well.
It boggles my mind every time I read someone's assessment of chatgpt that concludes with: it currently sucks at this niche task, guess AI sucks after all, job secure.

At the current rate, your job will be taken by an AI as soon as someone cares to do so. That's so abundantly clear, to not recognize this is to live in denial.
The feature in Matlab that is great for this is the 'workspace' panel- and it's something I love most about the Matlab IDE.

being able to watch your variables as the program executes, see what was allocated, see what wound up being stored in them, if there were matricies what size they are and being able to stop and open them up and check data, see data types at a glance etc.. really helps people who are just getting started with understanding imperative, procedural code.

There used to be a Python IDE that had the same feature called Rodeo, but it has been abandoned.

There also used to be a Julia IDE called Juno which was excellent at this as well, but it also have been abandoned in favor of the Julia VS Code extension, which has similar features.
AI tool that creates UI, how Figma builds product
I've not come across his work before and am rather enjoying the deck. Would anyone recommend other analysts who also look at macro-economic trends through a technological lens?
Hmm. Which MBP is that? As far as I can tell, even the oldest and slowest MBP from 2018 can run Ventura.
I wish there was something like visual 6502 for Intel 8086 http://visual6502.org
I can recommend kmonad for the same use cases full-heartedly.
With Linux, Windows, Mac support and nice docs.

https://github.com/kmonad/kmonad
cute quote, but meaningless. ask anyone who lived in a communist/ex-soviet state which is better. also why [over 100,000 citizens of east germany](https://www.berlin.de/mauer/en/history/victims-of-the-wall/) tried to escape, many dying in their attempts. its without a doubt which is better.
The most enjoyable programming experience I've ever had, hands-down, was writing Clojure in LightTable, an IDE that allowed line-by-line inspection/execution, which sounds like what you're talking about.

The project looks like it died unfortunately, but I think they did end up adding Python support before that happened. Might be worth checking out.
I think they've been bad stewards of that project since they stole it from that guy. it had promise but they refused to add basic features
Well yes, the source you cited to support your claims only explicitly rebuts your claims somewhat incompletely.

But it certainly in no way supports your claims.

¯\_(ツ)_/¯
"setjmp" and "longjmp" are the mechanism for implementing exceptions in C, i.e. they are just another form of writing "catch" and "throw".

The implementation of exceptions, i.e. of jumps over multiple levels of nested functions and blocks, is much simpler in C than in C++, because there are no destructors that must be called when unwinding the stack, so it is enough to restore the CPU registers to the values correct for the program point where the exception must be caught.

This is needed because at the point where the exception is thrown it is not known whether any of the nested functions that must be skipped has modified any of the registers that a function is expected to preserve and where the original values of the registers have been saved.

Any kind of exceptions can be easily misused, which is why it is recommended to be careful with the use of "setjmp" and "longjmp", but they are not more harmful than the use of exceptions in any other language.

The only additional problem of C is that since there are no implicitly called destructors, like in C++ and similar languages, in C the programmer must do what the compiler would do in C++.

This means that if the nested functions that are skipped by a "longjmp" have allocated heap memory, opened files or sockets etc., such resources must be freed in the exception handler marked by a "setjmp".

Therefore the C programmer must keep track of the resources that might have been allocated in the nested functions, e.g. by recording the allocations in some global table.
Yeah what a weird article. I've been pretty interested in Crypto & privacy for years and have never heard of this service.
How so? I hardly have to interact with it. If I need a new dependency, it’s a new line.

Node or Pip will found innovative way to break in that same scenario.
While some programs/libs (most notably libjpeg) use setjmp/longjmp, I tend to avoid them:

* Does setjmp/longjmp save/restore all registers (eg simd) of modern CPU variations? Can incosistiences happen here?
* As a goto, it restores some context (registers) but not others (memory), which can be counterintuitive. Does it work with volatile variables
* Does it play well with less standard C features like attribute(cleanup) or with C++ features like exception handling or class destructors? To avoid issues, it may be best to stick to very procedural and basic C when using setjmp/longjmp?
* Except registers and memory, there are also IO, FS, Net (at least) contexts, and these are not restored (cannot be really), so this notion of "restore certain vars to their original states" might not work well with certain types of code

Bc some programming gods recommend using setjmp/longjmp, my hesitance is likely unfounded.
Reasoning in terms of dimensions is such a powerful tool. I wish I had acquired this type of thinking earlier when I was a student.

Dimensions are the equivalent of typing in programming. It can help you write valid programs without having to run them in order to verify it.
Would you support a woman having breast reduction surgery, or would you say “sorry your body doesn’t match your mind; get therapy”?

I suppose you can argue the tissue here is not “healthy” because it’s causing physical distress for the woman, but the same seems to apply to a trans person. Distress is never ‘just’ mental, it has physical effects on the body (and vice versa - pain is ‘just’ mental). The decision of what’s healthy doesn’t seem so simple to me.
> For instance, the Esc key does not close non-modal dialogs by default

Modal dialogs are the ones that pop up on the screen and take over the main experience. Those come with escape key. I think you have to program the click-away with JavaScript however.

Non-modal dialogs are uncommon, but basically they are more like menu pop-ups that can be ignored when open, so no need for escape key.
I don't know about git, but github is able to do smart diffs with .ipynb files.
Not asking this to distract from the problem but can you link to the raw version of a specific commit/ref?
Yes, that is exactly my feeling. There are a number of dimensions to be covered, like code resolution, the representation of more complex objects (including prior states), visualization etc. Thats before we go into esoteric stuff like C++ bindings.

The "debugging/scripting a data pipeline" task is somewhat orthogonal to building applications or exploring data but these days it is something alot of people are effectively doing.
First thing that came to my mind was what is considered quality code. Here is an excerpt on how they filtered high quality git repos from Github based on number of stars:

> However, one can assume that repositories which are of interest to people and are more widely used at least exhibit a decent level of code quality. The 4 star boundary was chosen arbitrarily. The rationale behind that was only based on the assumption that repositories are most likely pareto distributed according to stars and quality, meaning that even excluding repositories with only a small amount of stars will exclude most GitHub repositories and yield more high-quality repositories.

What do you think? Are these assumptions correct?

Edit: added a missing word
It's not an attempt at a gotcha. Making that assumptions probably tells more about you than the comment. I pointed out that "free" studies have numerous costs involved regardless of what you call it. The alternative cost being the major one.
Is there a valid reason for this? Like their code not running on the hardware anymore or is it just for profit? Do you at least get security updates?

Some kid somewhere digs up a rock under gunpoint and we're expected to throw it out as soon as something shinier comes along, disgusting. It's because of companies acting like this we need regulations on support and right to repair.
TDD agrees that you should only test observable behaviour. There should be no need for you to implement a large chunk of your application for the first test to pass. Are you writing many tests before you begin implementation? TDD promotes that you start with just one.
Layoffs should be done once.
AI Maid of Honour Speech Generator
They could be communicating cryptically under the guise of well formed English phrases and we would never know.
Germany had only three nuclear power plants in 2022, so 4 GW. And since they could only serve about 0.5 GW of peak demand, Germany needed to reactivate coal power plants regardless.

Furthermore, the NPPs were planned to be shut-down years ago, you can't flip a switch and keep them going. They have no fuel, no staff, no certifications. Refueling the last NPPs would have required to take them offline for several months, right at the time Germany needed electricity the most. And the other NPPs that were decommissioned are gone forever, even if they weren't in deconstruction, there are countless of obstacles that won't ever bring them back.