skysight-inc/HackerNews huggingface dataset:
tcc is neat software and I used it for some time almost exclusively for "-run", but after many years I ultimately replaced it with a small shell rc-function for compiling, linking and running a C/C++/x86/etc. file from the shell.

I think it's nicer.

#!/bin/sh
crun() {
local file="$1"
shift
local exepath="$(mktemp)"

if [[ "$file" =~ \.c$ ]]; then
gcc -g -Wall "$file" -o "$exepath" || return $?
else
echo "no filetype detected"
return 126
fi

"$exepath" "$@" & fg
}

... along with a more sophisticated version for .zshrc as well.

#!/usr/bin/env zsh
function crun {
zparseopts -E -D -- -gcc::=use_gcc \
c:=custom_compiler \
o+:=copts \
Wl+:=lopts \
-dump::=dump_asm \
v::=verbose \
h::=usage \
g::=debug

if [[ -n $usage ]]; then
cat <<- EOF
usage: crun [options]... <filename>

--clang (default) use clang for C & C++ files
--gcc use GCC for C & C++ files
--dump dump assembly of program
-o supply an option (e.g -o -Wall)
-v verbose
-g debug

Compiles and runs a C, C++ or x86 Assembly file.
EOF
return 126
fi

# select unique entries of `copts` and then slice copts[2..] (copts[1]
# contains the flag, e.g "-o")
local file=${@[-1]}
local options=${${(u)copts}[2,-1]}
local exepath="$(mktemp)"

if [[ $file =~ \.(cc|cpp|cxx)$ ]]; then
local compiler="clang++"
$compiler -std=c++1z -g -Wall -Weffc++ ${=options} $file -o $exepath
elif [[ $file =~ \.c$ ]]; then
local compiler="clang"
[[ -n $use_gcc ]] && ccompiler="gcc"
$compiler -g -Wall ${=options} $file -o $exepath
elif [[ $file =~ \.(s|asm)$ ]]; then
local objpath="$(mktemp)"
nasm -felf64 $file -o $objpath && ld $objpath -o $exepath
else
echo "no filetype detected"
return 126
fi || return $?

if [[ -n $dump_asm ]]; then
objdump -S -M intel -d $exepath
else
[[ -n $verbose ]] && echo "exepath: $exepath"
if [[ -n $debug ]]; then
gdb --args "$exepath" "$@"
else
"$exepath" "$@" & fg
fi
fi
}
No government will allow its companies (and in this context that's how it's seen) to sell weapons to countries they don't approve of.

What the poster meant was "just about any country" in the world. Which we've seen happen time and time again - the restrictions may be nominally in place (for a while), but eventually they get selectively lifted, and/or the companies find a way to circumvent them.

At times (and not at all surprisingly) with the assistance of certain government agencies chartered with the purpose of not only enacting precisely this kind of subterfuge - but perfecting it as an art.
Sorry, but I really don't think fancier helmet padding is the answer to the CTE, concussion, head/neck/spine injury problem. You have to change the game to stop the type of head-leading and head-targeting hits that are glorified in the current model of the sport.

And yes, you can still easily tackle without ramming your helmeted skull into someone elses head. Just watch Rugby, or any kids play pick-up football on a field, both are entirely without pads and helmets, and tackling is a major part of the experience.

https://www.youtube.com/watch?v=mMHRZ8LzS7Q
Have you considered that there are people out there with values that differ from yours? It's not wildly impossible, regardless of what the screaming minority would have you believe.

Maybe they don't have a problem with working on such projects, because they agree with their end goal?
I don’t know anything about how the NSA interacted with ISO, but it is worth mentioning that the NSA has material explaining these ciphers:

* https://csrc.nist.gov/csrc/media/events/lightweight-cryptogr...

* https://eprint.iacr.org/2017/560.pdf

* https://www.nist.gov/sites/default/files/documents/2016/10/1...

Those include statements about how far cryptanalysis have weakened the ciphers, which the NSA claims was roughly what they had expected during design.

