skysight-inc/HackerNews huggingface dataset:
That is one of my questions too.

Use a low entropy things (I guess user's password would be not larger than 20 characters nowadays even using password managers) to encrypt a high entropy strings (PGP key).

Looks pretty weird to me.
People who know how to use C rarely if ever have problems with undefined behavior. I particularly have written a huge amount of C code and my bugs have never been related to undefined behavior. This is an idea that has been spread to make people even more afraid of using C/C++. While there is a possibility of finding these problems, in practice it is almost a non-issue.
>Dude, proof of stake literally entrenches power to early movers

There is no power in validation. Proof of stake requires people who stake to authenticate perfectly, or they lose a portion of their stake. You lose nothing from relying on a Proof of Stake network.

>Do gas fees, long transactions times, and global gas wars still plague the ecosystem? If so, the assertion that it is "more useful than physical cash" seems just absolutely hilarious

What is this "global gas wars" you refer to?

Gas fees are quite low compared to international wire transfer fees, and that's ignoring new scalability technologies like zkRollups that reduce those fees more order(s) of magnitude. And unlike money held by a third party custodian like a bank or PayPal/Venmo, you don't have to worry about your account being frozen.

And unlike with physical cash, you can can transfer it digitally across the planet.

The transaction time is consistently 12 seconds since Ethereum moved to PoS. Ethereum doesn't have the issues of 10 minute block times that Bitcoin has.

Your criticism is uninformed.
No worries!

Trustfall is even more general than semver actually, one can use it to query any data source -- even HN itself:

https://play.predr.ag/hackernews

Here's a link to that project if you'd like to check it out:

https://github.com/obi1kenobi/trustfall

I gave a 10min conference talk on it last year titled "How to query (almost) everything"

https://www.hytradboi.com/2022/how-to-query-almost-everythin...
IT's an old war-time friend that when battle is up we both know how to shoot and be effective at it - both towards enemies as well as our feet.
Through in-built assembly, or some compiler-specific annotation. None of them is vanilla C, which was my point.
A video showing it in operation [1]

[1] https://www.youtube.com/watch?v=RyFux1DOdU8
I believe that with the arrival of ChatGPT and similar tools, writing code in C will become as easy as in any other language. The AI tools know how to generate good C code, and C is fast by itself. I believe we'll see a lot more code written in C now that we have new tools to analyze C code.
they should simply use c++, like k&r did to compile their example code in their 2nd ed - see preface to book if you don't believe.

i will never understand why C programmers get so upset about C++. of course, the latest revisions of C introduce some new features not in C++, but nothing really major. if you want good type checking, compile your C code with C++, and fix all the type errors you will get.
It’s interesting they’re using the FFT.

I’m guessing they’re using it for convolutions to increase the computation speed for calculating whether a given object placement and orientation interfere but my small brain wouldn’t really know.

If so, is that a common technique in optimization problems?
Because there's no easier way to access various libraries.

Yes, that library does things with pointers the new language can't prove are safe. It's been used for longer than you've been alive and it isn't changing. If a new language can't express what it's doing, well, the library isn't going to move, the language is. Therefore, I either have odd shims and contortions or I have C.

I await a Buzz Language to eventually have "inline C" the way C has inline assembly.
I'm not familiar with rust+semver problems.

Can someone please explain what the issue is?
Sure, blame the user… This is why we have distros with ads like the OP. It’s our fault for seeing the propaganda you shove down our throats. Give me a break.
In most software, the units themselves are not that interesting. Basic business logic and data transforms, surrounded by a larger codebase that glues all the integration points together into a working stateful system.

I've met a few unit-testing extremists who insisted on pristine-mocked unit tests and only unit tests. Their tests were incomprehensible (a good test should serve as documentation and acceptance criteria - but their code was 90% of concerned with mocking service apis) and importantly, their unit tests repeatedly failed to catch serious regressions that should have been apparent to anyone who simply executed "main" without mocks. We had production outages on the regular.

The funny thing is, the unit test extremists doubled down, rejecting the idea of integration or e2e testing entirely (yes, I'm serious) and claiming that prod failures indicate we need to unit testing EVERYTHING. They even went so far as to claim developers need not actually run their software, unit testing is fully sufficient. Not surprisingly, their code had perfectly constructed units but no overall design... the units composed into an unmaintainable dumpster fire as an actual system.
(ReadCube) Papers, but I honestly haven't tried it since like Papers 1, so can't speak to how it is these days.
Maybe if you started life as a VB6 developer.

But your original post especially doesn't make sense because the default Debug configuration has always put the debug symbols in a separate PDB file. So even if you were arguing that early C# developers didn't understand how to use their tools, they wouldn't have had the source embedded in the EXE.
This is one of the main reasons I think AR glasses are going to be ubiquitous within ten years.
Avi Loeb is quite good at talking reasonably about treating extraterrestrial intelligence as an actual possibility for some observed phenomenon or other (anomalous acceleration seen in the extrasolar object ʻOumuamua as an example) in a way that sounds rational to me and also gets him tons of media attention. I can't believe there isn't some intent in that.
But factory is not "hyper-abstracted". For that matter, factory factory can be annoying, but still does not require all that much abstract thinking to understand.

It would be different if people complained about actually complicated stuff ... but, you know, factories are not difficult to understand. Even when I disagree with design decision to create a factory, it is clear what factories do.
I still remember when we measured the documentation IBM shipped with the mainframes not in pages but in yards it occupied on the shelves. It was a lot.
> Probably the main reason people typecheck js with jsdoc annotations is because they don't want a TS compile step.

Right, I agree--because it's slow. Like AFAIK the tooling roundtrip is why Svelte/SvelteKit made the change. For normal projects, you don't have that same problem.

> for nodejs/cli scripts

I just use ts-node with the ESM loader. It's drop-in, for my purposes at least. What problems are you seeing?
Just learning it exists and it's something I could never found a good software for. And it supports saving things with the excellent SingleFile.

I'm definitely going to give it a try, although as a Firefox user the workflow is going to be a bit less nice.

EDIT: just tried it, it's very nice. Right now, the UI makes it a bit better than just using in SingleFiles, but not enough to justify $50.

However, if this would become a way to fully manage my Firefox bookmarks, I would pay for this, in the spirit of https://www.bitecode.dev/p/i-checked-if-browsers-could-cache.

Right now, the UI to manage the bookmarks sucks. Plus there is no way to:

- save their content for offline reading
- search their content

This means it's are very hard to get value out of them.
The same Martin Shkreli as Martin "chased failed investment debt by buying patents for cheap (but life-dependent) drugs and hiking the prices by several orders of magnitude, but still failed to recover and was eventually prosecuted, and convicted, by the FBI for running this Ponzi Scheme" Shkreli?
Tool author here. I think the same overall approach I described here should work for Go as well:

https://news.ycombinator.com/item?id=36653954

One would just need a machine readable data source for Go package APIs, and would plug it into the Trustfall query engine. I'm not a Go expert but most languages I've worked with have something like that.

If you might be interested in building this for Go, ping me and I'd be happy to help you hit the ground running!
What is a better word for a laptop with good specs? "High end laptops" are usually garbage when I search for them. 19" monitor and a 3060 for $2000, RGB keyboard 512GB ram, 16gb Ram.

I just use the word gaming laptop because you can get high quality stuff for under $1000, or you can get ultra high quality for $3000 like a 4090.

I don't actually play games. Its a shortcut word.
You didn't say what the checkboxes are, but... perhaps the 'BetterC' subset of D? https://dlang.org/spec/betterc.html#retained

Or D itself if you don't need a language as minimal as C. D is basically C++ redesigned and now that GCC includes D support by default I wonder whether it'll gain popularity.
Show HN: Create data flow diagrams for PostgreSQL
Musk suggests making Taiwan a ‘special administrative zone’ similar to Hong Kong
Yes; we recommended generating a long random password or passphrase :)
Registers are orthogonal with memory layout. Cache does not change the general model.
Machine learning:

- https://github.com/microsoft/scala_torch

- https://microsoft.github.io/SynapseML/

- https://www.infoworld.com/article/3236869/what-is-apache-spa...

And Microsoft of course owns LinkedIn which is built on a Scala backend.
Lycoris didn't become Lindows, those were two separate products from two different companies. Lycoris/Redmond Linux was bought out by Mandrake/Mandriva, Lindows went on to be bought by Ximian. Same end goal though, make a blatant Windows ripoff lol.
It was the first thing I learned to program on. My father went to a conference where they gave him one as swag, and he gave it to my older brother and me. I was, I think, seven years old or so.

Writing code that we hand assembled taught me a lot. It’s probably still in a box at my folks place somewhere in the garage.
Yes. The population drop alone is going to make all this happen. Nevermind the massive black hole of citizenry who know next to nothing and are proud of it.
What would happen if you paid for unpaid leave and didn’t use it?
The point of mocking is not to reimplement a service you depend on, it is to provide the answer that service would give in the specific example you're testing.
No, mostly not. Doing my job properly gives me job security for the most part - but this is one of the things where I don't see any benefit for yourself, there is only a benefit for your employer. Of course, I'm not advocating writing cryptic undocumented obfuscated mess (that's just plain unethical, even if it's "good" for you), but coding in a "standard" style just benefits your employer, not you. It just means you are more easily replaceable without any benefit for you. You won't learn more from doing it, you won't gain any skills or anything.
Interesting choice, but Ada is probably even less popular than Zig.

Even just requiring users to integrate my hypophetical Ada library source distribution into their project's build system files would most likely drown me in support tickets ;)
> But the page did not facilitate that...

I had to do a lot of navigation to get to the first page of content; which dropped me straight into a 4-bit full adder. To my mind, that's logic circuits, not electronics.

To be fair, most intro-to-electronics pages start with Ohms Law and so on, which to my mind isn't electronics at all - it's basic electricity. This site starts with diodes, which is indeed the entry-point to electronics proper. But jumping in with gates is arse-over-tit; gates are a special case of amplifiers, and I think explaining transistors as amplifiers should precede explaning them as switches.

Regarding navigation: The whole thing is set in something like Courier, and links don't look any different from body text, even when you hover. And I generally expect no more than one click from the homepage to get me to page 1 of the content. A contents page that links to contents-of-the-contents pages seems like a rabbit-warren.
Font rendering is incredibly complex, perhaps one of the most complex things in computer software.

It already required execution of a virtual machine:

> TrueType systems include a virtual machine that executes programs inside the font, processing the "hints" of the glyphs, in TrueType called “instructions”. These distort the control points which define the outline, with the intention that the rasterizer produce fewer undesirable features on the glyph.

Now it just _also_ requires potential execution of arbitrary WASM code, too.
I "lost" mine in a move about 40 years ago. I have been in mourning ever since.
This isn't the first time Loeb has shouted "aliens!" Previously he said Ouamuamua was aliens based on a hunch, and after the news got their hands on it and declared aliens to the public, astronomers were understandably peeved with him and asked him not to shout "aliens!" unilaterally based on a hunch. Loeb didn't take it well. There's an amazing clip where he rants about how he is the only one serious about finding extraterrestrial intelligence... To a room full of career SETI astronomers.

Here's a video essay about him. (People who have a strong preference for direct/to the point videos would probably be better served seeking out another source, I feel like this video adds interesting context but I know a lot of you would feel it's fluff.)

