skysight-inc/HackerNews huggingface dataset:
I know those questions are rhetorical, but to answer them anyway:

> > Nice syntax

> Is it though?

Before the heredoc syntax was added, the usual approach was to use a backslash at the end of each line, creating a line continuation. This has several issues: The backslash swallows the newline, so one must also insert a semicolon* to mark the end of each command. Forgetting the semicolon leads to weird errors. Also, while Docker supports line continuations interspersed with comments, sh doesn't, so if such a command contains comments it can't be copied into sh.

The new heredoc syntax doesn't have any of these issues. I think it is infinitely better :)

(There is also JSON-style syntax, but it requires all backslashes to be doubled, and is less popular.)

*In practice "&&" is normally used rather than ";" in order to stop the build if any command fails (otherwise sh only propagates the exit status of the last command). This actually leads to a small footgun with the heredoc syntax: it allows the programmer to use just a newline, which is equivalent to a semicolon and means the exit status will be ignored for all but the last command. The programmer must remember to insert "&&" after each command, or use `set -e` at the start of the RUN command, or use `SHELL ["/bin/sh", "-e", "-c"]` at the top of the Dockerfile. But this footgun is due to sh's error handling quirks, not the heredoc syntax itself.

> Are the line breaks semantic, or is it all a multiline string?

The line breaks are preserved ("what you see is what you get").

> Is EOF a special end-of-file token

You can choose which token to use (EOF is a common convention, but any token can be used). The text right after the "<<" indicates which token you've chosen, and the heredoc is terminated by the first line that contains just that token.

