skysight-inc/HackerNews huggingface dataset:
Unnecessary is a question of taste, right?

foo(void) seems less likely to cause confusion to anyone who hasn't got that C vs C++ distinction uppermost in their mind - I didn't. Nobody knows C++, we all know a subset of it and a smaller subset than we think we do and actually use, despite pretty constant study! Anything you do that makes a reader less likely to be confused, to make it less likely that they will or should break their flow by looking up the rule, is a good thing (tm).

C++ suffers from "macho coding" styles and ethos quite badly. "I /believe/ I understand this subtlety at this moment so anyone who doesn't is stupid." Even when we didn't understand it ourselves just last week we forget it(!) We fool ourselves into thinking anyone who hasn't got at least a decade of hacking C++ every day is unworthy of reading our code, possibly pretending that 6 months can attain that level of oneness with changing standards.

I try to use popular and safer features without thinking about it and if I want to use something slightly less popular when there is a choice, I ask "what problem am I solving? Is lowering readability a price I'm happy to pay here?" Before charging ahead with it. I probably classify some of the latter as the former due to over-familiarity.

The ideal C++ code is rapidly readable and understandable without extremely taxing effort by a smart highschool student with 2-3 months of C++ experience. (Note the use of the word ideal in that sentence). s/C++/any language/ is also applicable.

Other than following the style of the project you're working on is there any reason to use a reference ever over say a const pointer? Or a const pointer to a const object? The syntax then makes it clear you're not dealing with a pass-by-value copy. Maybe in another world everything would be const by default and have to be marked mutable then references might go away - but C++ couldn't do that and compile C which explains /some/ of the tension inside the language between various C++ features. Shame they didn't make references const by default if they had to introduce them. And member functions defaulting to const and explicit constructors by default. Const construction by default etc. There was an opportunity lost a long time ago to tighten up everything that isn't legal C as far as possible with the programmer having the option with an additional keyword.
Notre Dame was not built in one hit, and then unchanged since.

Throughout its life, it has been added to, repaired, and modified as necessary.
>This isn't a children's playground.

It shouldn't be, but it currently is. Over here in the UK we will probably end up with Boris 'fuck business' Johnson in power by the end of next week or so, just to complete the shitshow triumvirate that has heralded the swansong of the Conservative party.

The only silver lining I can see of the present political zeitgiest, is that Marx was being extremely perceptive when he said that history repeats itself twice. We are currently deep into the farce stage with no signs of slowing. If any of these folks were in any way competent, we would be in real trouble.
This is an image processing project. It's tradition to demo it to the world exclusively using grainy low resolution images. In this case it needs animation too, so gifs are the obvious choice!
> so that they can introduce it to their own children

I must be missing something. Why is must something be under copyright in order for you to share it with your kids?
I know the term, I was just extending your use of it.
Failing upwards at its finest.
In fact, borrowing $16 billion from China to give it to farmers hurt by tariffs against China.
Germany is also a first-to-file country, although a court case can soften this when overwhelming evidence is presented, which happens very rarely.

Having been bit by this myself once, with someone registering my trademark after I failed to do it correctly, i'm a bit unhappy about the state of the law, but at least it provides a sense of security in simplicity, and I can't feel it being predatory.

In the case of China it surely feels in a different context as they are brazenly cloning and copying everything under the sun, but that doesn't really change the merit/drawbacks of the legal basis.
Did Red Tape Kill a Man on Annapurna?
Business as usual with Chinese, when we are going to stop dealing with them? Is already proved their concentration camp, digital tirany and permanent attack on any other country. Commercial ban now and blacklist all chinese companies before it’s too late.
So many smart tech people see IP as an issue when in actuality it's not much different from xenophobia stemming from blue-collar job "loss" in the US.

Accept it will happen and become better from it.
Where's the line though? What if you manage to blow up a building using nothing but your computer, outside of the US, as a non-US citizen. Should you then be subjected to US law?
I have a netflix subscription but I torrent all my movies/series for the convenience of the player.

