skysight-inc/HackerNews huggingface dataset:
I'm sure this is something they have considered as their own analytics program uses onclick to track outbound traffic - I assume it's a mix of speed, reliability and the ability to track without javascript.

Plus, if it was done on OnClick there would definitely be an add-on to disable the tracking on all browsers.
> Rust only ever allows one owner per data, so this will at least require a Rc or Arc to work. But even this becomes cumbersome quickly, not to mention the overhead from reference counts.

This takes 50 LOC, gives you a doubly-linked list that's memory safe, thread safe, and that has pretty much the same efficiency as a doubly-linked list using raw pointers. (Feel free to prove me wrong here, but I've written one, and I couldn't measure the difference on x86, i'd expect ARM to be even better because it has weaker atomics).

Compared with a Vec<T> or a HashMap<T>, what dominates the performance of a doubly-linked list is the pointer indirection to access the object, and the cost of that is pretty much the same whether you are using Arc<T>/Rc<T> or a raw pointer.

Also, a doubly linked list only makes much sense for relatively large objects and when you want O(1) splice, so whether you store 64-bit or 128-bit wide pointers doesn't matter at all, because the objects are big, and O(1) splice just modifies 4 pointers...
I don’t think the article’s comparison with Stripe is valid. The App Store is not just payment infrastructure. It provides distribution and discovery as well. A more valid comparison would be with Amazon.
The abusive boss is just an employee too
When Is the Revolution in Architecture Coming?
From the reference digging to the experimental bench to the data analysis, you make way more progress when you are working on what you really want to.

For those whose true interests lie squarely where today's academia is going, it would be hard to beat such a large well-ensconced system.[0]

But there still might not be enough research opportunities to go around, it seems like the odds of a young scientist ending up building a life's work are lower than ever, even in a well-supported field.

So it's not only those far from the mainstream who could benefit from an alternative.

And these are two different groups.

It would be really good if traditional scientific institutions could be about doubled in number by adding freshly-built ones which couldn't help but have some 21st century foundations to grow from. In a somewhat predictable way.

While at the same time completely dissimilar alternatives equal in number, almost like a safety net for the gifted who fall through the remaining cracks in the academic system, or who never manage to crawl up through those same cracks against the current to begin with.

So you can get more breakthroughs in unpredictable ways.

And get things that people really want because when that's the motivating factor you get more, and you get more for your money.

[0] It may be hard to beat now but that doen't mean it might not be better accomplished in the long run. The harder things like this are, the sooner you need to get started, like decades ago. So I already admire the New Science operators.
on x86 and arm. not on s390.
Bad colleagues tend to come to you with far more problems than solutions. Any colleague that is constantly complaining about everything, but never suggesting solutions (nor wanting to discuss them) is a major flag IMO.

Best colleagues I have had would point out something to be fixed / improved, and immediately suggest a tentative solution. Worst colleagues would just blame others (major red flag) for any issue they encounter, and never put energy in solving them.
Sir, I object. Not everyone who puts drugs in their butt is an addict. Some of us can plug a pill at a full-moon party every so often and go about the rest of our lives as usual thank-you-very-much.
Facebook teach ML to expire irrelevant information to improve performance
Yea for sure, it’s a lot like swift being protocol oriented too. It’s a major paradigm shift I have to enforce in my head manually still at this point tho
Once you have enough infrastructure in orbit you can start to recycle (kinetic) energy, reducing the need for fuel significantly.

https://en.wikipedia.org/wiki/Skyhook_(structure)
https://en.wikipedia.org/wiki/Space_tether

Also some fuels could be made away from the earth, making their transport easier as there would be less gravity and atmosphere to fight against (∆v would still be a thing of course).