If the NSA published its own cryptanalysis, would you believe it, or would you assume they had told less than the whole story? What if they paid an academic to publish cryptanalysis (“of course he would say that, he was paid $X by the NSA!”)? The NSA appears to be in a catch-22 here.
Do you read of the sectarian violence that happens in Iraq because Saddam fell? How about increase violence in Mexico after cartel leaders are sent to prison/killed?

I agree with you the world is much safer and there is less deaths from military conflict post WWII. I think that is largely due to the massive military power in a largely benevolent country like the U.S. I think if you magically removed the U.S entirely from the picture other nations would be thrown into conflict to be "top dog".
Twitter tweaks algorithms to give trolls less prominence
Do you have a source of that claim?

AFAIK regions are physically separated, zones are isolated from each other in the same region.
I can recommend anything Jeremy does, sight unseen. Take him up on his offer.
Somebody else will fill the gap. It is simply a consequence of military science: If a human in the loop makes combat systems less effective, then other countries will seek the advantage over others by removing the human from the loop. It's a classic arms race at this point.

... This is a pandoras box that has already been opened I am afraid.
Keep in mind, the STL isn't limited to the containers, there are tons of algorithms that are very useful for embedded programming that don't throw exceptions, are vetted, and are as efficient as hand-written algorithms.
This isn't my field but I'm curious: are the results in the slider samples novel images or ones that were trained on?

Could it not just be really good are recreating the image it was trained on or is it generally doing this with novel images in this case?
This is true, mandatory arbitration makes mockery of the legal system.

But... the whole arbitration thing is itself a reaction (in many cases^) to general suckness of the legal system which is primitive, clunky, slow and often more trouble then the trouble it's trying to solve. It's wide open to abuse, and a lot of what we call law is in practice a mature "game" based on abuse of the legal system.

So, yep.. these should be ilegal. But we also need a legal system capable of functional resolution of these disputes fast, without abuses, mutual destruction stalemates and burdensome "costs" including eventualities such as "as an employer, you will always be in labour court no matter what."

That said, sexual harassment in the workplace is an "our vision of society" type of problem. There's a case for giving it it's own courts or public dispute resolution frameworks.

Law really needs to evolve. We are not settling disputes between norman kings and saxon lords any more.

^sometimes it's just naked self interest. Ie, We will win more often in private arbitration, so let's write it into the contract and hope they don't notice or are not in a position to object .
Pecking Ravens disturb LIGO measurements
> purchasing and reading textbooks

Plus, you can get really, REALLY good deals on used college textbooks (some of which are still in pristine - as in never even been opened - condition).
Wyoming Wants Part of the Crypto Action
"This has been a great journey with all of you."
I've been surprised how many SMBs use CentOS, I expected them to be mostly Debian too.
> One of the things that makes conspiracy theories so appealing is their simplicity.

What exactly is the conspiracy theory here?
that they think this has even a tiny chance of happening after Snowden is really surprising.. I guess we really need to make sure people don't forget about that going forward
There is no 50 state concealed carry license. In many states, applicants for licenses must be residents of that state. This makes armed security that can follow protectees across any state border impossible without such legal hacks.
thats terrible reasoning, most likely formed by the skewed view that targeted assasinations are needed and cool. Why does the US need to be at war all the fucking time.. there are so many problems with drones doing targetted killings, and so many many more, if they should be powered by AI that get cucumber right 98% of the time. This is such a horrible, horrible, horrible idea.
I agree with this idea. The problem, I think, is that you can't choose what kind of game you get. Lots of times I want to have a reasonable chance at winning, but now and then I want to play really good people and see how they play. You can't ever choose to do this in current matchmaking schemes, and there should be a way to do that.
Are there many AI opportunities out there without potential military use? Warfare is a broad-spectrum human activity. I'm having trouble imagining many things that can't be leveraged.
Bill of rights has a something similar.
Doesn't really matter that much, AFAIK all (most?) western countries sell to Saudi Arabia for instance.
Apple's self-driving car fleet leaps to 55 vehicles
I'll second this. Wikipedia is a great resource for this stuff.