I want to put the subtitles where I want and pick the font, I want to be able to apply image filters to my movie (I use a monitor calibrated for photo, and it is not ideal for movies, it is much easier to apply a filter than to switch my monitor calibration), also I watch things while working and mpv is much lighter than any browser, I love to be able to seek with the mouse wheel, the stereo mixing on netflix is often horrible and I can't hear the dialogues... There are tons of argument in favor of a real video player.
Well, i think they word "blinded" was overstated, but could be more accurately compared to the "blinded" you might say when someone has their high-beam lights on as you are driving down the highways and it is hard to see. For starters, the plane was at least 10,000 feet if they are 40 km from airport (that is 3,048m or 3 km). if you take any of those green pen lasers and hold it against your skin for an hour it won't burn it. Now, as the focused point of light gets further away the dot grows in size (lasers are great for keeping the light beam together, but it still spreads). So if the plane was at least 3km directly above you, it wouldn't shoot through the floor. But if it was say 45 degrees above and away, that would be 5 km. (remember, the article said it was 40 km from airport, so it wasn't skimming the roof tops - it would be holding at 3km vertical). So, at 5 kms, the pen laser dot would be huge (diluted). Have a look at this physics article https://www.physics.utoronto.ca/~jharlow/teaching/lasers.htm...
> [...], but is that it.

Yes.

I guess people would even pay for Spotify, if it's DRM free (which means the stuff on it can be copied), but that is still considered "radical" (in the Overton window) for shareholders of media distributors.

That "Save your music offline" is a feature in 2019 is ridiculous.
RangeInclusive is an interesting API:

1. How does this handle ranges whose length is larger than can be represented in an integer?

2. How does iterating a range work for floats? It looks like it just adds one [1], won't this mean that it will loop forever if the next representable float is +2?

1: https://doc.rust-lang.org/src/core/iter/range.rs.html#297
Let’s do it
I'm not convinced that his source broke the law. At the time, Manning was a legal agent of the US gov and presumably had the clearance to view confidential information. The information he attempted to obtain was password protected, but putting a password on a file doesn't doesn't make it a crime to access it if you have legal secret clearance. The crime was handing the info to Assange, which was committed by Manning and who was prosecuted for it.

By analogy, an employee at a bank isn't a criminal for spinning the dial on the vault. They are a bank employee, they have permission to work on-site with the bank's money, be in the vault, and operate their teller station which has the vault's money. it may be against the bank's regulation to open the vault without authorization, but a guy on the outside asking a bank employee to try a vault combo isn't breaking the law if the bank employee was previously authorized to access it. The crime is taking the green papers from the vault and transporting them off bank premises.
H.264 is magic (2016)
Another modern Forth that has a cross-compiler to make Windows, Linux, Mac, Android, Raspberry Pi, and iPhone executables is 8th.

https://8th-dev.com/

It comes bundled with the C++ based JUCE GUI framework, SQLite, ODBC, encrypted binaries, JSON support, and a lot of support for other things that you typically don't see in a tool written by one person. The more expensive licenses come with AWS and automotive Linux support, so nifty for this area.

Sadly, it is closed source and commercial (although you can get source with an enterprise license I think). On the plus side, it is really cheap (there is a free version too I believe) and the main developer seems to add user requested features and fix bug reports very quickly.

I obviously wouldn't write a production system in it (although I'm sure you could), but I wouldn't mind having a fun REPL based language to write simple and easy to distribute cross-platform desktop apps.
Everest is so fascinating because it makes the simplest things so hard and dangerous. A man literally died waiting in line too long.
Mind Enhancing Drugs?
Hi everyone! Today in my python course, my professor was talking about how majority of students in his most popular calculus course at a top university take drugs to enhance there abilities. I could only imagine this was referring to adderall but I was wondering if there’s something else people recommend or have heard of? If they are using that to gain an upper hand I’m interested to see if it really works.
The Fixers Behind the Factories
No, it never does that optimization:

https://play.rust-lang.org/?version=stable&mode=release&edit...

(see assembly output)

Edit 2: I lied: Rust doesn't perform such an optimization but LLVM does, -argpromote. But it only works if the callee is compiled in the same LLVM module as the caller (or with non-thin LTO), and is not visible outside that module. And since it has to respect pointer identity, it only works in a subset of cases.

Original post:

It arguably cannot, because you can cast the reference to a raw pointer and compare it to other pointers, though I don't think there's been a proper discussion on whether or not references are guaranteed to preserve pointer identity.

Edit 1: However, Rust's compilation model does theoretically allow the compiler to modify a function's ABI based on its implementation, at least in some cases, so it could theoretically perform the optimization only when calling functions which it knows don't care about pointer identity. That would avoid violating the aforementioned guarantee that may or may not exist, but it would be less reliable, as the compiler's analysis would inevitably lose track of some pointer values and treat them as escaping, thus potentially identity-sensitive, when they're actually not.
China’s economy is very dependent on foreign markets, both for exports of its manufactured goods and for acquiring the commodities needed for that. Their currency peg further limits their options. If they go too low commodities become unaffordable and if they go too high exports lose competitiveness.
At this point I feel like I'm psychic. Every single time I see an image processing project posted on here I think to myself "I bet the only examples are tiny low resolution thumbnails" and every. single. time. I'm proven right. Whyyyyyyy?

To be fair, this particular application doesn't really need more to show it's improvement over other approaches, but still.
FYI it's "work ethic", not "ethics".
The Rise of the Online-Only Relationship
The whole point of TPP was to strengthen trade links between Asia/Pacific nations except China. Which would have helped strengthen TPP member defenses against trade moves by China.
>We DO know that at our current population and current level of technology and/or level of comfort, the world CANNOT hold the number of people that are currently occupying it.

Do we? I'm pretty sure that the simple fact these people ARE currently occupying the globe proves this false.

Now, if you mean cannot forever hold this many people, well, perhaps - but assuming all technological advancement and rollout will cease seem to fly in the face of history.
It's not the ghost of Steve Jobs making the call here, but some tier 0 script-following customer support peon at an outsourcing company's cubicle farm in Manila.
I read that some of them are basically babysat the way up and put everyone in danger just by existing there.
The Airline CEO Who Cancelled His Salary
‘A one-person newsdesk’: Predictions from an early computer age
No, I'm not. CO2 has increased more than temperature, but both have increased, as you can see from the graph on the link I included next to that statement.
Which is a good thing. A nice gesture by the USA. WHich is now being abused by a country that obviously being very antagonistic.
Common law trademark rights are automatic. Registration is just a stronger claim with more rights to damages. In fact to get a registered mark you must first use it in commerce as a common law mark.
> its just extortion by making artificial monopolies plain and simple.

I agree, that is done by the state. They put the rules.
It's the ignorance of journalists to any technical field.

Think about how ignorant you know journalists are on any technical subject you have expertise in, then keep that in mind any time you read a new article about a technical subject you have no knowledge in.
Most streaming services let you download the media to save on bandwidth. My entire music library on Spotify is downloaded so I don't have to worry about connectivity issues. You can do similar things with Netflix.

It's also easier for me to move to different devices, because all I have to do is sign into Spotify. Manually transferring songs like I used to with an iPod is something I don't want to have to go back to.
I wonder if a neural net could be trained on this problem, to "scour" en masse
I wholeheartedly agree with your conclusion. I strongly believe in public financing of elections.

Also, I appreciate your alternate view on this case. I will definitely be revisiting the facts in the light of your comment to reconsider my position.
U.S. Beer Industry Blames Trump Tariffs for 40k Job Losses
> https://stripe.ian.sh/ is a prime example of this.