https://en.wikipedia.org/wiki/Propellant_depot
https://en.wikipedia.org/wiki/Asteroid_mining
I did very few of these since I assumed management position.
Instead,I do less formal meetings,where things are discussed in a more casual style. I do point out positives/negatives if there's any without waiting for a specific meeting. For me,the biggest one is continuous development and I strongly believe that people should be learning things all the time instead of doing the same year after year. So I did offer various training paths, budgets for courses, even allocated time during the work hours so people could learn on their own. Result? Very very little motivation. People could have literally transformed their lives and careers if they would have taken it seriously, but instead it was bare minimum effort or no effort at all. Eventually I did change it and told people that they need to come up with their own things what they want to do and I'll approve it. Nobody did :( It wasn't much better on the hiring side too: we hired people with zero experience and told them they could do things that would double or triple their salaries in a few years and yet not much interest.
I am in recovery so that would help me.
why would I look at Python for performance when Go exists?

If you're aware of the issues and have other options, you wouldn't look to Python for performance unless it was a case where Python is just used to script pre-existing C libraries (ex: machine learning). For general performance, you would choose Go over Python. If you choose Python, it will be for some other reason such as ease of programming, extensive and well-developed libraries, ease of hiring Python programmers, etc., where Python is better than Go and fast enough.

I've always loved Python and have done a LOT of it (professionally and privately) over many years, but Go has replaced most of it. Having fast, concurrent apps statically compiled into a single executable is a huge improvement for many of my uses of Python, esp. server-side apps and local command line utilities. But I would still prefer Python as a teaching language, for machine learning, for quick one-off tasks (ex: format an ugly chunk of copied data into C++ source code), and possibly for code that I wanted others to write and maintain for me. (Python programmers are easier to hire than Go programmers.)
Morning Sex: Benefits, Positions, Tips, and More
For simple cases, I'll do that, but for longer commands, I've taken to doing

rc=0
long command || rc = $?
if (( rc == 0 ))...
Self-reference is allowed, but it prevents moving.

fn main() {
// ok
let mut inp = Input { words: vec![], phrase: String::from("foo bar") };
inp.words.push(&inp.phrase[0..3]);
inp.words.push(&inp.phrase[4..7]);
println!("{:?}", inp);

// this would give "cannot move out of `inp` because it is borrowed"
//let x = inp;
}
What has opensource got to do with it?
I used WebStorm for years.

But I stopped, because IDEs were too slow to adapt to current tech.

Text based tools can simply move faster.
So bad that most countries voluntarily fucked up their economy by closing international transport or even interstate or between cities, closed all bars, restaurants and even stop people visiting their families, to prevent it spreading
I'd rather just die
The Economist estimates the current victim count at 10M±3M. This is really not helped by the disorganization in some countries and the utterly fraudulent data reported by others (Russia, Egypt...)

https://www.economist.com/briefing/2021/05/15/there-have-bee...
Exactly. I've seen it on comments just posted but never like this. Would love to hear an explanation from @dang.
They're state laws. It's a 9th/10th Amendment issue. A federal billboard ban would certainly seem to violate the 1st.

A ban in California would seem illegal as well, due to the affirmative right to free speech contained in the California Constitution (see Pruneyard Shopping Center v. Robins).

Here in Maine, on-premises signs are allowed but have strict limitations:

https://legislature.maine.gov/statutes/23/title23sec1914.htm...
https://darwinawards.com/darwin/darwin2007-13.html
> more capable end of the spectrum

Actually rust is a grate language for programmers of the less capable end of the spectrum.

While it allows clever abstractions it generally discouraged and recommended to write simple code.

The borrow checker might seem like a clever abstraction, but it's just a build in code analytics tool you should use anyway when using C or C++ or well any language, and it generally nudges you to better structured code.

> Then, as now, they were people who hadn't had much contact with the average software developer and with the realities of software mass-production.

Except that more than just a few decisions in the rust design process where strongly influenced by the feedback of average developers, including people which just got started with programming.

Wrt. C++ I can completely agree, it's a completely over engineered language with endless gotchas with silently sneak into you code without you noticing and potentially causing UB if compiled with some compiler in some optimization levels for some target. Making such bugs completely bonkers to track down.

On the other hand in (safe) rust many of the problems user have come from the language helping you to not run into any of this and other bugs.

And all "hidden" complexity rust has is normally designed in a way so that you don't need to know it to use rust or even things related to it as long as you don't want to create some low level primitives which involve unsafe code.
IIRC it was related to 9/11 conspiracy theories. At the time, a lot of conspiracy garbage was forwarded through chain e-mail. This is one of two examples that I personally remember getting forwarded from a particular aunt (the "Bush Hid the Facts" text disappearing being "proof" for the whole inside job theory it presumably alludes to). The sort of stuff that aunt would nowadays share on that Face Website.

The other that I remember her sending me was along the lines of "OMG if you enter that planes flight number into MS Word 97 and set the font to Windings <variant whatever> you get a picture of a plane, two buildings, a skull and a Star of David!!1!eleven".

On a side note: If you entered the right combination of text into Excel 97, you could fly a plane over a fractal landscape ;-)

