skysight-inc/HackerNews huggingface dataset:
Unsafety is contagious, the whole point of "unsafe {}" is to create a well defined interface between code that can rely on safety guarantees enforced by the compiler and code that needs to be manually checked by the developer.

Safe bindings to unsafe code need to enforce the invariants to make the calls safe, otherwise they are not safe.

Consider this code:

fn int_to_string(e: &mut u32) -> &mut String {
unsafe {
&mut*(e as *mut u32 as *mut String)
}
}

fn main() {
let mut i = 42u32;

let s = int_to_string(&mut i);

s.push_str("Ayyy");

println!("{}", s);
}

This int_to_string function is marked safe and can be called from main without
any unsafe block, yet if you run this code it will probably segfault. Or maybe
it'll format your hard drive, who knows. Because int_to_string is clearly unsound
and is broken.

If you just start tagging random, potentially unsound interfaces as safe, what's even the
point?

And if you agree that the code in this example is bad and "int_to_string" should definitely not be considered safe, why would that change if I rewrote it to make "int_to_string" a C++ function called through FFI instead?
Previous discussion:

https://news.ycombinator.com/item?id=24204323
Well, I did write that article, and I'm fairly confident that the only intersection with the narrative you're suggesting is that once sentence.
Wow, I don’t know if I should apologize or feel embarrassed or perhaps both!
Every VC in the world right now is betting on this becoming a thing... problem is that No Code/ Low Code as a product doesn't actually solve the problem that they are trying to solve.

The overarching concept of No Code/ Low Code is that "code" is the hard part of building software, ergo if we can make it so "normal" people don't have to code the problem is solved. Of course we all know that code isn't the hard part of the job- if code was the issue software developers would all be using No Code/ Low Code solutions already (as it's been pointed out, they've been around forever).

No Code/ Low Code is about selling accessibility to the wantrepreneur crowd... the same people that have an "app idea" that they want you to build. It's a huge market, but it isn't going to have an impact on software development any more than model rockets would have on the aerospace industry.

If the No Code/ Low Code tools were any good software developers would already be using them.

(When I am talking about No Code/ Low code, I am not talking about things like Webflow / Dreamweaver NOT solutions like Serverless.)
Asteroid mining.
> Have you tried international money transfers?

They transfer real money, immediately available upon receiving them.

International money transfer follow international regulations, you can make them speedier by breaking rules, which is usually not what you want if you receive or send money abroad legally (imagine a mom receiving money from her son having to explain why she received it from unofficial crypto channels)

International money transfer is insured, lost crypto are lost forever.

International money transfer it's a highly regulated market users have the rights to be informed of the cost of the operation before starting it, costs also include exchange rates (the operator does the operation for you, you send X and the receiver receive dollars or pound or euros directly, crypto don't include that), taxes collected upfront (crypto skips that) and of course service fees.

International money transfer also pass through IRS (or the equivalent agency there is in other countries) for amount higher than a certain threshold, to avoid money laundering.

Crypto skips that.

etc. etc. etc.

That's why it costs more.

But it is also more secure and less suspicious for the authorities.

E-mail had no such downsides.
I might be wrong but this seems like a very US-centric idea. For most of the developed world trains fill this need very well, while the US has had problems with their rail network for reasons partially based on geography, partially based on population density, and partially based on their own fault. I think this explains it pretty well: https://www.youtube.com/watch?v=mbEfzuCLoAQ

The solution is not aircraft, the solution is more and better trains. Or perhaps autonomous buses/trucks depending on how far out you look.
Nope, I guess this is a Linux or at least platform-independent command line interface program.

You are probably confused by the powershell which seems to be available for multiple platforms nowadays, see https://aka.ms/pscore6
The oral polio vaccine is a live vaccine. It is much more effective than the injected dead vaccine we now get in the west but it does occasionally cause polio outbreaks...
I can not digest fructose, but what helps me is having glucose with every meal eating out,
Being intolerant to fructose can also lead to depression if undiagnosed.
An exoplanet is just any planet outisde our own star system. You're thinking of "rogue planets".
These libraries must contain a list of types which they consider "mostly equivalent" between Rust and C++ in order to facilitate the bridge, e.g. Rust's `Box` and C++'s `unique_ptr`. I would be interested in reading the exhaustive list of the types that are considered equivalent; surely there must be subtle semantic differences to account for.
Multiple fallacies in this thinking, see https://thezvi.wordpress.com/2019/12/29/perfect-competition/
> demanding ethical behavior from our employers