It used to be. All his EV certs were revoked.
Lots of very good discussion there; it's quite an interesting topic. Circumcision is another practice that seems likely to be viewed more harshly in the future, but doesn't seem to get much traction in popular contemporary debates.
>The UK retained possession of the Chagos archipelago after Mauritius gained independence in 1968, effectively paying Mauritius more than £4m for the islands.

Is the idea here that this deal was unfair?
> this problem has been solved in real life, at least in the U.S.

I haven't spent enough time in the US to have an opinion about it, but in many places this is not true. For example, taxi services in many countries seem to pretty commonly be ripe for dodgy behaviours with little accountability.

It's really about that accountability - what are you going to do against an internet entity which scammed you? How effective is that action going to be?
Atari 800 vs. Commodore 64 – The Brief Tale of Two 8-Bit Home Computers
The difference would be whether that only impacts sales in Germany, or impacts sales everywhere (under the name trademarked by the copycat in Germany).

My impression from the reddit thread is that Apple would face legal problems in China if Apple allows sales in countries like Taiwan, but that impression may be incorrect.

Either way I agree that they appear to be incompetent wrt legal matters.
OpenSFM is quite out of date, so it's quite inefficient and rather inaccurate (e.g. exhaustive matching is O(n^2), and there are a lot of smarter ways that are closer to O(n))

Also, one of the main steps of mesh reconstruction is depth map generation. It typically takes anywhere from 30-75% of compute time for dense reconstruction, IF it's parallelized thru GPU. If you're using the CPU only to calculate depth maps, you're probably slowing yourself down by an order of magnitude.

If you have a GPU, and use a better SFM-MVS solution, then you can quite easily reconstruct datasets of 1k-10k images within 24 hours.
Forth is like lisp in that there are lots of implementations, but this effect is multiplied. In fact, most folks that learn forth roll their own which is what the inventor Charles "Chuck" Moore does for every project.

Forth is unique as it is probably the only serious language that you can write production systems in and understand the entire compiler/interpreter, parsers, data structures, and functions (called words).

Everything is pretty simple. You could use C as the base, but traditionally you would write a few dozen assembly routines and link them together and form some core words to manage a stack (there are 2 stacks and that is it) and make more complex words.

It gets a lot more deep, but Forths aren't really for me. If I'm going to use something weird, I'll write some APL.
To be clear there are places European countries have a presence and this issue doesn't come up like this so just "still doing in places like this" seems a bit of a simplification.
I don't think it's specifically about China, but with international issues of trademarks.

Look at ugg boots, considered generic in Australia and New Zealand, but aggressively trademarked by Dekkers elsewhere in the world, including the USA. Producers from Australia can't use the name when exporting.
I really wish they would not intermingle ethics and morals as those terms are not the same and are frequently contradictory.
You can bring it up quickly on a new platform, be it exotic hardware or a self-styled VM.

Small Forths can be totally understood by the programmer (perhaps just a few pages of code for their kernel), but still be expressive enough to actually use. Applications written in Forth are typically deeply entangled with the interpreter. You can't separate a "program" from the environment.

It's more like a collection of ideas and design principles than one singular language. Most Forth programmers write their own implementation, or several. You can decide what indulgences you want. (I like having "quotations"- inline anonymous word definitions like Retro has- and special-cased string literals. I also have my own style of looping words that aren't quite like ANS Forth.) This also means Forth code can never be dropped into another project and directly re-used: you can only take ideas.

Starting from a blank page every time, carrying with you ideas and writing code afresh is a good way to travel light. Self-reliance. Building human-scale programs. No one would write a web browser, or an Oracle-compatible SQL engine, in Forth, because a Forth programmer wouldn't have much of a use for those things. Solve only the problems you really have, with as little code as you can manage.
As someone who is often guilty of making vague statements, I appreciate this comment.
I suppose that the worst case scenario is that the bond market gets involved. Ugly.