The kind of "logic" at work here is still used nowadays (e.g. the Sandy Hook school shooting conspiracy theory, with followers pointing towards the name appearing in a movie at the time). It still eludes me what the logic behind this is supposed to be. So if you plan a massive government conspiracy, you make sure to plant very precise, hidden clues all over the place in movies, TV shows, random office software and similar things years in advance, because... um.... why exactly?
That’s what hyperlink auditing with the ping attribute is for:

https://html.spec.whatwg.org/multipage/links.html#hyperlink-...

You put a `ping` attribute on a link, and when the user follows the link, the browser sends a request to the ping URL notifying it of the action.

Firefox disables it by default, which doesn’t seem like much of a privacy win considering JavaScript is enabled by default and can polyfill this functionality.
No I think these people are either being paid or are smoking crack, I haven’t used it much but when I have all (edit: “much of”, not all obviously) I’ve seen is soft-core porn and white nationalist or men’s rights propaganda. It’s actually really awful.

Even the soft core porn made me disgusted with humanity because of the terrible music. Someone will probably pop in and say “oh you have to let it learn what you like!” No I don’t.
This happened to Kodak.

Unfortunately it is a truism that MBA led companies are incentivized for short term profits, which translates to selling future innovation by outsourcing now.

They aren’t thinking about what the next generation will be doing (I.e. they will be contracting for the companies still innovating.)
The article doesn't give a single detail, so there's nothing to see, except some grandstanding on empty concepts.
It must be a really recent change in that case. For me the prompt to sign-up only comes up when I click on follow, a live stream or when trying to post a comment.
I wonder if they considered Flutter. I joined a startup that’s using React Native and I have to say, I dislike all the complexity around state management, styling in separate CSS files, JSX syntax for components, etc.

I much prefer the unified approach of Flutter (everything is in Dart and not scattered in 3 different places) and batteries included component library.

Not to mention, if you have a small team, Google Cloud Firestone plus Flutter is a very productive and elegant way to launch an app with a small team ... or even solo.
It's disappointing to see the tories ("The Conservatives" political party's nickname) knee jerk opposition. It would be nice to see more details on the actual trial (length and amount paid). That said, we basically know UBI works, it's just that no one has the balls to just do it...
I suspect that's at least partly because it's what you're used to. "July 10th" makes me pause for a second, as I think you're suggesting 'sometime in July', then you add a specific date to it.
> I'm pretty sure the compiler inferred a lot less back then (maybe 5-6 years ago now?)

If it was post Rust 1.0 then it did not. The more likely case is the combination of NLL and match ergonomics, which has made a lot of code way more comfortable, respectively by relaxing local borrows and avoiding a lot of minutia in pattern matches.
I have no idea really what you are talking about, but in the UK we have a standard layout. And no matter who I buy from they are all identical except for Lenovo Function key which is swapped with Control, but otherwise identical.

Except Apple who's keyboard is drastically different to literally everyone else's.

Why do they bother with such a poor layout if they are supposed to be such consumer centric?
I appreciate the responsibility for maintaining backward compatibility, but I got a different vibe from that blog post.