Also, check out some of the common frameworks like Porter's 5 Forces, SWAT analysis, BCG Growth-Share matrix, and the GE-McKinsey matrix. There are a lot of free educational materials on these. I'd take it slow and steady, and try to focus on orienting your thinking to the questions asked by these frameworks.

Also, consider reading the Form 10Ks for some companies whose products you like. They have a section where they explain their market and their role in it.

Good luck!
Ironic, considering the rain of downvotes on posts that disagree with the resignations.
Read "The Right Stuff" for the first time recently. I didn't find myself particularly invested in the Mercury astronauts' story, but Wolfe's utterly delightful prose made it hard to pull away. Loved the mantra-like phrases that his writing would circle around: climbing the ziggurat, being left behind, single-combat warriors, the titular right stuff (among many others). Coupled with the fast-talking pace and the incredibly vivid language (waters "about as clear as the eyeballs of a poisoned bass!"), it almost read like poetry at times.

Oh, and the book was hilarious! It's rare that I find myself laughing out loud at literature, but Wolfe's descriptions were just so absurd and clever.

If you can find a torrent, I highly recommend Michael Prichard's Books on Tape recording. The quality is low but the narration is just exceptional.

RIP.
I guess one could sign up with a Google Voice number or something, but the whole idea of requiring a phone number for anything not related to a phone is just ridiculous to me.

Even more ridiculous when Walmart almost wouldn't sell me tires because I didn't have a phone number. It took three different managers to figure out how to put in 000-000-0000.
Well one, the employee is getting paid to do the duties their job asks for. They aren't working for free.

Tesla/Musk appears to be following the model of massive greedy billion dollar corporation that would rather take free work than appropriately compensate workers/consultants.

There is a massive difference between BEING PAID and NOT BEING PAID when asked to do work. Seeing how Musk overworks and underpays his workers I'm not surprised by this move.
Disclaimer: I work for GM, any opinions are solely my own.

This is enormously context-sensitive, but it is not at all odd to have a buffer with several hours worth of vehicles in auto assembly, for example between shops (ie between body and paint and between paint and final assembly).

As you get closer to the end of the line, the buffers get much smaller, but you may have a 5 minute buffer between the last few lines in Final Assembly.

One other thing to point out here; The two main styles of conveyance in vehicle assembly are fixed position stop and stop stations (also known by many other names).

- Fixed position stop is what you call rigid line, and it is used where humans work on cars. The conveyor runs at a constant, slow speed through constant size work areas called footprints, such that each worker gets about a minute or so to do a set of assembly tasks. Humans can attach parts as the vehicle moves down the line. With fixed position stop, there is no buffer as the vehicle carriers are physically connected to a conveyor chain.

- Stop stations are used where robots work on vehicles. It is very difficult to get a robot to work on a moving vehicle (but possible). Generally these conveyors move about twice as fast as the rigid stations, but all work is done while the vehicle is stopped. Also, each vehicle moves independently between stop stations as fast as the conveyor can move, and there is some buffering between each station.

> 20 minutes of buffer in an auto plant? That's a building the size of a large supermarket.

Yes, but it's in a mezzanine above the work area.
Community Standards Enforcement Preliminary Report
Before studying market analysis you should get a really firm grasp on statistics. In particular, you need to know how to calculate the probability of obtaining a false positive when testing a hypothesis, and then apply that understanding to any market strategy you wish to undertake. With modern computers and ready access to data, it is incredibly easy to fool yourself into thinking you have found a reliable way to beat the market when in fact all you've done is stumbled on a statistical fluke. Test enough strategies against enough data and finding such flukes is inevitable.
You mean, like a gun?
Yeah, even Java doesn't force you to handle errors. Please, calm down. "Scripting" in a compiled language is not practical. People use the word "script" for a reason - it's because they don't want to deal with a language that forces them to think about everything that could go wrong. For some tasks that's perfectly sensible. For other tasks, there is Rust, Haskell and many others.
Seconded. I really believe there are no shortcuts to doing lots of problems. If you can afford it, getting a physics grad student to discuss problems that stumped you every now and then might also have quite good ROI, talking to physicists might also help convey some of the physics mindset(?).

