skysight-inc/HackerNews huggingface dataset:
I invested a lot of time porting some parsing code I had written to Rust, with the vision that Rust is the memory-safe future. The code I was porting from used arenas, so I tried to use arenas in Rust also.

Using arenas required a bunch of lifetime annotations everywhere, but I was happy to do it if I could get provable memory safety.

I got everything working, but the moment I tried to wrap it in Python, it failed. The lifetime annotation on my struct was a problem. I tried to work around this by using ouroboros and the self-referencing struct pattern. But then I ran into another problem: the Rust arena I was using (Bumpalo) is not Sync, which means references to the arena are not Send. All of my arena-aware containers were storing references to the Arena and therefore were not Send, but wrapping in Python requires it to be Send. I wrote more about these challenges here: https://blog.reverberate.org/2021/12/19/arenas-and-rust.html

You might say "well don't use an arena, use Box, Rc, etc." But now you're telling me to write more complicated and less efficient code, just to make it work with Rust. That is a hard pill to swallow for what is supposed to be a systems language.
The imprisonment and terrorization of thousands of innocent civilians just because of their skin color and race... please dont go along with the attempt at calling these things just "internment camps"
"Please don't comment about the voting on comments. It never does any good, and it makes boring reading."

That's what dang was referring to, I believe, not some hypothetical implication.
Open, modular foundation for unique payments flows
Agreed. Personally I'm always grateful when someone joins and brings along a good up-to-date idea of how our particular languages/frameworks are used and taught by the rest of the world. It's so easy for a big internal codebase to devolve over time into a bunch of weird patterns, and forcing some newcomer/outsider perspectives onto it is a great corrective force.
As you should! Luckily we don't have to rely on their salespeople or marketing, since we have a technical draft we can read and evaluate.

Not defending the mentioned companies here, but comments like these add no value. What specifically about the IETF draft advances the business of violating user privacy? Would it be better for users if Google, Fastly, Apple and Cloudflare abstained from standardization processes?
I was about to shill!

Disclaimer: I'm an engineer at JITX. The core technology is a programming language for designs. It's a low level language for describing schematics and circuit boards, the kicker is that it's fully parametric and embedded into a high level language, which is stanza. The pitch I would give is that we're trying to do for hardware what GCC or NodeJS did for software engineering - everyone is hand coding assembly and manually checking it, we're building a compiler and set of libraries for getting things right and doing it fast.

I wouldn't just call it AI to automate circuit board design. We're definitely working on it and hiring folks for the tough optimization problems, but a lot of what we do is allow engineers to encode their expertise as reusable software components. I would say we're language and algorithm designers first, married to hardware designers.

For example, one of the cooler projects we did early in the pandemic was a mechanical keyboard designer that takes the JSON output of Keyboard Layout Editor and compiled it into a working circuit board and generated enclosure. I have it sitting in my office right now.

I may be overly biased but it's an awesome place to work. There are tons of interesting problems and great people. We have hardware experts designing boards, coming up with checks (think unit tests for hardware to automate design review), software folks doing our front end (a language server, custom VS Code extension to view circuit boards in a text editor), component selection, automatic placement, topological routing, web front end and backend, interesting and challenging DevOps, even real world compiler engineering - you name it. Every week is like the best course you've taken in CS - there so much to learn.

We're well funded and hiring. Since I joined in 2019 we've more than tripled in size and hiring! And frankly there's not many people working on this crucial problem. My email is in my profile if this sounds interesting to anyone.
> Hey, we are the bad guys you're talking about so who are we keeping this technology from?

Laughed out loud!
> You can rent a lot of movies for $150/month.

So do it. It takes seconds to cancel and subscribe. If you want access to everything all at once, then pay $150 per month. If you cannot afford $150 per month, then spend an extra minute or two per month canceling and subscribing.

I find it to be very convenient, and more convenient than it has ever been in my life.
What's wrong with just using a news aggregator? Follow stories and evaluate inter-rater reliability rather than any specific news outlet. I've found Google News pretty reliable for that.
Southern IL here

Present spring is looking to be both the coldest and hottest in recent memory. Really obnoxious.

For a couple weeks we got crazy powerful winds. Thrashed everything.

Right now we are in a drought.
take data of your USA customers and sell it to the highest bidder without their consent or even knowledge as you please. don't complain that I have the right to know you do that and disagree to you doing that.
At least you can force a burglar to crawl through glass. I've had burglars spend over two minutes exposed while trying to pry open my windows instead of just smashing the glass.

