skysight-inc/HackerNews huggingface dataset:
> I fail to see how that is better. Null-terminated strings are a terrible idea in the first place.

TLDR: you get extra bytes in your small strings

Long version: Copying from FBString code:

struct MediumLarge {
Char* data_;
size_t size_;
size_t capacity_;
};
// sizeof(MediumLarge) == 24

struct FBString {
union {
// For accessing the last byte.
uint8_t bytes_[sizeof(MediumLarge)];
Char small_[sizeof(MediumLarge) / sizeof(Char)];
MediumLarge ml_;
};
};

Then `bytes_[23]` is set to `24 - size of small string` for a small string. You also "steal" a couple of bits from `capacity_` as a tag to see if a string is small or large.

This has two advantages:

- You get to reuse seven of the eight bytes of `capacity_` in your small string (i.e. your max small string size is 23, not 16 as it would be with a simpler scheme).
- You get a null terminator "for free" (though, of course, you still have size and capacity). This is on top of size/capacity.

This could be reduced to 16 bytes by making `size_` and `capacity_` uint32_t instead of size_t.
Agriculture may have existed for 10k years or something, but it's not like everyone switched over to that lifestyle immediately. There have also been peoples that lived as nomadic herders and even hunter gatherers into even modern to almost-modern times.
> They are not even in the same arena as React.

This is 100% correct. I think a lot of the disappointment about web components comes from a mismatch in expectation between the spec writers and what people when they think "components".

Web Components allow you to make new HTML elements. That is, you can make new kinds of DOM nodes out of other DOM nodes. This is powerful, but the resultant API is still a DOM-level API, and not a full templating system like React.

On the other hand, because all these templating systems (React, lit, svelte, etc.) ultimately boil down to a series of DOM manipulations, this allows you to create a kind of element that can be plugged into all of these systems.

Custom elements are a lot more akin to the C ABI. Than a fully featured framework.
Partially yeah, but that's usually a system file, which isn't supposed to be visible. Google drive for some reason decides to make it visible, which is damn annoying.

This is a bit like Google drive adding two files named '.' and '..' to each folder in unix.
To be fair, that wasn't 'on' by default, and it wasn't necessarily bloatware, as it's a small activex module/component. It's actually fairly light with how well it works from a code-base perspective! but, it's akin to malware more than anything since it's inception.
He is saying people need to be more techno-optimistic and stop paying attention to all this fear mongering hack jobs about social media algorithms. These algorithms deliver billions of dollars of value on a daily basis. Money and GDP are more important than depressed teens. It's important to focus on what actually matters: market capitalization and profitability.
So, how does Biome compare to Dprint?
Is there a way to request fraudulent flags to be removed? I see the flag button but not an opposite.
IIRC the USB port can register a mouse and a keyboard and other imaginary stuff. So I think it's possible to implement this using a small pendrive inside the mouse. [If someone implements it, I guess i will get a lot of points here.]
> Walter Arnold was no ordinary motorist. He was also one of the earliest car dealers in the country and the local supplier for Benz vehicles. He was well ahead of the times and set up his own car company producing “Arnold” motor carriages at the same time. It has to be said that the subsequent publicity surrounding his speeding offence probably wasn’t entirely unwelcome, and it was certainly a game changer for the automobile.