http://archives.miloush.net/michkap/archive/2008/03/25/83347...
“Move fast” is not about moving fast at all
Show HN: 24Trends – Daily Google trends of your country on Twitter
Hi HN!

Google Trends is underrated. This huge search engine is somewhat a projection of what the public has on their minds at a given time.

However, Trends have no API and it's not easy enough to go check trends regularly. You have to remind yourself to go to Trends website, choose your country etc.

Twitter is the perfect platform to have this. I've made a network of Twitter bots for sharing the Trends of each country 3 times a day. It works for 13+ countries (check Following) right now. The bot first posts a generated image of 20 trending topics and headlines. Then lists the trending topics, and if the account has enough followers it posts one related news link for each topic.

I had to dispose several accounts as they got marked as spam, and once that happens there is no going back... That's why I first start with an image and the list of trends as tweets first, then enable links once there's a decent follower base (around +100). It was difficult but interesting in hindsight trying to escape Twitter's spam filter. I needed an SMS number for each account. Thankfully there are services giving you burner SMS numbers starting $0.05 . Just need to get lucky they won't ask the number twice.

Technically it's a simple node.js script running on Google Cloud Functions. The function is triggered every hour and it checks the current time of countries. If it matches it retrieves the trends using https://github.com/pat310/google-trends-api package, generates the trends image and posts tweets one by one.

The setup is fragile. The google-trends-api package seems to use an academic API for Trends and can be shut down any time. Also Twitter is strict about bots (forbidden according to terms) and might shut the accounts down anytime. Anyways, it was fun to build it and now it's quite easy to kickstart a Twitter bot

Looking forward for your comments and feedbacks! Also let me know if you have any idea how I can spread it more.
Works for me:

#[derive(Debug)]
struct Input<'a>{
words: Vec<&'a str>,
phrase: &'a str,
}

fn main() {
let s="foo bar baz";
let input = Input {
words: s.split_whitespace().collect(),
phrase: s,
};
dbg!(input);
}

Compiling playground v0.0.1 (/playground)
Finished dev [unoptimized + debuginfo] target(s) in 1.15s
Running `target/debug/playground`
[src/main.rs:13] input = Input {
words: [
"foo",
"bar",
"baz",
],
phrase: "foo bar baz",
}
US ignoring its allies is nothing new, see Ukraine.
Did you publish your research?
"include footage from the cheater, not prerendered but as client state"

Don't you need that deeper system integration to achieve that in a way it can't be negated by the cheat?
Gosh! Where was this, if you don't mind me asking?

I live in Cornwall, am a programmer, and an amateur geologist so this post makes me very excited, hah!
It works, but it isn't what they want. The compiler won't allow borrowing the str slices from the owned String field.
It must be strange and interesting to run a company (supposedly an economic entity) with such high political involvement.
Their "autopilot ready" cars still ship with monocular center mounted vision system. I dont know what they are smoking there :/
Thank you for submitting it! It's a combination of all my interests and location.

Fascinating.
I think it was good for one context. As comments here mention, there are many other contexts:

1. Many jobs have fixed pay grades and no leverage.

2. There are buyers and sellers markets. Most of the advice was horrible for a recession.

3. Many jobs have other value. If you're a soft money researcher, lower salary may actually help you. If you're working for a not-for-profit, you need to consider where your salary is coming from.

I'll also mention: Exploding job offers aren't always b-llsh-t. If I have a 3 person startup and need a fourth person, and two strong candidates, I'll want to extend the offer to candidate number 2 if candidate number 1 doesn't accept. They're sometimes hardball negotiating tactics, but sometimes, business reality.
It takes less skill than you might imagine to buy ransomware on the black market and deploy it. You don’t need to write it yourself, you just need to handle the extortion side of things.
Ford announces infotainment screens to show ads from local billboards
Do you have a mechanical ps2 keyboard you recommend? Also what do you think of USB->PS2 converters?
I agree completely. Look at all of the things that K8s is growing with —- service mesh, etc. The platform is doing more and more for you.
I doubt Oracle is going to sue
This specific code compiles, you just can't create an instance of this struct and store references to `phrase` in `words`.
Yeah exactly.