(If you mean windows that go down to your floor, yeah fair enough. Screws are still cheap and easy though)
I think some people may expect it to be something that it's not. I'm probably a broken clock on this point but it's really a fundamentally different programming paradigm (dispatch-oriented) than most anything else, and organizing your code in a way that expects and works well with that paradigm (and what that means for how code is compiled) is, in my opinion, critical. If that works well for your problems or the way you like to think about things then great, if not then you may come away quite frustrated.

Try to fight against dispatch and squeeze Julia into OO or functional or etc. paradigms and you're Gonna Have a Bad Time, in my opinion.
Sure, but they can't both cover it, as D can only sell it back to one of them to return to you. It only works if everyone essentially does the trade in reverse, which requires (illegal) coordination.
Genuinely curious: do most tech startups / tech-centric companies view "Senior SWEs" as people with similar backgrounds and abilities?

Do most skills as a Sr SWE transfer, e.g. from MSFT to Google to Apple to Netflix?
I was recently describing lawn darts to a younger man. He didn't believe they existed.
Maybe their product has features that would give users actual security, but are incorrectly implemented so they only provide the illusion of security. Which would fit the article perfectly, but I don't know if that's something I would mention in public if I was the CEO.
> do you your self a favor and search their ticket system for stack overflow

First of all, most of those erorors are about stack overflows in the compiler not the compiled program. And secondly, stack overflow isn't a memory safety issue like, say use-after-free, uninitialized variables, data races, etc. If you allow recursive function calls, you can't really prevent stack overflows.

> alloca() is dangerous for a reason

Rust doesn't have an equivalent of alloca.

> unsafe vec, really??

I'm not sure what you are referring to here.

> mutexes in threads, really??

What does this have to do with memory safety? The only language with threads I know of that doesn't have mutexes is Erlang. And rust Mutexes are better than mutexes in most other languages because you can't access the data protected by the mutex at all, unless you have a lock. And the lock is automatically freed when it goes out of scope.

> concurrent blocking IO in this decade??

Again, what does this have to do with memory safety? And for many applications blocking IO is fine. You don't always need the performance of async I/O which adds complexity. And if you do need async i/o, rust has options there too (just not in the standard library).

> also read their docs about their unsafeties, and concurrency deficiencies.

The Rust Programming Language book has one section of one chapter on "unsafety", and that is specifically on using the `unsafe` escape hatch. Yes, there is a separate book about how to write a `unsafe` code that maintains rust's safety garantees. but that is limited to `unsafe` blocks, which in many cases you can just avoid using. As compared to c or c++, where the entire language is full of potential safety problems.

> compare that to the docs of real safe languages. you won't find such chapters, because safe languages are safe, not just almost-safe.

What "real safe languages" would those be? Can they be used in all the same domains as rust?
I had so many hilarious conversations with opponents of voting diplomas. If you let people vote who don't know what they are voting for it just adds noise to the formula. What we need is a signal strong enough to drown out the noise.

1% is nothing in contrast with the number of people murdered by democracies. Elections give the impression it is not really important but it might just be the most important thing for most of us to do. It seems reasonable to force people to spend some time learning what it is all about. 1% is nothing compared to getting shot or blown up. Democracy is a well oiled machine that can put all of the jews on the train the next day. It can take us to mars but it cal also kill you with the most sophisticated machinery.
The radiation is more of a concern on Mars but they do have some decent single track.
Agree... we had slides, swings, and jungle gyms that were 8+ feet tall in the 70s and most of the 80s.. They removed the last of the big 15ft diameter merry-go-rounds in the 90s.
State machines aren’t exactly rocket science though, I don’t necessarily think writing one for your specific preferences/use cases is as bad of an idea as, say, writing your own ORM. It’s a pretty well understood concept.
Put up or shut up. You are making absolutely absurd statements/implications on this site that Elon was making serious, credible “coup” related statements and efforts.

You can either withdraw that nonsense or provide substantiation
Absolutely hate reading job description seeing languages/libs/frameworks that aren't suitable for application the business is trying to accomplish. Apps where UI suppose to be light and fast? BAM, using the bloat view lib. Apps suppose to have minimal api surface, BAM, using unnecessary crazy query component in front of RDMBS. I just can't make myself apply for jobs these days. Bite the bullet and learn marketing bs stuff to sell my own software and no longer worrying about bullshit toolchain is probably a good trade-off.
Sleep and functions like it should be [almost] banned...

They choose a time that computation happens. But computation should instead be done as soon as possible, and the output delayed to the necessary time.

For example, in an animation, you don't need to wake up the CPU every 16ms to compute the next frame. You should instead just compute all the frames and send it off to the GPU to display in order and with the right timings.
Depending on the graphics api, something needs to sleep somewhere to get decent latency. E.g. in vulkan, if the present mode is fifo, then rendering frames as fast as possible will fill the swapchain with stale frames that won't be presented for a while. It can be a lot better to sleep and render the frame right before it can be presented. But if you sleep a little too long, you will miss the frame, so you need a better sleep function like this.
> They seem to expect every single household to subscribe to 10 different streaming services.