OTOH, maybe it's better to have a small conflict early rather than a large one later.
I read your comment now but I don't see the relation, I'm just wondering whether they are banned by Apple from selling under both the Chinese and English names or just the Chinese name.

In regards to your comment below, a Chinese name doesn't indicate that they are targeting China -- there are other Chinese-speaking markets like the sovereign countries of Taiwan, Malaysia, etc. But I agree that they likely were in part targeting sales in China, and that they ought to have trademarked the Chinese name in China (along with other Chinese-speaking markets).
I've found that cleaning/cooling my feet before bed with cold water (stand in the shower for 30s) helps a lot.

On very warm days, wear cold wet socks to bed, or in extreme cases a cold wet shirt.
Awesome! Thanks for the info. I will drop it in PERF and report back. It’s a sizable deployment, billions of rows. I’m interested in seeing the b-tree index update impacts.
The Supreme Court addressed this in New York Times vs. United States (1973), when the New York Times published the Pentagon Papers, which were classified, and which the government argued must remain secret in order to protect the national security.

The court ruled that in order to restrict freedom of the press, the government "carries a heavy burden of showing justification for the imposition of such a restraint." The court further ruled that freedom of the press can only be restrained if there is clear, serious, immediate harm that would result directly from the publication of the material. Speculative arguments about what could happen are not sufficient to block publication.

Justice Hugo Black's argument is really quite beautiful: "The press was to serve the governed, not the governors. The Government's power to censor the press was abolished so that the press would remain forever free to censure the Government. The press was protected so that it could bare the secrets of government and inform the people. Only a free and unrestrained press can effectively expose deception in government. And paramount among the responsibilities of a free press is the duty to prevent any part of the government from deceiving the people and sending them off to distant lands to die of foreign fevers and foreign shot and shell."

Remember what publications we're talking about here. These were documents detailing a war that the US and British governments entered into under false pretenses, and which they continued to lie to the public about. The public was served by knowing this information, and trying to put the people who published it behind bars, and treating them as if they were spies, is disgusting.
what "crime by proxy" ? Manning was an agent of the US. He (must have) had some level of secret clearance. Just because he didn't know the password to a database doesn't make it a crime.

Those databases are illegal for non-government employees to access. If Manning had secret clearance for database {A, B, and C} but not D, it's an internal IT violation between him (at the time he was male) and his boss. If you or I (presuming you're not a gov employee) tried it, we don't have clearance and therefore it would be a crime, aka hacking.
huh. TIL. Never knew that was a generic name.
We do in fact care. I put up a fix on https://bugzilla.mozilla.org/show_bug.cgi?id=1478037 just yesterday which will make https://alisdair.mcdiarmid.org/kill-sticky-headers work in Firefox no matter what the CSP says. I fully expect to get that landed sometime in the next few weeks.

Making CSP not affect bookmarklets at all (as opposed to not affecting whether they execute) is a different situation entirely, because bookmarklets by definition execute in the JS environment of the page (unlike extensions, say), so it's not really possible to tell apart things that the bookmarklet does from things the page does. For example, what should happen if the bookmarklet calls a page-defined function that then does a subresource load? What if a bookmarklet defines a function to do a subresource load that the page later calls? Note that from the point of view of the JavaScript engine the functions the bookmarklet defines and the ones the page defines are indistinguishable from each other...
Uber, Lyft Drivers Game 'Surge Pricing' at DCA with Synchronized Scheme
If you're using a Chinese name in Chinese characters and heavily targeting China, I have no sympathy for you if you're going to try to play chess without knowing the rules. Creationer is on point.

Don't want the risks that come with expanding globally? Stay in your home country. It'd be like someone trying to expand into Europe without knowing anything about GDPR. You need to know foreign laws well to protect yourself from foreign risks. Or don't go expand globally.
What would be the alternative to the UN ?