skysight-inc/HackerNews huggingface dataset:
This project is based on the Labeled Faces in the Wild Attributes+ dataset released with the 2015 paper Deep Learning Face Attributes in the Wild by Ziwei Liu et al. covering 73 face attributes. "Big Lips", "Bushy Eyebrows", "Double Chin", four racial groups, "Sunglasses", "Curly Hair"... We trained a MobileNetV2 network on LFWA+ categories and then used the embeddings to add a few more categories using custom datasets. This all comes together in 10 minute game that explores what it feels like to be described by the machine, and placed in some of these weird categories. All the analysis runs in-browser with TensorFlow.js on mobile and desktop, no images are sent to any server. Usually this analysis happens behind the scenes, but we wanted to create an experience where people had the chance to see it play out in realtime and build direct intuition.
There is a real difference, in both actual safety and perceived safety, between divided roads and undivided roads with the same number of lanes. Wider lanes seem (and are) safer than narrower lanes. See https://en.wikipedia.org/wiki/Traffic_calming for more.

Reasonable drivers conform their driving habits to the environment.

Unreasonable drivers should not be allowed to drive.
Raytracing is surprisingly simple if you already know trigonometry.

If you don't know Trig... you'll have to brush up on your math. But fundamentally, you project rays, you calculate if those rays hit an object (and if so, which object is "in front", and therefore hit first). And finally, you apply BSDF functions (math formulas created by artists that specify how light bounces off of objects) to calculate where the light bounced to.

That's it. The BSDF is an abstraction: there are many different models: one for metal, one for "specular" ("shiny" objects, like a marble), one for "diffuse" ("soft" objects like an egg), etc. etc. And an "uber BSDF" that kind of provides sliders for many different objects. (Invented by Disney: Roughness, Metalicness, Specularness, Diffuseness). But the BSDF itself is just an abstraction: where did the light bounce to? And different objects have different properties.

------

From there: making a FAST raytracer is the hard part. What kind of data-structures are needed to calculate intersections more quickly? Understanding the hardware (SIMD-cores, maybe even GPUs) to calculate BSDFs in parallel. Etc. etc. Lots of little things to learn and ultimately complicating the thing.

A professional raytracer would also have special code for the different kinds of objects in the scene.

True random path tracing takes too long. Biased techniques and quasi-random paths can make smoother images with less effort. Unbiased techniques shy away from such "theoretically suboptimal" optimizations. Denoising. Multithreaded, multi-computer, multi-GPU support. The feature sets goes on-and-on-and-on.

But if you want to just make "a" raytracer, without any care in the world about how fast (or slow) it is, then you easily can do that in one weekend. So give it a shot if you like.

-----------

https://www.kevinbeason.com/smallpt/