https://youtube.com/watch?v=aY985qzn7oI
as i said, the linker only has so much information - whatever is supplied by the (possibly various) compilers and/or assemblers. which is minimal. so a linker cannot produce very accurate error messages. i'm afraid you are going to have to live with this, and understand it.
update windows like '90s
It doesn't replace a beefy GPU but the 780m is more than enough for many workloads and playing older games. It's maybe roughly comparable to having desktop GTX 1050.

There's a decent chance that ryzen models with 740m or 760m that we'll probably see in cheaper ThinkPads won't be half bad either compared to the Intel alternative.
That almost launched a sip of morning coffee... Well played!
Building a PC is overrated. It’s Lego. The most fun part is picking the parts which is just a dopamine hit of consumerism, not engineering. Pick a small/tiny PC case to make it a challenge.

If you’re asking us whether you should build one, I can guarantee you’re going to build the PC you spent a month or two planning and then let it rust on a desk while you resume using your Macbook Pro or whatever like I did.

Use LogicalIncrements to build your PC on PCPartPicker. Enjoy that process because it’s fun. And then when that’s done ask yourself if you really need the thing. Or if you should just spend the $1000+ on a vacation with your sweetie.
Cheerio Slack. Hey Discord
“If you think about the benefits of digital money, there are huge potential gains,” said Prasad, adding, “It’s not just about digital forms of digital currency; you can have programmability — units of central bank currency with expiry dates.