Reading this made me nostalgic for my days as a physics undergrad.
Good question, and I have no idea. The conferencing system in meeting rooms was managed by a facilities team. Probably it was Skype for Business, given that?

Now we're all using Zoom and it's much smoother. /anecdote
> Unbiased doesn't exist so I'm ignoring it.

and

> Perfect doesn't exist so I'm going to ignore better.

are not analogous. Now if the line were instead something like

> Unbiased doesn't exist so I'm ignoring less-biased (or efforts to reduce bias).

then you'd be onto something, but as it stands, what you've got there is a false equivalence.
Or you could send encrypted texts with a subject line that tells how many leading zero bits are in your GPG private key. Perhaps start with keysize - 1.

Then for each new message subtract 1 from the number of leading zeros.

Now at some point Eve has to decide for herself when it's no longer worth it to brute force your messages.

Edit: clarification
I know it used to be thought that kids have an easier time learning a new second language, but my understanding is that the effect disappears when you control for the amount of time spent studying, so there's no issue with learning new languages as an adult other than finding the time.
I wish they provided the RAW files. Looking at "traditional-pipeline" photos I am positive I can get a much better result just spending some time with Lightroom and coming up with some "super high ISO" preset. Perhaps it will not match their new pipeline but it will be better than what they have for the "traditional pipeline".
So we just need to wait for the worst state to improve their standards for issuing badges then?

Seems like it might be a long wait.
as an increasingly reluctant football fan, this has always been my take on it as well. though the short-term effects of such a change might be kind of wonky, if you remove the super heavy padding the problem of hitting people with impunity because they think they're immune should solve itself in the long run.
> I don't think that's an argument.

Of course it is! It's an intentional mis-characterization of what the software does.

> Uses like this for technology are a perfect example of things we...all promised we would never do.

I didn't make any such promise. When did you?
I'm unclear as to what the moral difference is. It's more moral to kill someone if they can fight back? Then why are we giving our soldiers tanks? Guns? Fighter jets? Knives?

Why not just send them in with their fists.

This line of reasoning has no rational basis.
> Often times, the person who complains about web filtering at work would be the person who complains about for any reason.

Any insights about the person who bring up "web filtering" when something entirely different is being discussed, or does that superpower not work on oneself?

They say tomato, you say hang glider, get corrected, and leave it at "oh well, as long as you acknowledge the difference between a tomato and a hang glider".
I Got Catfished by a Candidate
Good on them. That's taking a stand, and it's admirable they are standing by their beliefs.
Maybe they can go work on making a product that could never be used by the U.S. military they despise so much as they live their sheltered and comfortable parochial lives.

I mean, I'd be hard-pressed to think of any such product, but maybe I lack imagination.
As the number of police shootings (with a high number of collateral ones) is about 1k per year over the last decade American police have killed 10,000 and America doesn't have large tribal area's and the related problems like Pakistan.
Write code that’s easy to delete, and easy to debug too
I'm taking you at your word and assuming you truly want to reach the cutting edge of knowledge and learn things like QFT, Gauge Theory, String Theory, etc. alongside the math needed for it.

This is a long-term project, so I'd recommend by starting a bit with "learning about learning". There is a great, fairly short Coursera course called "learning how to learn".

Things not covered in the above course:
- Your learning ability is not actually much lower in your 30s than it was in your 20s. You have a relatively benign rate of learning decline, until your late 50s / early 60s, when it drops quite a bit. You can still learn a lot, but it's meaningfully harder. (learning rate != thinking rate / creation rate!!)

You'll likely be able to write good papers into your late 60s, and perhaps 70s. There are exceptions and people who do significant work even later, but that's more unlikely.

When I started learning stuff again in my late 20s, I felt frustrated because I'd take a couple courses over a year, and by the time the year's over, I'd forget the first one. We all know what this feels like - we've forgotten most of what we've learned in college that we don't use in our profession.

When I was a teenager, I had great recall for things I've learned only once or twice. I didn't realize this was unusual and thought I got very bad at learning. In fact, the vast majority of people, including high IQ people, will need spaced repetition and study to retain things for a long period.