Plus ça change
Just a few weeks ago I got interested in this as well ("where does FR24 get its data from?"). I ended up buying a cheap RTL-SDR dongle (R820T2) and a small outdoor antenna. I run the free dump1090 tool (I'm on Fedora) to decode ADS-B messages, then my own simple "radar-like" visualization program ([1]) connects to dump1090's network socket to receive decoded data (SBS1 textual format). Even with the antenna just sitting in my room (on a photo tripod), I typically receive data from 10-20 aircraft, up to 190 km away. I drove to a hilltop this weekend (some 600 m higher) and immediately got >100 aircraft, up to 500 km.

[1] https://github.com/GreatAttractor/plane-tracker
Devs use web frontend tech because it is installed on every machine, will never have anything less than the full backing of the browser devs for the next hundred years, and gets around corporate filters. No need to deal with IT security losers to get your app installed, no need to get ports opened, just everything down port 443 until the end of time.

INTERCAL could win with that feature set.
I had the same gripe, and recently tried switching to dprint. It is much less aggressive with changing where lines break, and honestly it’s a huge relief to be able to break lines wherever I think makes the code most readable. It’s also significantly faster than prettier. I’ve been very happy with it.
lol hiking desk
What do you mean when you say that it's "unethical"? I understand that something is "unethical" when it contravenes some code of correct behavior. I'm not sure what code is contravened in the following scenario:

* Steve sells secrets for a fee.

* I want to buy a secret from Steve but he refuses to sell to me specifically.

* Steve sells his secret to Bob.

* Bob is willing to tell Steve's secret to me for free, so he does so.

It seems to me that in this scenario everyone got what they wanted. Steve got to sell his secret to Bob and not to me, and Bob and I got to learn Steve's secret. I think it would be unethical to force Steve to sell his secret to me if he doesn't want to, but I don't see what's unethical in learning his secret from someone else even if he refuses to sell it to me directly.
Perhaps this will shed on why it has been impossible to buy graphics cards (for gaming) at MSRP since at least 2020
> its HTML as a string

Can you explain what you mean by that?
Python typing nightmares definitely do not just go away with the use of mypy. There are so so many ways to break out of the guardrails it supplies that are not caught.
Wow, didn't realize Mexico City was sinking so fast - this article says it could sink another 65 feet! Yikes!

https://www.wired.com/story/mexico-city-could-sink-up-to-65-...
Python always felt well designed to me. Slow yes but it felt the the author really thought about how the language would go together. This is mainly a comparison to the other scripting languages available.

Pick your poison

shell #expand all the strings, but those pipes are nice, why can't more languages have pipes.
awk #not a bad language, but very very small, and an AWKward(see what I did there) implied data loop
perl #can do anything but the syntax is, well it is a real frankenstein monster of a syntax
python #well designed syntax, has a strange block structure but at least it is always nicely formatted
tcl #all the strings! but other than that not half bad
ruby #pretty, but wow, that is a lot of magic
php #just graft on whatever to the language as you need it, don't worry about how it all fits together.
hmm, I wonder if there's any value on top of that functionality that Plex provides?
When Kojima announced Death Stranding 2, he joked about rewriting the entire thing after the pandemic because he was trying to avoid predicting the future again. The guy has some kind of super power it seems.

Metal Gear Solid 2 was especially prescient, it's even more relevant today than it was at the time. It seemed like crazy babble at the time but now it's just like, "wow, ok, this all came true wtf".
I have a 16” M1 Pro as well and it’s night and day. But I still love my little 13” 2015 Pro- there’s something comforting about it.
It is interesting browsing the OpenCV website. I didn’t find anything saying what it is, at least not fewer that 3-4 clicks away.
Do you think the rise in rates of diagnosed autism spectrum disorder over the same time period reflect an increase in actual expression of the phenotype in the population? Or was it from an increase in diagnosis and treatment?

Do you think the rise in this premise of "rampant mental health issues" reflect an increase in actual expression of the phenotypes in the population? Or was this from an increase in diagnosis and treatment of mental health issues?
Sports Illustrated Published Articles by Fake, AI-Generated Writers
Go is both simple and easy.

For people who knows both, I don't know why you would choose Python (except if your domain doesn't have the libraries, like scientific/AI/ML stuff).
I agree with this one
Experimental VS Code assistant that can use terminal commands
It's 100% open-source under an MIT license. Contributors welcome!
It's BuzzCode on the VS Code marketplace.
What about the FingerWorks TouchStream? sigh
People discussing writing Web Components by hand are missing the point.

Web Components, once adequately specced, will become a compile target for higher level frameworks like React and Vue. That way you still get the benefits of higher level frameworks but the components can interoperate with each other. Vue CLI already supports compiling down to a WebComponent, though not sure how first class it is.

There are far too many lacking ergonomics to expect writing Web Components by hand to become popularized/convention
LOL, totally did not get that without the voice.