This allows you to easily create a heredoc containing other heredocs. Can you think of any other quoting syntax that allows that? (Lisp's quote form comes to mind.)

> Where is it documented?

The introduction blog post has already been linked. The reference documentation (https://docs.docker.com/engine/reference/builder/, https://github.com/moby/buildkit/blob/master/frontend/docker...) explains the syntax using examples. It doesn't have a formal specification; unfortunately this is a wider problem with the Dockerfile syntax (see https://supercontainers.github.io/containers-wg/ideas/docker...). Instead, the reference links to the sh syntax specification (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V...), on which the Dockerfile heredoc syntax is based.
I don't get all the replies to this comment.

hogepiyo was saying someone who lived for a decade and cannot speak native language does not have enough credit for us to believe his/her comment on the entire country's changes. The fact that people do can live this way does not change this point.
Yet Another ClosedAI research project with no intention of releasing..

what a joke
From the draft:

> In order not to hamper innovation or research, free and open-source software developed or supplied outside the course of a commercial activity should not be covered by this Regulation. This is in particular the case for software, including its source code and modified versions, that is openly shared and freely accessible, usable, modifiable and redistributable. In the context of software, a commercial activity might be characterized not only by charging a price for a product, but also by harging a price for technical support services, by providing a software platform through which the manufacturer monetises other services, or by the use of personal data for reasons other than exclusively for improving the security, compatibility or interoperability of the software
Yes, but OO languages create the same spaghetti-code morass that imperative languages did.

As opposed to, say, functional languages, for which it seems far harder for some reason to create spaghetticode
https://prinillus.ch/ A crypto webtrader

you first have to register at either coinbase, kraken or binance. Then, with the api, the trader can automate the trades for you. You only have to specify a strategy with an asset.
I mean you left out that part where after that it massively improved the standards of living to levels entirely unimaginable prior to the industrial revolution and making prosperity available to all and not just a tiny selection of merchants and aristocrats.

We can hope that the book in AI will lead to something similar - with automation making us far more productive.
Support? The NE is a rag. A self-professed rag. But suddenly - cash under the table? - it's professional journalism?

Lips stick on a pig...is still a pig. And you can sprinkle magic pixie dust on a turd and make it something else.

If the likes of The NE can get a Pulitzer, then that prize has lost its meaning and significance.

Let's not be so naive, please.
You don't have to, unless you would like to get your passwords without managing your password manager.

I have written the same in the FAQ at the bottom.
>60% of Americans already have them, and are perfectly happy to spend $1300 on them every few years, even if it means not paying rent or having to starve themselves. Why would they want to bring the price down?

Source? This comment sounds hyperbolic when many very capable iPhones versions are available for $700+ and 90% of people would not know the difference between a $700 and $1,300 iPhone.

In my family, we have an iPhone 6, X, XS, XR and 2020 SE still working.
Maybe it is possible that AI is used to generate the churn content. And this allows writers to spend time on some actual journalism...

Hah, who am I kidding. Probably will get rid of that if AI content generates the money.
I misread your first sentence as "This could be the beginning of the end for CEO content."

A good CEO provides irreplaceable value, but there is a significant fraction of enterprises that would probably do just well if they were run by ChatGPT.
Art-generating AI as an accessibility tool for disabled artists
> because nobody involved in the hiring process consciously chose to put that clause in and they probably don't really give a damn.

Yes but I think I didn't convey my point enough. Nobody involved in the hiring process cares, and if it's a good company they probably agree with you. But this standard contract is what they paid attorneys good money to comb over with a fine tooth comb for liability, and eventually sign off on.

Very very very few companies are going to go pay Expensive Law Co. (TM) $500 per hour to review changes to the contract just because _one_ potential hire who still might not even accept the offer says they won't accept if that's in it. It's way out of most recruiters or engineering managers that you might be interfacing with to make that happen, not to mention making their life way harder. Heck even a startup CTO might balk at having to go spend more on legal.

I have had clauses similar to the "we own everything you do 24/day" one and I've pushed back on all of them. Every time, the response is "yes we totally understand but we have no power to change the wording in this contract we use for every single employee" and it just comes down to a gut judgement call on my part on if I feel they will actually screw me over on that point.

Again to emphasise, I totally agree logically with author's and your points. But it's simply not realistic to approach job hunting that black and white unless you're comfortable being out of work for months until you find the perfectly-flexible-enough company.
TMG (betaine) utilizes an alternate methylation pathway and for me was life changing.
Both old school and new school. Best of both worlds.

Java 17 Quarkus backends with GraphQL, PostgreSQL as DB

Hasura to stitch the APIs if needed

logto.io for AuthX

Svelte with Sveltekit, Tailwind, DaisyUI as a frontend
See the history of ISPC, and how it was rescued, it touches on some of those points.

https://pharr.org/matt/blog/2018/04/18/ispc-origins
Then it would be an attack vector of course, but whether it is a vulnerability of the password manager itself would be debatable.
What is the value that Medium brings to article writers? Exposure? Or most are using it just because they don't want to setup their own blog?
Thanks for pointing that out, as I had almost forgotten about that first edition.

I was trying to remember where I had heard of Chilton, the publisher of the first edition, and realized it was automotive manuals!

The story of that first edition is interesting and somewhat sad, although maybe edifying and not alone in publishing and other forms of narrative arts.
Ask HN: Matlab vs Python
It's Friday folks. Let's unwind a little bit.

Let's begin. MATLAB versus python and why. Go!
I saw an offhand comment that Oracle's Java acquisition was a monkey's-paw wish to have someone step in to evolve the language and fix all the SDK bugs and I think that was a pretty good comparison.

There's an alternate universe where Google bought out either Sun or just Java, and then probably abandoned the commercial part of it entirely within a few years, leaving nothing but OpenSDK and a steering committee.
You have to think about security as being layered. There is a huge difference between creating a mock copy of an application or injecting code into an existing binary, and toggling a setting in a human-readable XML configuration file. Most operating systems also monitor executables more carefully than document files.
Agreed as well. This seems like an odd metric to use to compare a bunch of tech companies with very different market dynamics.

The Venn diagram between these companies would show some overlap, but not much.
On that topic,

https://bonkersworld.net/organizational-charts
It’s discussed in depth here: https://news.ycombinator.com/item?id=34542559
Thanks, this is much easier to understand than a slide (without presenter).
Compare to something like Microsoft's Kin Phone.

Microsoft paid half a billion dollars to buy Andy Rubin's company, Danger. They decided to rewrite the platform from Java to Dot Net, which took so long the product was no longer competitive when they finished. Then they spent a fortune to advertise a product that was canceled after two weeks.

Then Microsoft decided to take another huge pile of cash and set that on fire by purchasing Nokia's mobile phone business.

> Microsoft wasted at least $8 billion on its failed Nokia experiment

https://www.theverge.com/2016/5/25/11766540/microsoft-nokia-...

Researching a potential product and deciding not to go ahead with it is nowhere near the same order of magnitude on the monetary waste scale.
In that list, Mexico is by far the top Spanish-speaking country, not the US.

What's interesting, though is that the US now top Spain and all countries in the Americas apart from Mexico.
Several years ago, I read about Americans capturing Soviet-era jet fighters. They were analyzing it and finding all sorts of deficiencies compared to their own fighters, but noted its vacuum tube electronics were resistant to EMPs.

> Perhaps the most stunning discovery was the fact that most of the MiG-25’s avionics were based on vacuum tubes—not solid state electronics. This was considered woefully outdated for a top-of-the-line military jet in the 1970s, but the vintage system had its advantages. The vacuum tubes were more temperature-tolerant than modern avionics were, which allowed the MiG to fly without weighty environmental controls in the avionics bay. Plus, the tubes allowed for quick and easy maintenance at Russia’s primitive airfields, and the antiquated system would better withstand the circuit-frying power of an electromagnetic pulse created by a nuclear blast.

https://www.popularmechanics.com/military/aviation/a38083125...
Totally correct - I tried to caveat that in my post by saying I'm skewed hard tech industry. That was the main attention of the article, and my main experience, so I was writing from that viewpoint.

I somehow doubt that Vail Resorts has a non-compete for their lift operators to go work on another mountain (although now that I think about it VR is pretty terrible so this might have been a bad example)
Going dark: Is encryption a threat to our security? Swedish EU Council says yes
I do periodized strength training and hypertrophy training + multiple 90min sessions of zone 2 cardio each week. Used to compete in olympic weightlifting and powerlifting so I'm quite strong and just want to maintain that forever.

Might get back into running as well. Used to average 60-80miles a week so my aerobic base is still good.

I've also climbed for around 10 years and on paper am considered advanced, but it takes me a few months to condition for climbing season each year since I dont climb year round
Who here works for a company that's paying for a Java license? What software are you using that requires this?
Maybe because there's a scientific consensus at least on the fact that there's a global warming at the source of a ever growing climate instability and that the only people pushing against it are crazy people who don't know what they are talking about and crazy politicians willing to say that out loud in order to get elected, and coal/oil/gas lobbies paying for sham science (and aforementioned politicians) to say the contrary.
Funny by the way how the discourse about climate change has changed over the years from "It's not happening" to "It's not that bad". Altough in typical conspiracist style, some have always held both at the same time.
I was a hardcore matlab programmer for 10 years. I discovered Python and never looked back. However, I revisit matlab about every 12 months or so for project purposes. I am really impressed with how far it has come. Despite it being very fast for some computations, I find the language cumbersome when constructing and end-to-end code to deploy on a cluster or a demo.

My vote: python
I get that HNers lean towards the web and Startup/throw-away culture, but do people really not get that some systems have to run decades?
Buzzfeed did win a Pulitzer for their series exposing the detention of Muslims in China. The potential is there, they just need to let their people do the work they are capable of.
Scale AI: the $290M/year Mechanical Turk of machine learning
Nathan Biggs, House of Bricks CEO, estimated that a company with 250 employees, 20 Java Desktop Users and eight Java Installed Processors would pay $3,000 a year on the old model, which grows to $45,000 a year under the new subscription, a 1,400 percent increase.

I know someone who works at a large place that got hit by a similar increase. I assume Oracle thought they were large enough to not care and would just pay the HUGE increase. Instead they had a team that spent a couple months ripping Java out of everything. Oracle went from making something, to making nothing. I don't understand how they could think these increases are a good idea.
> Quicktime

Quicktime was never cancelled. It was adopted industry wide as the MP4 file format.

> MPEG-4 Part 14 is an instance of the more general ISO/IEC 14496-12:2004 (MPEG-4 Part 12: ISO base media file format) which is directly based upon the QuickTime File Format which was published in 2001.

https://en.wikipedia.org/wiki/MP4_file_format
semiconductor fabrication
this piece was an article relevant to that certain point in time.

where at that time - java had slow velocity - because it was tied up in marketing speak - and enterprise jargon.

however reading in between the lines - languages or ecosystems that are not shaped up by hype / marketing to do tend to encourage faster velocity and an uncanny advantage.

in this day and age though - maybe due to resume driven development - influx of vc funding. keep in mind - when YC started it was just a seeder fund - which encouraged companies to reach ramen profitability as soon as possible, not survive on the next round of funding.

what you now experience in the present - is rubber gum / viscous velocity amongst startups due to marketing i.e things like k8s, cloud tools etc which reach the complexity of J2EE tools of back then; when only the appointed prophets could show you the right true path.

now every company big and small - talks about doing things at scale. yet if you take a step back - no one has a definition of what scale is.

at $job - the talk of scale is prevalent - yet we're reaching for tools to solve human problems. that wouldn't need tech at all.

good luck finding a place that shuns complexity, isn't afraid of letting servers fail - to make sure they're robust and reliable enough. where the presentation layer - isn't going through a yearly ritual of sacrificing hours dealing with dependencies.
Right, enterprises should get rid of Java just the same way as they did with COBOL... Oh, wait...
I use it on a tiny cloud instance and refresh the feeds at regular intervals with cron. This lets me tune out from the news cycle for days or even weeks at a time. When I have to appear like I've not been living under a rock, I can catch up fairly quickly.
Seems like I was wrong, according to this comment[1] you also need local access to get the passwords after modifying the KDBX file.

[1] https://news.ycombinator.com/item?id=34545504
In some sense that's not far from the truth. As soon as something goes to production it starts slipping out of sync with how it could/should be and the layers of dependencies start accumulating that make it harder to change (unless it's just dead code no one is using I suppose).
I built a custom Debian based OS for Genesi’s EFIKA board then we sold a handheld computer with similar specs in China. GUI used Mozilla’s rendering engine, so one of the first uses of “web apps” as an application distribution platform. This was mostly pre-smartphones in China, so this device would have been viewed as a PMP (portable media player) for games and movies and maybe productivity, not communications.
Yo, yo, yo.
All my notes at the time were made with pencil on paper. Even if I could find them, I'm not sure they would still be readable. The Basic programs could only be copied by re-typing them manually on a contemporary computer. Presenting this pre-internet stuff on a website would just be too much work, sorry.
"To understand recursion, first you must understand recursion" ...so said many a professor, instructor, and developer I've known over the years (I first heard it from Dale Bryant, CS prof at HVCC[0] back in ~2000)

Recursion is the perfect solution to a handful of problems (eg tree traversal)

...so long as you have the memory to do it!

Back in highschool, I wrote a linear (ie iterative) octree traverser in C++

It was about 250 lines (not counting comments and whitespace ... printed it was about 10 pages (50 lines to the page on that old printer!)

And it worked! But I did it that way because I hadn't seen recursion except as an example of solving the Fibonacci sequence (for which it is distinctly ill-prepared!)

When I learned about recursion properly a few years later, I rewrote that ~250 line function down to under one page printed (with ample whitespace and comments)...it was maybe 30 lines long in its recursive form

That all said ... solving for recurrence relations is 100% "worth it" IF (and only if) the recursive runtime and/or memory usage is "too much". How "much" is "too much"? That's going to depend on the problem at hand.

Linear/iterative solutions are [almost] always faster than their recursive cousins ... but they're often not nearly as intuitive

------------

[0] https://hvcc.edu
I guess I disagree about being a decade behind and them needing to "start". I'll agree that they are behind. If they take their current car designs and adapt them for 4 electric motors + larger battery pack and discard ICE then they might not be very far off time wise. Its not like they need to come up with electric motors or battery designs, those are mostly just solved problems. Supply chain of battery components is likely the critical path. Toyota shares many designs, parts, etc. across platforms so I think its less work than "starting" from a blank slate as you may intend.
> For example, you can't recreate this in Go or Rust because `panic` will kill your entire program unconditionally.

You can recover() panic() just fine in Go.
OP said he doesn't "think it's technologically feasible for them to decrypt and then semantically process or store that much content" meaning it's more about just storing the raw data. Assuming they could store it perfectly fine (which is a big 'if' considering Cisco estimated 7.7 Exabytes of data would be generated per day by 2021), they'd still have to decrypt all the videos, semantically analyze each video (subtitles, object detection, face recognition, etc), find a way to index that information to make it queryable, and run analytics on that data regularly.

Ideally they wouldn't have to search everything when needed and could keep a running file on everyone (because lazily parsing data could be expensive and probably a waste on their existing current resources). That's not to say they can't do it, given that they probably have a huge budget, but it's also not a sure thing they can do it effectively for those who are trying to stay hidden.
Too many reasons to list. Numpy, pandas, matplotlib are all pretty badly designed and very annoying to work with. Dealing with different array types in numpy, pytorch, etc, I shouldn't have to do. Different array types have different interfaces, they shouldn't, I don't care why. Terrible packaging system. No threading. Slow loops. Etc.
I do wish it would all get replaced by C#/.NET. With no exaggeration, it's better in every conceivable way. Java has no reason to exist beyond inertia when C# can replace it.
I don't think there are any players who have not heard about the climate crisis, unless they were living in a box.

However:

* If they agree with the general agenda regarding climate crisis, they still don't have any action points as they did not have them before playing the game. "Buy an electro car" and "pay all kinds of extra charges" just don't engage that much.

* If they already disagree with the general agenda regarding climate crisis, they would probably just roll their eyes if you try to change their mind. Especially as you may only reiterate the common, orthdox arguments which they have surely already heard multiple times.
> In 1998 Ericsson decided to ban all use of Erlang.

Does anyone know why?
Software doesn't wear out?! The landscape changes constantly and updates are often necessitated by changes in the security landscape.

I don't expect the manufacturer to do the maintenance work indefinitely, but don't understand why perfectly good hardware should be turned into e-waste after a short number of years despite there being people who are willing to do all the work.

I can imagine a future in which a company has to guarantee a certain time frame for security updates and, once that time span ends, allow third party access. This would at the very least involve unlocking the bootloader so that reimplantations can be installed.
Indeed. If you want a small image, there's "slim" and "alpine" variants.
Sweden Startup Guide
>NOTE: the vendor's position is that the password database is not intended to be secure against an attacker who has that level of access to the local PC.

Such a trash response from a provider of software thats supposed to protect sensitive data.
Galileo GNSS High Accuracy Service (HAS) Is Now Operational
Agree with this, 100%.

Have been using Kagi since the invite phase.
The moment they opened up and switched to subscription, I immediately subscribed (you'll run out of the free quota in ~3-4h - 50 searches per month).

Paying 10$/mo for something you do hundreds of times a day, and getting consistently better results than Google, Bing or DDG, doesn't seem too much to me. I happily gave up D+ subscription to have Kagi instead.
It's very rare for me to have to scroll past for the first 5 results with Kagi. With the other search engines, nowadays I can't find anything relevant in the first page.

And they have an actual Roadmap: https://kagifeedback.org/roadmap