“You could have […] a potentially better — or some people might say a darker world — where the government decides that units of central bank money can be used to purchase some things, but not other things that it deems less desirable like say ammunition, or drugs, or pornography, or something of the sort, and that is very powerful in terms of the use of a CBDC, and I think also extremely dangerous to central banks.”

“Now we are at the cusp of physical currency essentially disappearing”

Eswar Prasad, WEF Annual Meeting of the New Champions, June 2023

https://sociable.co/government-and-policy/governments-progra...
But that’s sort of the point I’m making- schools can’t fix drug-addicted parents and that’s probably going to make much more of a difference in a child’s educational attainment than how good their teacher is at teaching math. Unless schools are going to do more than just teach academic subjects. They will basically have to function as reliable, disciplining parents.
If you want to load from address 0x1234568, assign it to a char pointer first. Then the cast is legal and defined.

Your point that C is stricter than asm of course still stands.
> My first server had 128MB of RAM

Whippersnappers! :D

The first big iron I had the luck to work with was an IBM 3090 , essentially a gift from IBM, it handled the university entrance exams of the entire country of some ten million people and it had 64 MB of RAM. (It was also the first computer in Hungary permanently connected to the Internet via a leased line to Austria so it had an Austrian IP address. Hungary didn't have its IP region for two more years.)

I think the first machine with 128MB was a VAX 6510 a year or two later at another university. A little bit later, in 1994, CERN had gifted a VAX 9000 with an astounding 256MB of RAM.

To compare, the first server I installed Linux on had a grand total of 4MB RAM -- and that was one of the largest computers a small department at the university had.

It would be a long, long time before "128MB" and "mine" entered the same sentence.
not exactly. near peer doctrine called for aerial dominance. only recently (last few years) has the US bought back SHORAD. manpads are seen as unnecessary because there’s bigger and better weapons systems for them
We derive a (key-encryption-)key from the password using a password hashing function / key derivation function (bcrypt, although we're planning to switch to Argon2) before using it to encrypt the PGP key. This is fairly standard practice, it's what password hashing / key derivation functions are designed for.

The crypto refresh of the OpenPGP standard also has Argon2 built-in, exactly for this purpose, so that you don't have to do it manually. (RFC4880 also has "string-to-key" functions built-in but they are fairly weak so we don't rely solely on them.)

All of that being said, it's still important to choose a strong password or passphrase, of course; if you choose "123" then it's gonna be guessed instantly no matter how strong the hashing function is (well, unless it's so strong that even logging in becomes too expensive...)
The main goal of password hashing functions is to tip the balance towards making it too expensive for an attacker to guess your password (as long as it has let's say "medium entropy") while still making it cheap to log in.
I miss it. I’m too rusty to be effective with it anymore, but it’s the most pleasant to use and productive language for me for small stuff. Best community there ever was as well, mostly C and Unix system programmer types.
I'm assuming these features weren't developed and tested by you. So what percentage of the feature revenue do you assign to your individual contribution?
For Excel tricks, I highly recommend EasySheets on TikTok[0]. Some really useful stuff there.

[0] https://www.tiktok.com/@easy_sheets
https://youtu.be/pbWa_tlC-3I or

http://windowsupdaterestored.com/ or

https://discord.com/invite/Aqp4GgnWAg
> true. but to mock something like a stock exchange, you are basically going to have to write a stock exchange

All your mock has to do is to provide the specific answer you're expecting to receive from that service in the specific case you're testing. In most situations, re-imlementing logic in a mock is a mistake that should be avoided.
> The whole system becomes fragile, and minor disturbances will become major ones.

Why would this be the likely outcome?
Like teachers giving answers to students because higher grades / more passing means more money...
> Sure, a turing-complete compile-time language would be nice

I wrote Metalang99 [1] as a compile-time language that is able to perform loops, recursion, etc. It's not Turing-complete though, as the C preprocessor is not Turing-complete.

[1] https://github.com/Hirrolot/metalang99
Seven Lessons in How Not to Do an Upgrade
> for any actual scripting it's basically dead.

Run "file /usr/bin/* | grep -i perl | wc -l" on your computer. You will be surprised.

EDIT: if you want a histogram for all the types of programs in your system, run this

file -bL /usr/bin/* | cut -d' ' -f1-3 | sort | uniq -c | sort
Contingency plans are not my concern or problem. If the airline has to fly a plane without a person in every seat, so be it. That is good customer service to me — not abusing me so they can eke out more dollars per flight.
I live in Asia and summers are routinely 37 C.

Apple's new chips are a GODSEND for laptops. My old Intel laptops would nearly instantly thermally throttle under any trivial load without air conditioning at full blast and a fan aimed at the machine.
I can't understand what brings someone to stay overnight in order to travel first class, rather that sit in an exit row in economy for 4 hours.
Covid Censorship Proved to Be Deadly
The problem is now you have to carry another keyboard and mouse in addition to the one you're already carrying with your laptop. The ideal portable ergo solution is something like:

- Any small portable computer e.g Phone with Samsung DEX/RaspberryPi/Steam Deck

- Custom split bluetooth keyboard e.g Corne, Ferris Sweep

- Magic Trackpad or mouse

- AR Glasses (Viture, NReal Air)

- Large capacity power bank (imuto would be my recommendation). Alternatively a good charger like the Zendure Passport series.

It's less elegant as you're going to have a minimum of two cables involved (ar glasses to computer, computer to power bank) but ends up being a similar amount of space/weight, just distributed differently. You may argue it's heavier because of the power bank but if I'm taking my computer anywhere I'm normally taking my power bank as well because you can't rely on there being a seat near a plug in a lot of places.
If I want something sleek, not awfully hideous, 13" screen but with relatively good performance? Everything BUT a gaming laptop.
.NET 1.1 is 2003, should be "back then" enough.

When compiled with VS 2008 and .NET 3.5, the binary does not include the source code either.

You might confuse readable parts in the binary with the metadata.

[0] https://stackoverflow.com/q/65699183

[1] https://stackoverflow.com/q/4700317
A Freedom “Map”
Petzold did the same on his highly acclaimed book for Windows 3.x book, also with a note on the preface regarding type safety.

Likewise, Microsoft introduced windowsx.h header file, to improve type safety while using C for Windows 3.x applications.
If you read the post I linked he talks about what specific signatures his team plans to look for to determine if these objects are naturally occurring or artificial in nature.

The only categorical claim he has made about this object is that is originated from outside our solar system
You mentioned Framework: I hope they make a phone in 3-4 years.

They made an excellent repairable/upgradeable laptop and I’m sure they’d build a great phone
This reads more like a collection of links and resources rather than an introduction.

There should two proper introductions, one non-technical (but not patronising one) that would explain in clear terms and maybe a few diagrams and mockups what type of experience is supported. Also a more technical one that clarifies among others what is exactly the status quo of the various implementations of the protocol.

Being decentralized and a collection of disparate, opinionated and shoestring budget efforts means that there is a penalty in terms of good exposition and documentation.

For better or worse the grace period is over for the fediverse. The stakes have been raised.
Ok, but we’re talking about flying commercially, in case you missed all the context clues.