Maybe some formatting would help, like: "Metal... Gear...?
Not OP, but prettier doesn't break template literals, but it will break non-literal sections of template strings. For example, if we wrote this:

const foo = `aaaaaaaaaaaaaaa${bbbbbbbbbbbbb}ccccccccccccccc${ddddddddddd}`;

prettier would fix it to

const foo =
`aaaaaaaaaaaaaaa${
bbbbbbbbbbbbb
}ccccccccccccccc${
ddddddddddd
}`;

(or something similar) and it would be fully equivalent.

I don't like it doing that either tbh but hey prettier is good enough in most cases its worth putting up with it
React uses JSX/TSX which is much better because it is syntax checked and even type checked in the case of TSX.
Do elaborate on what UI paradigm web browsers ought to use from mid-90s GUI development.
Why is that extreme? They made fake accounts, pushed fake speakers who would "back out" every year. The only thing extreme here is the lengths in which the organizes went to repeatedly commit fraud. Do you think Microsoft thinks it was cool to say higher up at their organization would be speaking?
No, I’m not even going to give it a try; mandatory login for a browser or a terminal app (!!!) is nonsense.
If you use a good rendering library, like lit-html then (at least in vscode) you get very nice syntax highlighting, completion and validation:

html`
<this is all syntax highlighted>
`
AI faces look more real than actual human face
Can I borrow some knowledge? What sort of operations trigger a reflow and repaint?
They also have more to lose if they are wrong. They would have to admit they pushed something wrong for so long. So they need to double down.
except you can't use it as a normal component, you can't adjust its CSS normally, you have to `&::part()` your way around and hope for the best. Accessing through refs is a complete blackbox. I work with web components daily and it is a hindrance to my daily work, it is very common for people at my org to just re-write a component instead of using its web component version.
This is cool, but you are missing NJ Transit which has passenger trains separate from LIRR and Metro North. You are also missing Septa and MTA internal city light rail and subway lines, which are technically passenger trains.
> I don't see how better performance follows from the fact that something is written in Rust.

Idiomatic Rust will often by 5-10x faster than very similar looking JavaScript/TypeScript code without even trying to optimise it. It depends what you're doing, and this doesn't always apply. But parsers where you're doing a lot of string manipulation are one of the cases where it definitely does.
Html as a string literal in code rather than the html being in a separate .html file.
Reminds me of that time when we hired someone to do some work and they left a skid steer by our driveway for several months and we couldn’t get in touch with them.

I found the operator”s manual and got it started and moved but shredded the tires in the process. One of this guys friends found out and told him about it and he showed up right away to take it.

I found out later what I should have done is called the sheriff to write a parking ticket and then call the XXL tow truck.
I think that's going a bit far.

Technology commercialization by universities is the way any academic research (potentially, eventually) reaches the public, and it's quite normal for the original researchers to be involved in the commercialization venture, as advisers, or as CEO. They know the topic best.
It seems like basically all marketing and advertising is human pen-testing. Thought is serialized into video or audio and then deserialized back into thought which is evaluated. Sometimes this evaluation causes downstream thoughts and actions (including propagating the vulnerability). The question is whether the resulting action is 'organic' or a RCE - overriding the agency of the actor.

I think a core class that should be taught is how to safety deserialize sensory input as to avoid causing RCEs. Or basically 'patching' these known vulnerabilities.
I thought I was clear. There is no such thing as "internet addiction" or any subset. There's actually not even "gambling addiction" anymore. It's been properly renamed to "gambling disorder". But I guess we're not talking facts here. Instead we're concentrating on how it feels to us. And various ambitious policians are realizing they can use that collective lay delusion to further their careers.

I am not pro-corporate as some are accusing me. I've never even had a facebook, twitter, or the like account in my life. I think these are terrible services and platforms. But it is even more dangerous to apply a label like "addiction" to them because then politicians think they can treat them like drugs... and we know how dangerous that response is.
The most famous study is the seventh adventist study. The study in question is not tiny. About 70k people participated.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4191896/