I'd recommend the following "schedule" to absorb things into y memory permanently. (By "learn" I mean read, do problems, write summaries.. it's a wide range):

Days to repeat: 0 (initial learning), 1, 6, 15, 37, 93, 234, 586, 1464, 3662, 9155

This would suggest interleaving classes instead of learning things sequentially for optimal time management. It's also a bigger time investment than people usually think of upfront, but pays dividends later on as the material builds-up like a cathedral of knowledge.

Like other commenters I'll also repeat: Do problems, problems, problems. The struggle is where the learning happens.

On the other hand, I wouldn't worry too much about super-high IQ etc. I don't think it's a strict requirement to have an extraordinary IQ to learn grad school physics and math.
In the model of the article, is YouTube closer to Apple's iOS App Store, or is it closer to Uber? On first glance, the "suppliers" seem external and commodity.

Google gives slightly more deference to established content providers, but not much

Re: YouTube: Apparently, this deference is directly proportional to economic power. Small creators have basically no power. Large creators have some. Corporations have enough power to make demands and cause YouTube to change things overnight. Some upstart should make note of this huge class of long-tail marginal creators become serfs.

http://www.paulgraham.com/marginal.html

Ultimately, the future culture will come out of this edge of the culture. YouTube and Google seem to have reached a point, where one can use their culture/groupthink against them, and they will steadfastly refuse to change.

https://en.wikipedia.org/wiki/Rules_for_Radicals
It's hard to argue that "bear arms" means something other than "carry a gun".

I don't think open vs. concealed matters in this context. It's probably even easier to "play a cop" with open carry.
This is outright false. I'd love to see what history you are getting your facts from. I can personally tell you I've seen the briefs and classes the military personnel are put through, and they are clearly told to minimize civilian casualties even to the harm of U.S personnel.

They are also told by a lawyer during those briefs essentially "if you break any of the Geneva conventions or outright any of the things we just told you we will swiftly punish you".
Safeguarding your Data with ClusterControl
Risk compensation. For those interested, here is the relevant Wikipedia article: https://en.wikipedia.org/wiki/Risk_compensation
I couldn't be happier that my tax dollars are going to harness the power of the blockchain to solve the problems of "food deserts" and gentrification.

--edit--

In case you are wondering if this is sarcastic, let me clarify. I fully expect the blockchain to revolutionize the delivery of government services the same way Bitcoin will revolutionize grocery shopping, and the same way Etherium will revolutionize legal contracts.

--edit 2--

Since people still don't get it, let me elaborate:

Imagine a world where you could use Bitcoin to transfer money anywhere in the world with the same ease as making a Bitcoin micropayment, simply, safely, instantly, with no fees.

Imagine a world where people use Etherium smart contracts to control everything from marriages to college diplomas to corporate governance.

Now imagine the same revolutionary ideas applied across NYC to everything from garbage collection to city ordinances!

The power of the blockchain is bounded only by your imagination.
I went back to school in my late 20s for this. Ultimately what everyone says is true, you learn the stuff by doing problems and at the end of the day lectures are of marginal use and really the learning happens when it's you and the textbook(s).

I personally went back to school because it was a way of putting pressure on myself. There's a lot of boring drills before it gets particularly interesting. The biggest value of school/coursework for me was the fact that it was a declaration of "I am going to do this now, and there are external motivators (grades, exams) to ensure that I stay on track."

That said, if I had it to do over again, for the money I spent, I wonder if hiring a graduate students/postdocs or even professors as tutors would have been better. I suppose that even then, when the material gets boring or time consuming it's easy to walk away, whereas if you invest time and money into a class you basically are in good shape to shame yourself into succeeding. (plus being in the academic environment helps to get a better sense of the broader landscape of material)

Maybe you could find a buddy to work with, like people do with the gym or whatever to shame each other into staying on task.
You mean what Google is already doing? You know how they make their money right?
Ok... but even accounting for civilian casualties due to increased use of drones, civilian victims (and overall casualties) of US military operations has done nothing but drop as technology improves.

This is just throwing in an unfounded qualitative thought, not an actual empirical argument against precision weapons.