Oh absolutely, it's frustrating. And whats even more frustrating is that some of those services refuse to have their content on other services but don't provide their service outside of the US.

I wanted to watch Dragon Ball Z last week. It's on Funamation and AnimeLab. Well neither of those services are available in Taiwan, so, only option is to pirate it.

I want to watch Star Trek - Strange New World. Not available on any service in Taiwan.

So I pay for Netflix, Apple TV, Disney+, and PrimeVideo.

HBO is available in Taiwan but you need Taiwan credit card... so I can't register with my Singapore card. Paramount, Hulu, not available here.

Sometimes I dont mind paying for these services but they don't want my money.

But at the same time I'm paying for 4, I don't want to pay for 10.

We are at the point of the priacy hat meme.

https://www.reddit.com/r/comics/comments/bcdlbf/hello_old_fr...
Maybe they do, maybe they don’t.

Who are you to unilaterally decide that’s the case?
A similar multi neutron resonance was seen in a study of neutron rich beryllium maybe 10ish years ago, but the details are escaping me. Anyway if you look at a plot of stable nuclei with neutron number on one axis and proton number on the other, the distribution generally doesn't follow the x=y line but unstead tends toward prefering nuclei with more neutrons than protons.

A natural question is whether protons are necessary at all but there are many competing factors at play. For instance protons repel each other electrostatically because they are charged, and that falls off as 1/r^2 because the electromagnetic force carrier (the photon) is massless. On the other hand, nucleons also exchange mesons with each other (pions in particular), and these are the carriers of so called "nuclear forces" which can create extremely strong attractive and repulsive forces depending on distance, and fall off much faster than 1/r^2 due to the uncertainty principle limiting the travel distance of massive particles like pions.

There are neutral, negative, and positively charged pions, and not all can be exchanged between all pairs of nucleons. For instance two neutrons can't exchange a charged pion with each other as this would violate charge conservation. However, a neutron and a proton can do so, which is part of why they are more tightly bound than neutron-neutron pairings. This may be the main reason why protons seem to be necessary to form stable nuclei.
Also, you can add a Goggle-enabled Brave as a search engine in Chrome by using the following url:

https://search.brave.com/goggles?q=%s+&source=web&goggles_id=https%253A%252F%252Fraw.githubusercontent.com%252Fpreambleai%252Fbrave-goggles%252Fmain%252Fcentrist-news&nav=site

(The %s stands in for the search, and the goggles_id specifies the link above.)
So what goes at the beginning of their list and who is going to develop and maintain the equivalent open source software?
You've either got a company with experience with locks trying to make a good IoT product, or a company with IoT experience trying to make a good lock.

The issue isn't so much that the intruder can hack the lock, as that the intruder can bypass the smarts of the lock with age-old techniques that had been bred out of traditional lock designs.
Code hosting services are still called forges. It's a useful generic term with a small syllable count.
Interesting to see this. Some European countries are beginning to question the need to vaccinate young children given the statistical characteristics.
Wat.

Of course learn the language you're going to use. But you can't expect to make do with just one.

In any case you'll face SQL; learn it. It's a language on its own, with interesting and non-intuitive concepts, a number of features, and great power.

Learn bash, because you'll have to talk to the OS somehow! (Yes, even macOS. But you don't normally deploy to macOS only.)

Learn some HTML and CSS, even if you're a backend developer, enough to show a simple status page for your service.

Read an intro into YAML, it's not that trivial! It's useful around great many modern tools. TOML is good to know, too.

These are all proper languages, worth knowing for a long time and learning. One could also say that Vi's system of commands is also a language, because it has syntax and is composable; worth knowing, too!

This is on top of your language of choice; for backend or mobile development you can usually make do with just one, for web frontend you have to know enough JS, HTML, and CSS at the least, TS is a really good idea, too.
Setting up something like Matomo instead of GA doesn't looks to me like a huge penalizing factor for a startup.

If anything, EU startups could benefit from better control over the tools they use. One interesting halo effect of Google seeing that much data is also that US startup from ex-googlers get a head start on many insights.
Try https://www.baamboozle.com/ remote learning teachers use it to make learning games and share their screen. And there's already lots of good content on it.
Isn't this something communists strived for? Common ownership of the means of production. It's interesting to see it in a capitalist context.
> Especially if the citizens of the UK hadn't explicitly voted to leave.

By a rather narrow margin – a less than 4% margin of victory, it could have very easily gone the other way.