They brute-force an all-to-all check against all objects. There's no oct-tree partitioning or BVH trees. The only shape supported are spheres of varying sizes (no squares, no triangles, no cubes. Just spheres). There are only three BSDF functions implemented (specular "hard and shiny", diffuse "soft and matte", and glass). This tiny program is inefficient as all heck, but hey... 99 lines of code is pretty spiffy. That's all you really need for a raytracer.
Founders get golden handcuffs via the deal (if they're desired). At the end of the day, just about every "material" trigger is renegotiated in an acquisition...
Lithium does not suffer from undesired pigmentation and overabundance of too many completely different types of lithium the way plastics do. Plastics are composites so if you were to extract the elements out of them then you would end up with carbon and hydrogen which unfortunately aren't plastic. With lithium all you have to do is extract the lithium elements.

Aluminum and iron recycling is viable because they are elements in their own right.
It certainly has issues of its own, and I'm sympathetic to people who prefer the UI of alternatives like Mercurial. But wow, I'd never go back to svn (or god forbid, cvs) ever again.
It's clearly just looking for people looking at another computer or otherwise glancing elsewhere before entering answers. It's not phrenology. It may not be effective, either, and I don't want to be put in a position of defending this company. But it shouldn't be interpreted as they analyzing if someone looks like a cheater.
You've maybe (probably?) heard of it but Scratch (https://scratch.mit.edu) is a good "code-like" system for when kids are really young. You still have a way to go from 4 months of course, but I imagine it might be a bit easier to gain traction with something graphical (and colorful, and animated, etc.) than with what amounts to text editing.
Indie Publisher's Dream
Interior book formatting and design software launching beta within a few weeks.
I'm wondering why we wouldn't want to pip freeze every single dependency in the tree. I'm looking at our requirements.txt, and everything is of the form:

vine==1.1.4
urllib3==1.25.10
wcwidth==0.1.7

I know that changing the versions of any of the underlying libraries is always a big conversation. (We're still locked in on pandas==0.23.4)

So, if I understand correctly, with Poetry, we might be able to say, "Keep Pandas at 0.23.4 and sqlalchemy at 1.2.7 but figure out all the other dependencies for us and load them."

Or, even better, "Keep Pandas at 0.23.x and sqlalchemy at 1.x.x but figure out all the other dependencies for us and load them."

The advantage here is security patches in underlying libraries come for free, while we focus on porting code for the really high-level + important Libraries which aren't always backwards compatible (Pandas)

Also - if we want to stick with specific versions, that's also possible with the lockfile - so every library will be exactly the same as the one in a build that worked.

The thing I don't understand - is when I do:

pip install pandas==0.23.4

It does load the dependencies. Indeed, if I create a requirements.txt that just has:

pandas==1.0.3
pytz==2020.1
six==1.14.0

Then pip install -r requirements.txt goes and does:

$ pip install -r requirements.txt
Collecting pandas==1.0.3
Using cached pandas-1.0.3-cp38-cp38-manylinux1_x86_64.whl
(10.0 MB)
Collecting pytz==2020.1
Using cached pytz-2020.1-py2.py3-none-any.whl (510 kB)
Collecting six==1.14.0
Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting python-dateutil>=2.6.1
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227
kB)
Collecting numpy>=1.13.3
Using cached numpy-1.19.4-cp38-cp38-manylinux2010_x86_64.whl
(14.5 MB)
Installing collected packages: six, python-dateutil, pytz,
numpy, pandas
Successfully installed numpy-1.19.4 pandas-1.0.3 python-
dateutil-2.8.1 pytz-2020.1 six-1.14.0

So - I'm still at a loss of the advantage of poetry vs pip install, given that pip loads dependencies as well - the advantage of "fuzzy specs" seems minimal given it's such a big deal to upgrade the big packages.
There are also some more recent academic talks of his on youtube, mostly focused on his bio-informatics research. E.g. https://youtu.be/PGqCeSjNuTY
Sugar (in the form of sugar) is cheaper in Europe than sugar or HFCS in the USA.

£0.65/kg in Tesco in the UK, 7.5kr/kg ($1.20) in Føtex in Denmark, but $1.80/kg at Walmart. Corn syrup at Walmart is more expensive, $2 a pint, but presumably cheaper in bulk packaging. (Last time I was in the USA, I saw an entire freight train of tank cars full of HFCS.)

(You'll also note that plenty of rich Europeans prefer large "normal" cars, like Audis, BMWs, Mercedes etc, and a nice apartment in the middle of a city.)
Throwing RuntimeException is never correct.

throw new UncheckedIOException(ex);
Tony Hsieh, retired Zappos CEO, dies at 46 after house fire
How do you validate versions against the constraint file? I read your original link a few times and didn’t see it.
Damn, Dave, did you spend all that sweet Netflix money already...? /s

More seriously: artist screwed out of the money his art attracts - it must be a Monday!

A few years before Chappelle signed The Contract, Courtney Hole had already “done the math” in a famous piece [0]. She wasn’t even the first - Steve Albini had gone on record (eh) in 1993 [1]. There are many more examples from previous decades, both in music, cinema, TV, novels, comic books... these are just the first ones that spring to mind. The commonality being: established producers and distributors exist precisely to squeeze every once of value out of one’s art, and pay it the bare minimum they can get away with it. My bet is that Netflix will soon be like that too, there is no intrinsic reason they won’t (once they become as utterly dominant as tv networks were).

But I think (I hope) the real beef here is not about the money, but rather the name and characters. He cannot call anything “The Dave Chapelle’s Show” and he cannot touch those characters. He’s done plenty of work with his name on since then (“DC’s Bloc Party”, his comedy specials...), so maybe it’s just the characters he’s after? And what about “I’ll just take it”, is it a threat to reprise those characters and dare the network to sue him...?

[0] https://www.salon.com/2000/06/14/love_7/

[1] https://thebaffler.com/salvos/the-problem-with-music
The fact that rich places also have a corresponding rise in poverty is not a new problem, and it's one people have thought about and "solved" over a 100 years ago. See Progress and Poverty [0] by Henry George, named to capture the idea that poverty often follows progress. The core idea is that as a society's productivity increases, this just gets captured by higher land values and rents, leaving labour having to pay even more rent to just survive.

[0] - https://en.wikipedia.org/wiki/Progress_and_Poverty
Thank you for writing this. Some key ingredients for organizational driven scientific advancement include: long term funding, risk tolerance, enough reputation to get people involved and aware, team work / collegiality, some degree of openness (depending on the problem), and of course being in the right place at the right time with the right skills, management, and people.
I once drove 10 hours to visit a friend but my phone was dead on arrival. I had his address but no apartment number. I used the Kindle experimental browser to message him on facebook.
You can do that. Luminance and glium are two examples. I'm not exactly sure what is state of the art though.

As a casual observer, it seems that making a properly typed opengl wrapper is apparently quite hard, and the solution space hasn't matured yet.
At least it’s a departure from the overly dramatic ‘war’ metaphor
And that would somehow be bad? Maybe the sooner current system explodes, the better? After Thatcher, practical schools were closed and there has been pressure to make as many people earn a university degree as possible. Universities are lowering standards and churning out people that have no business studying at a university. Most people go to a university because that's what society, and employers, expect.

How many students do you think Plato, Aristotle, Jesus etc. had? Teach the brightest and the ones with genuine interest in the subject (I don't use the word "passion" because after adoption by corporations it no longer seems to mean anything). The rest will be fine with a high school/secondary school education. Most people retain only a fraction of that knowledge anyway.

Maybe it's time to stop treating (higher) education like an assembly line?
Incidentally, if you think all this moralistic hand-wringing was centuries ago, famed SF nightclub DNA Lounge was in 2009 charged with, and I quote, "running a disorderly house injurious to the public welfare and morals".

https://www.dnalounge.com/backstage/log/2009/02/13.html

(Note: jwz doesn't like HN referrers, so c&p into a separate tab)
Regexper
I was just explaining to my wife that I thinking of cooking as a vast recipe space which includes all possible recipes and the ones that have been published are point-sampled linear combinations/orders of basis ingredients or dishes. But I figured it was pretty obvious that TB is simply weighted combinations of basis tortillas.
Do you have any evidence of this?

My understanding is that speed limits have been largely unchanged for the past 50+ years. Car safety, on the other hand, has increased by a great deal.

It seems likely to me that speed limits are conservative when it comes to safety.
>So phone cameras had busily corrected the unnatural view, making it seem more like a pretty picture rather than what it was: a terrifying and true example of the effects of human-generated climate change.

Is the writer justified in implying that the causal connection between human-generated climate change and these fires has been established beyond reasonable doubt?
Netcraft confirms: SF is dead! jwz on suicide watch. IMHO SF will survive forever. The geography of the region is just too damned good for the density. I'm in LA for some time because it's nicer this time of year but I have enjoyed my time in SF and all the things I can do there.

SF is in a resource curse situation right now. The coming winter will kill the parasitic insects in government off. Few elected governments have the incentives to set up a 'sovereign wealth fund' equivalent because the ones who use it will be seen as heroes and the ones who fund it as villains. So just as the winter helps temperate climate countries survive insect hordes, shocks like this help societies survive their bureaucrats.

A good argument could be made that it makes sense to leave people's money to them, but for gold rush states the right thing to do is to extract some rent from transient visitors into a longer term program so that it can weather shocks. If they have the incentives to protect the wealth fund.

No CA or SF program can do that, however, since there is a hedonic sink in the shape of CalPERS. Any money you save, CalPERS will eat. And CalPERS will grow whether you feed it or not. And now that CalPERS is big enough, you don't get to choose whether to feed it. CalPERS will feed.
Let’s play a game, here’s how I would rephrase your first sentence:

You are often not the kind of person who can afford ignoring emails.
> What Apple defies is common business survival instincts: why spent so much in RD of a chip if there are market leaders that are impossible to beat?

Having own silicon, means the upstream will not be able to turn lights on you (Samsung — a company keeping a quarter of its host country's GDP hostage.) I believe the immediate goal of PA Semi purchase was that.

> The answer seems to be obvious now... but probably it wasn’t obvious when Apple acquired PA Semi in 2008.

PA Semi was clearly a diamond in the rough. It took a great insight to single out PA Semi, because on the surface it was a very barebones SoC sweatshop, but in reality PA were the last of Mohicans of US chip design.

PA was a place where all non-Intel IC engineers left to after the severe carnage of microchip businesses of US tech giants like Sun, IBM, HP, DEC, SGI..., and etc.

It was a star team which back then was toiling at router box SoCs.
I hike off-trail, up creeks to see how far I can get and how close to the source I can get.

In general I find that each one is quite different and the activity reminds me of being a kid and exploring in such a way that everything is a new experience.
Indeed. Much like DOW hitting record highs while people line up at food banks.
More Linear Algebra plus Trig... trig won't teach you eigenvetors, normals, etc.
Keep the ads! At least they are book covers. The non-ad version has horrible lock screen images.
The speed limit is (in the USA) supposed to adhere to the 85th percentile rule, that being the speed at which people drive on a free-flowing road with no traffic and no enforcement. Most freeways have speed limits that are probably closer to the 0th percentile than the 85th percentile. I know driving the speed limit on some roads in my neck of the woods would be utterly hazardous.
People seem to forget that you need a system like academia that's allowed to fail. Most companies aren't allowed to fail when they need to have quarterly returns. Of course academia has become more and more competitive. But tbh I think the answer is that the funding hasn't increased equally with the number of quality people who could stay in academia. But who knows.
Irritation would probably better in terms of not blowing up your memory requirements. Just keep hashes of all visited nodes and a stack or queue of to-be-visited nodes and loop until you have no more to-be-visited nodes.
> I've never understood why I, a transplant who needed a place to live, was blamed for high rents and not my landlords, real estate millionaires who vote against new development.

It's always psychologically easier to blame outsiders for your problems than to look in the mirror. Especially when experts are telling you that most of the causative factors are policies you hold quite close to your heart.
Good luck wearing a VR headset for a full 2 hour exam. I get headaches if I wear one for more than 10 minutes, and the weight is uncomfortable and messes with my hair. More surveillance technology is not the solution.
> The software and hardware efforts are uninspiring because the talent has moved elsewhere.

Really? I find AMD's efforts in desktop CPUs and GPUs quite interesting.

Same goes for example for Mesa, radv/aco, dxvk, vkd3d-proton and etc. Quite inspiring projects and they are all about Linux desktop use case for the most part (especially gaming).

PC ≠ Windows.
Spy Roblox Agency
Comment on this friend me in roblox and join the spy agency
My user:potato_Gacha 2020 or bubbikins425
I do not think he argued against "one computer per student". Did he not explicitly say he agree with the point, but wanted to be clear that he thinks it would cost more than what Papert was saying?
I used to use the built-in browser to load Google Voice and Google Talk and they worked fine. Of course, this was before they were overhauled into bloated, JS-heavy pages that barely run on non-Chrome mobile browsers.
> What type of dependencies aren't covered by this (I genuinely am a novice here so would love to be informed where this runs into problems)

The dependencies of the dependencies of what you have listed aren't guaranteed to be locked.

For example, let's say for arguments sake you were using celery.

When you install celery, by default these deps will also be installed: https://github.com/celery/celery/blob/master/requirements/de...

Those aren't very locked down. If you install celery today you might get vine 5.0.0 but in X months from now you might get 5.9.4 which could have backwards compatibility issues with what celery expects.

So now you build your app today and everything works but X months from now you build your same app with the same celery version and things break because celery isn't compatible with that version of vine.

This happened a few months ago. Celery 4.3.0 didn't version lock vine at all and suddenly all celery 4.3.0 versions broke when they worked in the past. That was tracked at https://github.com/celery/celery/issues/3547.

Docker doesn't help you here either because your workflow might be something like this:

- Dev works locally and everything builds nicely when you docker-compose build

- Dev pushes to CI

- CI builds new image based on your requirements.txt

- CI runs tests and probably passes

- PR gets merged into master

- CI kicks in again and builds + tests + pushes the built image to a Docker registry if all is good

- Your apps use this built image

But there's no guarantee what you built in dev ends up in prod. Newer versions of certain deps could have been built in CI. Especially if a PR has been lingering for days before it gets merged.

A lock file prevents this because if a lock file is present the lock file gets used, so if you built and included a lock file in version control, then CI will build what you pushed from dev, so the chain is complete from dev to prod for guaranteeing the versions you want. That is how it works with Ruby, Elixir, Node and other languages too. They have 2 files (a regular file where you put your top level deps and a machine generated lock file). A lock file in Python's world would translate to what pip3 freeze returns.
I will give it 5-10 years. If they are serious about it, it will last that long. They're about halfway there.

Package management is terrible work. Nobody appreciates it. It's extremely complex, it has to work in enormous numbers of configurations, and very minor errors can have catastrophic impact to security or availability of systems.
Spurious exception specifications are the flip side of avoiding not telling the caller something might go wrong. It's a fundamental tension and is unavoidable.

Failure modes are an abstraction violation; they're a function of implementation. That's what makes checked exceptions not work, at the end of the day. Information-carrying exceptions reveal implementation details. So a module author must decide between hiding details and wrapping everything up in module-specific exceptions that user code can't actually use to make decisions most of the time, or expose implementation details that turn into a versioning problem over time.

There's roughly two situations for error handling: near the leaf of the call tree, where you have enough context to deal with an error, and need to switch on error type and take compensating action; or near the root of the call tree, in the main loop, where you log errors and terminate requests etc. in a generic way (e.g. 500 response).

Exceptions aren't ideal for the first situation but are great for the second. Error codes are adequate for the first situation - monadic error types (Result<T>, Either) are a bit better - but suck horribly for the second, because you need to manually unwind, writing boilerplate that should be automatic.

And at the limit, error types are isomorphic to checked exceptions, with the same problems, and more - error types introduce an aggregation problem, where multiple errors need to be joined together. You can still get that with exceptions too but it usually requires parallelism.
I see Harry Potter in the box, but even worse, WebMD is the #1 organic suggestion and Healthline #2. CDC is #4, Mayo Clinic #3

With suggestions as bad as that I might as well use Google.
https://www.google.com/amp/s/www.architecturendesign.net/ins...

The market can only price accurately if all participants are rational or at the very least are on average rational.

As the effective number of participants falls and the need for those participants to make rational economic decisions falls, were likely to see more weworks, theranos, and nikolas.

Wait until we see someone buy multiple city blocks of Manhattan for conversion into a private yard.
>Fundamentally the challenge is just correctly guessing what ID a given tweet is going to get, then appending that onto the URL for our profile and tweeting it.

Reminds me of that program for referring to a future git commit, which operates on the same principle: iterate through guesses of the future commit’s hash prefix until you have a (long enough prefix-)collision.

https://github.com/hundt/git-time-travel
There's a difference between being a random commentator on HN and being one of the several experts in the field quoted in the article, among other things, predicting a mass exodus from the computational biology field as the major problem of that field is now solved.
Normals are part of trigonometry.

Eigenvectors won't show up in an elementary path/ray tracer.

You need the most barebone understanding of LA for xform composition/application.
As I noted on Twitter, I was really bummed to see this. His novel Mars was one of my favorites. https://twitter.com/AndrewLiptak/status/1333525488552308736