https://www.sciencedirect.com/science/article/pii/S000291652...
Why throw out the tool when you can have the tool ignore [1] whatever is outside the common case?

[1] https://prettier.io/docs/en/ignore.html
This is actually kind of funny because one of the classical arguments made by gophers eight or so years ago when I first started learning it was that golang's limited abstraction power makes the pain of large codebases obvious enough that teams are incentivized to keep projects small.
That sounds awful to be honest. A recipe for total loss of standardization within an org.
Maybe I missed it but I don't get how this improves the JS implementation

Are they planning to run Rust in the browser? Or make some sort of node module that calls down into rust?
> I put max octane in all the cars I own

Of what’s commercially available, that would be E85. I hope you’re not putting that into your E10 max vehicle.
Those bells and whistles are for amateurs that can't take a good photo and are pushing it to make it look good. Professionals often have worst equipment than amateurs in photography.
It sounds the same to me: JVM, but with better browser support.
total disinformation has been The weapon for.. milleania?

but it always has been targeted at something/someone specific - drown a piece of info in ocean of bullshit (see Stanislaw Lem's 'Voice of the sky'), or deceive the enemy, Lao Tzu style..

But, this time it's about society drowning itself without any particular goal.
Or, is there some?

----

Added: maybe it's all.. fighting boredom? Like those well-funded ~aristocratic people of the past that "tried" all kind of diseases out of.. boredom..
Outside the northeast corridor and a few others, there are many Amtrak trains are only once a day, or less, and often with long routes. It's unfortunate. The network is pretty good in terms of coverage / states covered on the map (since it's optimized for that), but lots of places it's pretty much impractical to use because the one time/day doesn't work.

I really wish they could at least get to a minimum of two trains, a "day" and "night" train on every route. You'd think the marginal cost would be minimal considering all the track/stations are there anyway!
Do libraries in Canada loan DVDs and/or Blu-rays (and I suppose do you have something to play those, a PS5 for example)?

Just checked my local library system and there are 7 available copies of Heavenly Creatures, I could get it and watch it in a few days via inter library loan. But I'm in the States.

95% of the films I watch via the library I would venture. But it depends on your system.
Fun fact: in a sense. gzip can have multiple files, but not in a specially useful way ...

$ echo meow >cat
$ echo woof > dog
$ gzip cat
$ gzip dog
$ cat cat.gz dog.gz >animals.gz
$ gunzip animals.gz
$ cat animals
meow
woof
My recommendation is the NAND2Tetris coursera course. You start with a single NAND gate and put together more complex gates building upon the previous abstraction. Part 1 covers things like creating Muxes, RAM, and an ALU in a stripped down HDL. Part 2 covers the software stack picking up after having created an assembler but I haven't taken it yet. Perhaps this is isn't tailor-made for jumping into FPGA fast but it helped fill in a lot of blanks for me coming from mostly software world.
It’s pretty typical for printers (and a huge amount of iot devices) to only support 2.4GHz. I’m a little impressed that this is the first device you found this incompatibility with.

There’s some standalone dual-band access points on sale this weekend for <$40 right now which would solve your problem.
You say this as if it were fact, when it's really speculation of a possible future. Not unfounded speculation, but speculation nonetheless.

In the meantime, in the here and now, these things are obviously hazardous and shouldn't be on the public roads. Even if they would lead to a better future, no company has the right to endanger unconsenting others now to accomplish it.
Never had iCloud lose any of my data and I've been using it since not long after it launched, but now I'm a little concerned.

With photos I do keep them all local to my MacBook, but not documents. Maybe I should.
> yet another subject which nobody cares about

This is the root of the problem.
That is a very unsurprising experience for NJ Transit.
> If your not wrapping them and preparing them for winter than you shouldn't have bees.

There is an entire philosophy of beekeeping supported by a variety of studies conducted on remote islands around the UK that we should be positioning bees for minimal interference like you suggest (as well as interference via mite treatments, etc) in order to allow for evolutionary adaptations to create more robust bee populations.
That’s why governments should do more in house and rely less on consultancies.