Not sure if you realize the implication of what happens if you arm a bunch of mercenaries and then fire them and turn your backs on them.
What would happen law wise if one of the rovers had little guns and shot the other rover?
Wouldn't a Box<&'a str> put the reference itself, not the contents, in the heap?
I observe that the last sentence of your first paragraph is strongly at variance with the Rust leadership's self-image.

(See for example the "Empowerment, empowerment everywhere" RustConf 2020 keynote.)
Do we know that it works? Including accounting for sourcing the funds and the amount of demand-driven inflation that might result?
I think overall they got a greater mass into Mars orbit than Perseverance. They have bundled a rather large orbiter and the rover into a single mission, whereas Perseverance payload is entirely the surface rover and related modules.
Want to Launch? Updated Presentation on Launch by YC Partner Kat Manalac
I would very much like to see where they got their breakdown.

The "electrical vehicles by weight" looks pretty much like Tesla Model S breakdown.

Tesla is alone in choosing aluminium, while the rest of the industry goes with steel.

The engine block is the heaviest part in an ICE vehicle, but it's usually made of grey iron, and not really steel, with German cars some times using silicon-aluminium, or much rarely magnesium alloy.
I don't even have to get too close!
By balls, you mean money.

Look at the difficulty the service industry has now hiring people who would rather receive government relief and sit around the house than work a marginally better paying job—it’s not like they are using this time to pursue productive hobbies (pursuing their passions)... and look at the inflation and debt we’re incurring from free money
Linux Firefox
used Schemeflood!
v

It's not very
effective....
Pretty sure it's just a (slightly misquoted) Futurama reference.
> In D a string as a mutable array of immutable characters, for example. You can append things but not change the existing parts.

Nothing precludes designing a Rust string that way. You're still designing the mutation interface of the collection, and having a `&mut` to a structure doesn't really give you anything if the structure doesn't allow mutations. Hell, you could actually design your own pseudo-string, which derefs to an immutable string, and only provides for a select number of mutations.

But, given Rust's rules around mutation, what useful property would that yield exactly? I think that's one of the most interesting effects of Rust's strict ownership, very much an "if a tree falls" situation: if you mutate a string in place but there's no way for anyone else to observe that mutation, does it matter?

I can imagine that "append-only strings" would be useful in a world of multiple-ownership where you could delay COW copies without affecting co-owners (though even that seems… somewhat limited), but that's not really a thing in Rust. Given the cow-ownership would be not one but two layers of external wrappers (an Rc/Arc pointer, and some sort of internal mutability shim), it's not like you could not flatten the entire thing and build thread-safe append-only COW pseudo-strings.
So they got O2 into the bloodstream. How does the CO2 get out of it?
And be wanting to reserve it all for a longer period of time to disrupt the Bitcoin network.
Interesting how political parties are for or against this pilot project before the results are known. What happened to gathering evidence first and then making up one's mind? There have been other projects in Canada, Finland,Kenya and the Netherlands, all with “positive” results.

It is useful to ask what you are trying to achieve with an UBI?

* lift people out of poverty?

* save money on other social schemes, like pensions, disability payments, schooling or housing subsidies?

* save money on secondary effects of poverty (like lower average health, or more mental and psychological problems)?

* make everyone's life “better” (if so, define better)?

* boost the economy?

I am going to conduct my own personal UBI experiment starting February 2022. I will be gifted €1.000 per month for 48 months... and I am thinking about maybe blogging or vlogging or instagramming about my experiences.... Any suggestions from the HN crowd?
Yeah, I'm really disappointed by the reaction here. I don't even really like Python, but its ecosystem is incredible and as a language to glue together stuff, expose simple APIs, general server-side tasks, etc. it's just fine.

Also, the Python's C extension story is much better than most other popular languages, so that's something to think about as well if you seriously need performance in your app.
Who, like Mark Zuckerberg? :D