This is a huge one. For every Tim Bray, there are thousands who can't afford to give up a paycheck for the sake of standing up for moral principles. As a workforce, we do not have the political capital within our companies to hold them ethically accountable. I wonder a lot about how to change this.
https://www.ovh.com/fr/solutions/load-balancer/

https://aws.amazon.com/en/elasticloadbalancing/pricing/?nc=s...

https://azure.microsoft.com/pricing/details/load-balancer/

https://cloud.google.com/compute/all-pricing#lb

https://www.ibm.com/cloud/load-balancer

https://www.dailyhostnews.com/load-balancer-comparison-aliba...
so it is perfectly reasonable for Epic to target what they see as the biggest problem-areas firsT

Epic is the problem in the case of Fortnite. They are no more ethical than the Candy Crush, Farmville’s of the world.

What happen to HN users who love Big Government wanting fo go after all of the “game” companies who were milking consumers selling loot boxes and virtual currency?

and that escape hatch isn't applicable to the mobile app market.

That escape hatch is called Android.

But it isn’t like we are talking about great innovative games for the most part on mobile. Mobile is mostly made up of pay to win games and “whales” buying virtual currency for dance moves. If the entire play to win games completely disappeared nothing of value would be loss.

If Apple made a rule banning in app purchases for games or at least banning consumables, it would be a better experience for customers. The entire pay to win mobile game ecosystem is a bigger stain on the iPhone than in app purchases.

I have sympathy for the Basecamp’s of the world. The Epics, not so much.
Wireless Hacking in Kali Linux
I misspoke. I wanted to say that the money from the governments are part of the revenue as "support/consulting for big on-premise deployments". Sorry about that.

In any case, I would be surprised that Element relies on getting significant part of their revenue from the SaaS. Isn't p2p-matrix going to cannibalize that market? I could swear that the strategy for you would be to chase the enterprise/government market and let p2p-matrix as an alternative for network effects and/or those who don't want to pay and prefer to manage things themselves.
Furniture Giant IKEA Recreates Its 2021 Catalogue in Animal Crossing
I think the argument is about market trends not IP/company ideas... still a valid criticism though
The DNS records in this case are hosted on Cloudflare servers, so presumably for free.

If looking at the domain registrar instead, we find the registrar `easyDNS.com`. Their payment options aren't public, so I can't say for sure. I can however say that there is no requirement for domains to be paid through an identifiable mean.

Take for example the registrar `njal.la`, a service founded by Peter Sunde, that accepts payment in various crypto-currency.
I follow the What da Math[0] channel on YouTube to keep up with the latest news on cosmology. I highly recommend it. Very thorough and with daily updates.

[0] https://youtube.com/user/whatdamath
Imagine thinking BBB is anything more than Yelp.
If you think this is cool, you should definitely buy the book this advert is about.
Windows 1.0 didn't actually use box-drawing characters for any of this, of course. For example, the System menu in the top left corner of each window was three horizontal lines, just like a hamburger menu of today. Scrollbar buttons did not look like any box-drawing character.

The Maximize button in the top right did look like a box-drawing character, but that's really about the only resemblance I see.