However in many cases of enter-rise software, everyone involved knows perfectly well that copying is happening. In which case there is nothing immoral ~ just a mismatch between elegant and actual reality.
>> These people prey on the irrational behavior of parents scared for their children and try to convince them that things like addiction to a website on a screen is possible.

Saying that addiction to a website isn't possible is unfounded.

People get addicted to online gambling. That's just "a website on a screen." It's clearly possible and it clearly happens.
Tableau used to give employees t-shirts multiple times a year (I had at least 15 by the time I left). I had a favorite I'm now reminded used "Next Level" shirts. Time to go buy a bunch of their blank t-shirts.
> 1) it's not downvoted

To quote Doc Brown, "you're not thinking fouth-dimensionally!" It was when I posted the original comment.
When I grew up in the 90s you kinda wanted ads. Otherwise you wouldn't know what was being shown at the theaters etc. People put up "No ads but Cineama ads and the phone catalogue" on their mailboxes etc. I believe many peoples perception of the world does not change from their childhood. At least very slowly.

Ads stopped being useful about 20 years ago by now and like 10 (?) years ago they started to spy on us.
Stencil does it, but the resulting web components are still not great to work with because of shadow dom and the missing standards you can't expect from custom elements. You want inline styles? hope your dev remember to drill those down.
Rust can run in the browser via compiling down to, and running as, WebAssembly. So I don't see why not.

Prettier is run mostly on the serverside though, not the browser. I assume supporting both is still desirable though
Is there an archive format that supports appending diff's of an existing file, so that multiple versions of the same file are stored? PKZIP has a proprietary extension (supposedly), but I couldn't find any open version of that.

(I was thinking of a creating a version control system whose .git directory equivalent is basically an archive file that can easily be emailed, etc.)
I think it inaccurate to think of the hive as an extension of phenotype of an individual bee. It’s a bit recursive since it is the collection of the individual bees — the hive — that builds the physical aspects of the hive. What is interesting here is the tantalizing notion of layers of awareness and individuality and what (or more interestingly where) is the human super-organism operating.
I do have the Maxi Wikipedia ZIM on my iPad Pro, which has 1TB.

I upgraded my wife's iPhone X to a 15 non-Pro, maxed to 512GB, but she has so many videos I doubt the ZIM will fit. I myself will keep my iPhone 12 until it either breaks or they no longer provide security updates for it. Not everyone changes to the latest iPhone.
LTT had a video on it [1] showing how it is done, and while obviously it's a jank implementation as presented, the idea is valid imho, and I do believe frore have something solid on their hands (pun intended).

with a laptop that actually had the moulding suited for airjets, and actual ability to talk to the computer and modulate the airjet electricity usage, I don't see why we couldn't have our cake and eat it too.

[1]: https://www.youtube.com/watch?v=ji5kZ3VdFDY
In addition to helping keep the library in development member organizations of OpenCV get some perks as a result of their support such as appearances on our live streams, press releases, and pull request priority. We have tiers for Bronze ($6k/yr), Silver ($30k/yr), Gold ($100k/yr) members with more benefits for each tier.
Do you mean "git clone"? I thought the idea about git is that you always take the code into your local machine before doing anything. Sure, github gives some bells and whistles to obviate the need from time to time, but that's basically decorations.
Amiga may have taken this furthest with Copper, a co-processor that was synced with the CRT signal and programmed in a DSL for timed changes of register values in the other chips: https://en.wikipedia.org/wiki/Amiga_Original_Chip_Set#Copper
I second this book recommendation! I just started it exactly to get a foothold on FPGA programming. It's very accessible.
This is great. No idea why it's some weird product when the whole value is teal silicone ring for straight, light purple silicone ring for not straight which you can get same day shipping on Amazon but if they manage to get it to catch on guess I don't care about the means.
Either they're lying about fake UFOs to manipulate the American public, or there really are UFOs and they've been lying about them for decades.

No matter which of these branches proves true, our government's rampant secrecy is illegitimate and offensive. We traded away good government for the illusion of safety in the nuclear age and we won't get it back until we organize to actually restrain our ruling elite.