And, the way the Brexit vote itself was structured leaves much to be desired. Many other countries have protections against constitutional-level issues being decided by a bare national majority. In spite of the UK's (unusual) lack of a codified national constitution, EU membership is undoubtedly a constitutional-level issue – indeed, many EU member states refer to their EU membership in their national constitutions.

In the US, a bare national majority is insufficient to amend the national constitution – instead, it requires 75% of states to approve (usually by vote of their state legislature, with state ratifying conventions as an alternative procedure which has only once been used). In Canada, most major constitutional amendments require approval by two-thirds of provincial legislatures representing at least 50% of Canada's population. Similarly, in Australia, to pass a constitutional amendment requires a referendum with a double majority – a majority nation-wide, and a majority in a majority of states.

If the UK had adopted an Australia-style approach to the Brexit referendum, "Leave" would have required not just a national majority, but also a majority in three out of the four constituent countries – a hurdle it failed to meet (England and Wales both voted to "Leave", but "Remain" won in Scotland and Northern Ireland). Given the lopsided-nature of the UK – England has over 80% of the population – you'd think protection for the smaller national constituents would be even more pressing than it is in Australia, Canada or the US – but that idea never seemed to occur to the Brexit referendum's architects.
Does it have any sync feature?
Is it just me or has the US Government been doing a lot of actions recently. Just today I saw two other articles about how the gov is cracking down on Juul, some anti right to repair company, etc. Is it just all getting published now?
OXO products are typically good, but I've found that they have problems with repairability. This is important because high-priced coffee equipment (e.g. coffee bean grinders and drip machines) can cost hundreds of dollars, and repairability is an important feature for manufacturers to justify the higher price of the equipment to customers.

I've found that unlike other manufacturers in the coffee world, OXO typically does not make replacement parts as easy to source, so the solution if an OXO machine breaks is typically to buy a new one. This nullifies any cost savings from going with OXO, versus pricier alternatives (that may also do the job better, while being easier to repair at the same time).
All eight Senators from CA, AZ, NV, and NM are Democrats, and I assume they "believe in climate change," although I'm not sure whether simply believing is going to make much of a difference.
Woah I hadn't. Looks super useful, thanks!
This is indeed a battle. One could even, by identifying patterns, refer to it as a "class struggle". But isn't it a little bit too telekinetic to suggest that the World Economic Forum is working to advance its ideology through Harley-Davidson?

What's happening is more like a lot of bugs trying to get into a box of food. The marketers and their lawyers have always used whatever tricks are at their disposal to sell one product and ship another, and if the latter is just a use license, so much the better. They don't need to be actively coordinated; their actions naturally support one another by damaging the box.

>The FTC also alleged that Harley-Davidson failed to fully disclose all of the terms of its warranty in a single document, requiring consumers to contact an authorized dealership for full details.

>By telling consumers their warranties will be voided if they choose third-party parts or repair services, the companies force consumers to use potentially more expensive options provided by the manufacturer. This violates the Warranty Act , which prohibits these clauses unless a manufacturer provides the required parts or services for free under the warranty or is granted an exception from the FTC.

The Warranty Act was enacted in 1975. This is not a new fight. It is an ongoing conflict that requires each generation to be engaged in defending the box and repairing it.
I started when I was 12, and quit around 21. I still get cravings, and I’m in my mid 30’s now. If I walk by someone smoking on the street, I take a loooong breath in as I go past them, and I can feel my body immediately releasing all sorts of feel-goods. It’s wild.
1. Why have licenses, then?

The default under copyright law is that any substantial copy is infringement.

A license is a legal document that grants someone permission to use a work that they otherwise would not have had.

However the law also gives its own permissions to use a work - it defines what is unlawful infringement and what is lawful fair use.

The code snippets that copilot generates look more like fair use than infringement. They are small, adapted to the destination context, and usually not direct copies of one source but more of an average of many different sources. And usually the programmer does not keep the suggestion that copilot suggests unmodified - the programmer does their own editing of the snippet afterwards to further tune it to the surrounding context.

2. What if I just use leaked sources of closed source software and call it fair use?

As pointed out upthread, if it the source code is leaked then there may be trade secret protections. The GPL specifically allows the code to be posted online, so by design it is not secret.
We just had one of the wettest, coolest springs in a long time here in the PNW - really haven't had a spring like this since 2011. And then right on cue the summer switch was turned on a couple of days ago and we're expecting to be in the 90s for a few days (up to 98 on Sunday). It's kind of jarring to go from ~60F cloudy&wet just about every day for the last couple of months to 90s over the course of just a few days.
So how many thousands of logins does the client have to do for this to binary search one key?