(I developed a DOS GUI for email, Transend PC, in the early '80s that used box-drawing characters, and soon after started writing SQLWindows for Windows 1.0, so pretty familiar with both.)
I couldn't disagree more when it comes to my personal experience, but I don't get why you're being downvoted... my pc I built myself has started crashing from time to time since I switched the graphics card, and while I happen to get pleasure from this sort of pain I wouldn't exactly wish it on other people. the tone of this comment gives voice to the exact kind of mentality of a person who shouldn't build their own stuff... it is absolutely not for people who don't like having to fuck with their machines at inconvenient times. it is hugely rewarding for people who do (even if they have a frown on their face while they're fixing it).
This article seems to be saying the rich are leaving New York. And the world that caters to them (expensive restaurants, etc.) is suffering. This is true.

But as you say falling rents offer more opportunities for the culture and lifestyle aspects of the city.

Also, this post rattles off a bunch of negatives, but fails to offer any alternative to rival NYC. South Florida or Phoenix? Maybe one, but certainly not yet.
If we put half the energy we use up arguing about Oumuamua into detecting more interstellar objects we would have the data to end this debate.

I'm a fan of the pragmatic mathematical approach. This was the first thing detected. The chances that the first result is also any sort of outlier are very slim. Detect and track some more of these objects. I'd bet good money that Oumuamua's motion is very explainable once we get some better data from other, similar, objects.
I almost got scammed when looking to buy a miter saw from a big box store. I went to the websites of Lowe’s and Home Depot after doing some research, and seeing lots of reviews on the product by different accounts saying it was $200 cheaper in other places (but not saying where - that’s the interesting thing!). Searching for the model number brought me to a couple places that were selling at the price touted by the reviewers. On one of the sites I got as far as the PayPal checkout button, but didn’t pull the trigger until emailing. Couldn’t find contact info aside from a web form and realized what was going on. Interesting tactic.
> The question I'd ask is can a dropshipper avoid selling counterfeits? They never inspect the product for QC.

It's apparent that dropshippers know they are being dishonest and simply don't care, in a similar manner how fraudsters don't care if their victims get the shaft.
I actually love the core ideas of this piece, and I really don't like the style. The OP has a point, this is pretty like critical theory and shares some of the delighting in obscurities hidden in large words.
Hacking Wireless Network
I made a hacking script for hacking wireless networks
Try it at www.github.com/error434/wirehack
Star and Watch it
Contribute by adding issues and forking the project
Thanks
Uber’s Former CSO Charged with Paying $100k in Bitcoin to Hide Data Breach
This is correct. malloc_trim() can make the unused memory pages (within an mmap() that malloc did) available for use by other processes using madvise() (turning them from grey squares into white squares in the linked article's visualisation), but it does leave holes in the address space.

This is what the MMAP_THRESHOLD tunable solves. It makes that allocations larger than that many Bytes are served via their own mmap that can be munmapped in independence.

I use env MALLOC_MMAP_THRESHOLD_=65536 to reduce the memory-fragmentation wasted RAM of my program from 6.5 GB to 0.8 GB.

The benefit of this is that you don't have to decide at which points to call malloc_trim(). But it's expected to be a bit slower because mmap() takes a while. Choosing between malloc_trim() vs MALLOC_MMAP_THRESHOLD_ is dual to choosing between GC vs reference counting -- higher memory use for a while and having to choose when to clean up vs higher per-operation cost.
This is just arbitrage over time and space, why is it so hard for people to understand that information is also an economic good. Look closely at your life and try to find when you are not doing it. We all know: "It is difficult to get a man to understand something, when his salary depends on his not understanding it", we need something like: "It is difficult to get a man to understand something is wrong when he is doing it".
Head of speech recognition, Kelly Davis, leaves Mozilla
Using AI to identify breakout technology or trends that are set to go mainstream.

The benefit is that the operators of said technology can 'invest' in that bandwagon and reap piggy-back profits, while mitigating the inherent risk of actually developing those technologies or trends from scratch.
> they make something seem higher quality.

Isn't that fraud?
I recently moved to Vietnam, and I sometimes get awfully slow connection speeds to the mirrors nearby my city, to a point that switching to US mirrors is faster. (ftp.[kr|sg].debian.org)
Further we look into the void, further we see how vast it is in length of time and breadth of space. And in that void we're a tiny speck of dust on an already tiny speck of dust. For me, looking at zoomable deep space telescope imagery, it's a 50/50 proposition, either we have the only miracle of life in existence, or it's prolific.

Deepest visible light image of 10,000 galaxies - https://www.spacetelescope.org/images/heic0406a/zoomable/

NGC 1866 star cluster - https://www.spacetelescope.org/images/potw1847a/zoomable/

Runaway galaxy UGC 10214 with thousands of galaxies in backdrop - https://www.spacetelescope.org/images/heic0206a/zoomable/

Abell 2218, a rich glaxy cluster composed of thousands of galaxies - https://www.spacetelescope.org/images/heic0814a/zoomable/

Gordo ("The Fat One") - enormous galaxy cluster with mass of three million billion Suns - https://www.spacetelescope.org/images/potw1802a/zoomable/

Gallery of more of these at https://www.spacetelescope.org/images/archive/zoomable/ - follow a delightful thumbnail, then desperately seek the tiny buried zoomable links on subsequent pages.
This answer reminds me of the classic HN comment - why use Dropbox when "you can already build such a system yourself quite trivially by getting an FTP account, mounting it locally with curlftpfs, and then using SVN or CVS on the mounted filesystem. From Windows or Mac, this FTP account could be accessed through built-in software."

People value software that's easy to use. That command you typed is a Frankenstein's monster.

https://news.ycombinator.com/item?id=9224
Thank you for this comment, and thanks to saagarjha for the blog post. I’ve had the feeling over the past year or so, that Homebrew is getting in the way of other steps that I’d like to take to secure my system.

(And I’ve been confused by the policy of “absolutely no root until something goes wrong; then we tell you to use sudo to run terrifyingly broad commands.”)
Like they cannot dictate on consoles, nor on Symbian, J2ME, Brew, Windows CE/Pocket PC, Blackberry, BluRay, TV set top boxes,...

They are just PC spoiled.
I don't think the permissions model in mobile OSes was good to start although now it's slightly better. The web is where "they" got it right.
You could buy it on steam and as long as you only played it for less than 2 hours they should reimburse you.

I know it's not a good old demo.
Whats your company called? I'm very interested in this as a hobby. Farmbot, small robot co, etc
Ask someone who knows how taxes work what a 'tax deduction' is. You'll be surprised!
That what I do now, one thing to note though is that the "-i" option is not always available. Usually, now, it is, but we still have a couple of Solaris servers at work that don't support it.

This, btw, is why I hate shell scripts. There are so many variants of bourne shells and UNIX tools that writing a portable script is a minefield, as if properly dealing with spaces wasn't tricky enough...
Sure, the line is porous, but if it can be fixed by doing something with software that is documented by the manufacturer then I think it's definitely not bricked. In this case booting from recovery.
Unless I've been reading absolute bullshit my entire life...

The BBB is and always has been a literal "you give BBB money, we give you good rating - no money, no rating/bad rating"

They had good enough PR that they made themselves look like an official government/whatever else trustable entity...

They're literally just a private business with a name that was good enough to fool people into thinking they're legit/worth something.

Can somebody correct me on this? Am I crazy?
You can run it in a subshell pretty easily, like this:

$ (cd tmp && find . -maxdepth 1 -type f)
Their web stuff comes from MDN.
Ask HN: What’s best &lt$100 purchase that made your unexpected WFH-life better?
I have a copy paste dump that I did a few months back to show someone how I was working, happy to pass that along. I wouldn't make claims that the way I'm using things are the best but so far I've been happy with the general approach. There's a simple createActions and a more complex one that handles namespacing.

https://gist.github.com/weeksie/04f41329d0015e2128209df9f9de...

I skimmed the debounce middleware from this guy Nir Kaufman who has some pretty good things to say about front end architecture. Generally with Redux we have a system that can absolutely provide real event-driven CQRS style front end so it seems crazy to ignore that in favor of managing async thunks like it's 2004 and we've all just discovered how to put an XMLHTTPRequest on an onclick handler or something.

Outside of that core.effects file, I put all of the async app logic in custom middleware as well. YMMV but using a framework for replacing const declarations and switch statements is overkill.

The broader point is that if you're going to create utilities like that, it's often worth just rolling your own. When you attach a core part of your application to a framework you've signed up for the ride. I realize it seems like I'm being an asshole to acemarke, who appears to be a perfectly lovely dude, if a little passive-aggressive, but I sincerely feel like pushing libraries for problems that shouldn't require libraries is making our ecosystem worse.
No. But the whole idea of my support behind Matrix is that it allows for federation and distribution of power among different companies and entities.

If the development of Matrix is somewhat secured and if Matthew and the team has already been compensated for their work, I'd rather support other players than concentrating it further on Matthew's hands.
Come on. We had long past the ASCII only era.
$2T is not enough?
Now do tree planting - aka reforestation
Dropshippers don't _have_ to be exporters; there's plenty of companies that will handle an order on your behalf that are based in the US/UK/EU/<insert your country here>. Isn’t this just retail?
FWIW, Tesseract does pretty well on the second image (though I don't know how well it would do on the uncropped version):

THE NORTH STAR.

ee ee

ROCHESTER, DECEMBER 3, 1817.

— — ——--

‘THE COLORED CONVENTION,

We give Mr. Nell’s report of the doings of
this Convention, as the best we have scen. |
The crowded state of our columns prevent:
our publishing in the present number, any of
the able and interesting reports which en-.
gaged the attention of that body. We shall
attead to them in our next.

For the confidence reposed in me,
Léo Major
List all files and no directories :

ls -1p | grep -v '/$'

You may wrap it in an alias or .bashrc function. I use the reverse (list only directories):

function lsd {
ls -1p $* | grep '/$'
}
You should check out:

https://github.com/justinmk/vim-dirvish
> this assertion to be performed in safe Rust code,

This assertion is always performed in safe Rust code. That's how you turn unsafe code into safe code: you write "unsafe { }" in safe code. That this does this in the body of a macro is not material.

(I know you disagree and don't think we're going to get anywhere, and frankly, find your aggressiveness really offputting.)
WoW, lots of angry words. West has its problems but they don't compare to China.

But to the current point if Google is restricted in China why should TikTok have free reign ?

And to elaborate on threat to the world:

1. Who caused current pandemic and why?

2. How many died in Wuhan any why there is no honest disclose despite entire world suffering?

3. Why China is engaged in border conflict with every single neighbor on some pretext or other?

4. How do you justify oppressive social credit system?
It's obvious after reading it, but I can't say I've thought about it like that. Interesting take.
Newspapers join attack on App Store, ask for Apple’s cut to be halved
In backend, most state is nicely stored in a database, in frontend, if you don’t have good foundations for component state state vs app state vs server state, then a lot of things become complicated for a decently sized app.

If you mix everything in one then you have a crazy ball of goo that’s rendering the whole UI tree everytime something small happens. Sure vdom is fast but you’ll still feel it for large apps because generating that vdom may call expensive functions over and over.

Svelte is nice but I haven’t used it for a large project. I do swear by having a good separation of those states. It has served me well for over a decade building UIs in different frameworks.

When component state changes, only that component changes. E.g whether a dropdown is opened.

When appState, changes the whole app tree is vdom diff rendered. Immutability helps here. Props/context are threaded all the way down. E.g the current light/dark theme

ServerState should be subscribed individually by components that need it, and only the components looking at that state render. (E.g List of items from GET call, when you update the item, an update only needs to happen in that one place that keeps its data synced with server)
Dropshipper also absorbs the losses from credit card fraud, de-risking ecommerce for the manufacturer.
The uploading (in a peer to peer sense) I've always found interesting. Because most of the time, a casual downloader who doesn't seed, but only uploads for the duration of their download, would actually upload very little. How much do they need to upload to be in violation of copyright? Does any part of the upload need to be convertable into part of the original work?

For instance, let's say the bittorrent protocol was altered such that instead of pieces, you're assigned random bits to upload that are never enough to be assembled into any part of the original file in human watchable form. Have you actually violated copyright if you upload some of these bits?

Eg what if you uploaded a single bit (a 1 or a 0). Clearly not in violation. How many bits do you need to upload to be in violation?