skysight-inc/HackerNews huggingface dataset:
That news narrative is deeply misleading.

Tesla achieves a 23.7% automotive margin, excluding regulator credits [#1 p. 31].

Regulatory credits for Q4 were $401M [p4] while they increased their quarter over quarter R&D spending by $156M [p. 28] and paid stock based compensation charge of $633M, up from roughly $347M in Q2 as the stock boomed [p.30]. Call that an additional $286M of stock based compensation and adding $156M in R&D we have an additional $442M in Q4 expenses.

So the Q4 regulator credits are slightly less than the combined 42% Q/Q R&D increase (a great thing) and increased SBC charges (also a good thing as caused by rising share price).

Keeping net income flat by investing in R&D, and 'suffering' from increased SBC charges as the stock soars, is a great thing for a high growth company to do! Why pay taxes on net-income when it's FAR more profitable longterm to invest more in R&D.

Said differently, their $3B net cash from operations in Q4, and then $1B in cash invested in investment, are the real news of the quarter.

[#1] https://tesla-cdn.thron.com/static/1LRLZK_2020_Q4_Quarterly_...
Museum of Bad Art
Without parentheses, it won’t print anything.
If anything it should enable a better small town paper if there is sufficient "throughput". I know in city neighborhoods the volume is ridiculous for a casual user, but for a "neighborhood newspaper" it should be a goldmine for content, leads, perspective, gossip, and things that would make a weekly newspaper a fun read.
This also dramatically increases the leverage employers have over their employees.

If you live in a company town, your kids go to the company school, your spouse will either work for the company or be dependent on the company for their business.

If you're terminated, or simply want to negotiate for better terms - the company already has you beat. The company knows that you won't go home and tell your kids they have to move and your partner that they need a new job for a 5% raise.
You have no basis for believing this. All I know about this is what I read in the article, and the article is clearly intended to show this guy in the worst possible light. If there was any hint that your conjecture might be true then I expect it would have been mentioned.
If you're sending neutrinos at a known energy from a known location and in a narrow time-coincidence window, you can hammer most backgrounds way down.

The low detection rate isn't so terrible either -- one only needs the bits that are detected to be tradably-correct almost-all the time.

The hard part is arranging to make enough money to fund the accelerator and detector.
Sure. There are some serious cultural and product issues, but it's generally respected as hiring stronger people than most and has top-tier comp packages.
I was commenting on iterative approach of mass production of quality cars isn't translating well. I don't think anyone can say Tesla has better build quality than Toyota/Honda/Lexus. And EV is also considerably simpler than ICE vehicle in terms of moving parts.

I don't think Tesla is bad, in fact, I think Tesla is the future. That doesn't mean I want to be the consumer with paint problem or leaking body while Tesla ramps up.
> Actually, languages with rich type systems in general seem to really struggle in this space.

I suspect there's two factors.

First, I think the current crop of languages with "rich type systems" (I imagine you're thinking of Haskell, Scala, ML and the like?) basically all are in this weird uncanny valley where people get tempted into trying all sorts of cool type tricks to make everything line up, and the type systems are just not _quite_ expressive enough to make it all go well.

Most of the time if you just use arrays/your language's usual collection type of numbers (or arrays of arrays... etc.) in those static languages you'll do great.

To take it to next level and really model ML faithfully I think you probably will need some version of dependent types and there just aren't really any good implementations of that at the moment.

Secondly, a lot of ML is powered by data scientists and statisticians to whom dynamic languages mesh probably better with their own educational background (when was the last time you saw types written out in a stats textbook?). It's really kind of jarring and annoying to have to deal with type systems when you've never done any professional programming before.
I gave it up during the run up to the election. Felt way better off afterwards.
One of the authors here, happy to answer any questions! (Particularly about the Julia integration)
The money they make is the total of all the money they make from shady immoral shit. The opioid project wasn't the only shady project contributing to their top line.
“If you don’t want to live there, don’t live there” - the siren song of inhumane exploitation.
Advising a pharma company on how to turbocharge opioid sales and fan the flames of a raging painkiller epidemic resulting in 450,000 deaths is same as not giving money to a homeless person.

I am utterly flabbergasted. Words fail me which is rarely the case ;)
Yes it solves the problem while introducing a hard dependency from a shape to some stringly typed hashmap from who-knows-where.
I don't support busing them out, and actually, I used to acknowledge them and treat them as humans. Eventually, it became a large time sink, and not a pleasant one (give a mouse a muffin).

Out of curiosity, do you live in a large city? Try crossing the Burnside bridge in Portland, OR every day for months and get back to me.
We've already done this. They were called company towns.

I realise that a lot of modern tech culture would rather re-invent the world from first principles while making 10,000 years of human mistakes at high speed in preference to acknowledging the existence of disciplines outside of STEM, but history, economics, anthropology, town planning, they're all right there with many of the answers.
Yeah the line between FP and OO can be argued over.

At my work it's pretty OO, with FP used where convenient. People join and start reading/writing Scala with zero experience or training, and it works out OK.

At Stripe, I understand their Scala is pure FP, with the first onboarding docs discussing "What is a Monad". I assume they need more training for people who don't have a pure-FP background, but if it works for them who am I to judge.

My own personal style is somewhere in between, certainly more FP than at my work, but nowhere near as FP as those who are really into it.
Maybe it is just my nextdoor area but very little relevant community information is found, in fact most all discussions of schools, local politics, and HOAs immediately disappear. Most posts are looking for a local service provider or missing pets. That coupled with the non chronological feeds make me think that Nextdoor only wants to become an Angie's List and not a source of actual good for my community.
I agree. The complete focus on all the politicians and media is on race and gender issues, completely ignoring economic issues.
i think people tend to remember google's successes more than their failures, because google's successes massively, overwhelmingly outweigh their failures.

[edit] as an example, people don't think of the Fire Phone with they think of Jeff Bezos.
Same thing, as far as conspiracy theorists are concerned.
Google isn't as welcoming of remote work as a model, but other tech companies are. Go for it!
Python is absolutely not beginner friendly, but JS is just worse when you consider its who-knows-what-is-in-there nodejs and npm and twenty different ways to build and treeshaking or whatever. If I have to pick one, it has to be python unless I do web frontend.
Got into hospital a few times with anxiety attacks in my 20s and have suffered from constant and recurring anxiety since. From years working through it and trying to improve my mental health, I noticed that anxiety is due to (perceived or real) lack of control over something I care about. In my experience, it always boils down to this and once I take back control of the issue in question (or stop caring about it), then I can see improvement almost instantly.

I don’t agree that the root cause is in your mind - it is as much an issue with your actions as it is with your attitude. A lot of great advice in this thread (about healthy eating, exercise, etc) but the key in my opinion is to test these suggestions thoroughly to find what works for you. And discipline is super important - otherwise you can’t trust your results are really due to the changes you make in your life or just a random coincidence.
I literally just finished a leetcode problem[1] to practice some python. I found two solutions, one seems more "pythonic" to me and the other seems more clear though also more verbose.

Clear/Verbose -

def maxWidthOfVerticalArea(self, points: List[List[int]]) -> int:
x_coords = sorted(x for x, _ in points)
greatest_diff_so_far = 0

for i in range(len(x_coords)-1):
diff = x_coords[i+1] - x_coords[i]

if diff > greatest_diff_so_far:
greatest_diff_so_far = diff

return greatest_diff_so_far

Pythonic -

def maxWidthOfVerticalArea(self, points: List[List[int]]) -> int:
xs = sorted(x for x, _ in points)
return max(x2-x1 for x1, x2 in zip(xs, xs[1:]))

I'm curious which approach is bad/worse? On the one hand, the "pythonic" approach seems brief and kind of neat and I feel clever writing it. On the other hand, it is also ~20% slower per my testing, it's less obvious what it's doing, and it would be harder to make some change to the logic (or add logging/metrics) without completely rewriting it.

On the one hand, just from the reasons I wrote above, it seems to me like the first way is better and the second worse, but on the other hand, the first way is what I would write while knowing zero python features. Curious if anyone else has thoughts on this.

1 - https://leetcode.com/problems/widest-vertical-area-between-t...
The problem with giving advice on such matters is that human psychology doesn't work by strict rules of logic and reason, and repeatable experiments are often not possible. Even if you can "prove" (if there is such a thing) certain traits of a candidate are more valuable than others, you can't prevent others from judging you on trivial things - especially in a highly competitive scenario. To cover your bases, I think it is good advice to focus on spelling. You can fight the system, or just accept that all humans are flawed :)
I dunno, “it doesn't have to be that way” is very contextual. I think the peak group coherence and idea integration available in physical proximity is probably considerably above the peak available with current-day telecommunications (and current-day social/psychological technologies/practices surrounding it). But of course most groups won't be able to reach either peak, and the peaks for particular individuals or groups may be reversed from that, or there may be other factors that reverse them. (For instance, being able to more legibly put effort into communication practices with the excuse of “we need to relearn to work together because remote”, even if doing the same thing while in proximity would have had even better effects—and not necessarily because of external pressure, since the same emotive mechanic can operate within the group.)
Sixteen tons, and what do you get?
Julia has dynamic types. I think the parent is referring to statically typed languages by "rich type systems" (because dynamic types can often have arbitrary richness since they're basically just another form of runtime errors/exceptions).
Folks here are discussing the difference between AR and VR. My own take is that it's a difference of implementation. Quality VR with quality external cameras is going to give you a MUCH better experience than would AR glasses, and can of course do many things that VR glasses could not. I do think that AR glasses are much more practical and will have broader applicability. But perhaps not so much after a great VR implementation by Apple.
I think London England has a class structure that discourages this. In North America the push to team leader happens quite often and middle management common. The glass ceiling is usually cto/ceo/coo.
If you have something to show, sure. In my experience most engineers, even "Big Four" ones, have empty Github profiles.
This tweet highlights what they look for in a Junior Dev's resume: https://twitter.com/shaft/status/1355696154990628864?s=19
https://en.m.wikipedia.org/wiki/Company_town

Here you go!
I want my stuff to act smart, and I am happy to share my data to enable that. I just don't want the data I share to be used for anything other than making my software smart. I would be happy to pay, given the option. I am not ok with my data being used for advertisement.
> The ethical issue with piracy is that you can't expect to change behaviors or the laws if you merely circumvent them, and circumvent them without substantial risk of punishment.

I don't understand how you can make this claim without any support. If companies believed that withholding random subsets of their collections wouldn't keep consumers from seeing them only lead them not to receive any compensation, they might simply not withhold those catalogues anymore. It's quite easy to come up with thought experiments in which your claim is incorrect.
Wow Google has really been going at it this year.
Is that in the delivery region of Cosa Nostra Pizza?
I really don't understand this either. I worked a wonderful 12 hour shift once, switching between days and nights every 2 weeks. Some weeks I had 5 days off, it was fantastic, and the frequency of day/night allowed for normal weekends.
The referral is more important than anything else. That way the recruiter isn’t to blame if the interview goes bad. “Oh, sorry, that was Dave’s friend”
to learn who rules over you, simply find out who you are not allowed to criticize
Another day older and deeper in debt.
Every discussion of companies acting as local governments need to include Lake Buena Vista, Florida, population 10. You know it as Walt Disney World.

Walt Disney was a proponent of company towns where the employees/residents would be completely dependent on the company. These ideas were expressed in his plans for EPCOT (the unbuilt town, not the theme park we have today). Some of these ideas were later revived in Walt Disney owned and controlled Celebration, Florida.

https://en.wikipedia.org/wiki/Lake_Buena_Vista,_Florida

https://en.wikipedia.org/wiki/EPCOT_(concept)

https://en.wikipedia.org/wiki/Celebration,_Florida
Who do you think destroyed this neutral space? Do you genuinely think both sides are equally at fault for destroying it?

The question isn't who removed it, the question is who will restore it. What will it take to get human beings talking to each other again?
The experiments already happened, though. And they were a bloody mess, often literally if the residents dared talk about forming a union.
Sure, we could also try giving people arsenic to determine if it's toxic to humans.

We've done both experiments already, and we should learn from the extant data rather than repeating unethical experiments.
“Bring back the company store!”

... said no one ever ...
An area that's still pretty different between J and APL (IMO) is that ⋄ makes APL much easier for procedural programming while J is easier for functional code. As a result, I (a journeyman in J and beginner in APL) tend to procedural much more in APL. I also get this impression from APLcart where ⋄ and ← are not at all uncommon. Of course, you can do that with J also using [x=. A second area of difference is that J is arguably more math-oriented, which is ironic considering the origins of APL, but I mean look at the primitives! J's 'higher-math' primitives are really useful for preparing datasets.

Also, I'm mainly doing preparatory data wrangling with J (i.e. quick&dirty work) and not having to activate the APL keys everytime is a nice feature. The ability to write a simple #! script and dispensing with the 'APL machine' of workspaces also counts (a feature that just appeared in APL). As a data wrangler though, the true killer feature of J is Jd, the integrated columnar store. Of course you can mmap through it all in APL, but having a completely integrated solution does the trick for me! Actually, I find the concept of 'fetch your data SQLish and model it with J' such a good idea that I'm playing with the idea of extending the concept to the Racket data science world (which is mostly non-existant) :-)

So if you're doing serious programming as done in Fortune 500 companies I'm pretty sure APL wins due to consistency and tooling integration, but for one-off work J is a killer!
quick! someone write a Black Mirror epsidoe
> solved class participation in grade school

Wish I'd learned that lesson. Instead I got this idea that people will like me because I'm smart, so show everyone how smart you are, which is so not true.
You have a fundamental misunderstanding of why so many people don't trust this election, and it has nothing to do with the technology. They don't trust it because the loser of the election has made up baseless claims of fraud - so that he can continue to line his pockets with his supporters' donations. And those supporters are in far too deep now to accept that they've been hoodwinked for so many years.
I am learning python right now, Python is not only non beginner friendly, it's also not C-family(java,c++,js...) friendly(assuming most developers knew some C before taking on Python). That been said, it's versatile enough for me to continue, but calling it beginner-friendly is misleading to say the least.
Coding side projects brings me immense joy. My paid gigs have been soul-crushing, with occasional exceptions. It's all about autonomy. I have a particular approach to cultivating robust codebases, which I developed over 30 years, and which I'm mostly forbidden to apply at work. What, how, and when you can make changes is constrained by team consensus and / or company culture.
A VC isn't going to give you a coding test so they use "worked at google" as a proxy. Also presumably the developer/founder made enough money at google that they could probably stretch out whatever seed money you give them a lot further.
Luckily, they have Facebook to set the floor.
Why repeat a several-times-over failed experiment?
If the best thing you did was take an API from 10 to 8.5 it's probably best to tell the recruiter as little as possible.

Your second line is improvement for sure. But it follows the same basic advice to give numbers
There are lots of ways to ensure correctness; tests, types, formal methods (not caring and just having bugs), but probably the biggest eye opener for me was introducing new programmers to a python code base without type hints.

How do you know what the argument “details” should be?

The function documentation says “takes the query details” ... so people sit down in the repl and just screw around with the functions to try to figure out what they do, or search for examples of how they’re used.

with type hints, this discovery process for other programmers was significantly quicker and on boarding was faster.

I mean, sure, just write better docstrings, but type hints can’t get out of date, because it’s a type checking error.

Maybe a better solution is rust style “compiled doc strings” so the documentation can’t be wrong, or rust style inline unit tests that show examples of how to use functions... but python has neither.

It’s been my experience that type hints for your own code... eh. But if you’re working in a team, they’re valuable.
Who in here ever said they were trying to assign a root cause or place blame? I just said that they're icky.
I reckon part of the reasoning is that they don’t want to make it too easy for these “controversial” bits to percolate to youtube. Of course they are already out there, but you have to know where to look; making them easy to find would empower too many random streamers to recycle it for shock value.

It’s the inevitable tension between Warner’s will to forever use this art for outright commercial purposes (i.e. sell T&J to kids) and the simple wish of academics and passionate consumers to just enjoy the art for what it is.
I usually read "domain expertise" as "communications failure"

The purpose of the code is as much to communicate with other humans as it is to communicate with computers.
Perhaps not - if it required a high karma threshold
now give me a cursor on my phone.
> The Last Mile’s program is defying the country’s 83 percent recidivism rate. In its 10 years existence, there has been zero recidivism amongst it’s nearly 100 graduates, graduates that include Jason Jones.

Those numbers tell you everything you need to know. They're not "solving mass incarceration" any time soon.
Ask HN: What development platforms have the best code samples?
e.g. Stripe has an entire organization on GitHub that's full of documented code samples:

https://github.com/stripe-samples

...and Twilio has their "CodeExchange" directory:

https://www.twilio.com/code-exchange

Are there any other platforms that stand out to you?
> The primary precept of functional programming is that there are ZERO side effects. Well, welcome to the real world of hardware/network failures.

You clearly have never actually learned a functional programming language, because functional programming tends to make it easier to handle errors and side effects precisely because they are more contained, instead of allowing any arbitrary code to throw an exception, or having to remember to handle error codes, etc. I strongly suggest that you build a small toy program in a language like Haskell—it really does change how you approach problems, even in more mainstream, imperative languages.
It's just a problem solving strategy - neither fiery romance nor domestic drudgery - but a way to solve problems in my life, a way that some people see fit to pay me for, even though the type of problem solving they generally task me with is self-perpetuating, creating new problems by design to keep me busy and justify my manager's budget increase requests
GPS location could be used to determine what the speed limit is
I mean, how would you possibly know about the type bugs that you didn't catch? I once ported a medium-size (ca. 5k LoC) python library to native C++, and we discovered a ton of latent type bugs that had stayed unnoticed in the code base for almost a decade. Things can randomly work for a long time due to duck typing, and then break in unpredictable ways.

Over time, this has a very noticable impact on development speed, and in a very painful way for the individual developers who need to spending your time tracing the various call paths in unrelated code and build up a mental model of the involved types every time they want to do a nontrivial change, and then deal with the fallout of unintentional bugs due to missed code paths for an unpredictable amount of time as they are discovered.

So when there is a solution that can completely eliminate this class of bugs in an automated way, this sounds like a very appealing feature.
That's pretty sad though if that is more important than a PhD
Here's the detail for Jython: https://jython.readthedocs.io/en/latest/Concurrency/

Skip down to "thread safety"
I think it's very community-to-community. They have hot and influential areas, where the network effect is strong enough to overcome the critical mass required. Also, I imagine they have "bad" mods who kill communities, and "good" mods who don't.
I think even if you ultimately use Scala as an almost entirely pure FP language (e.g. you live entirely in the Typelevel universe), you really need to understand the "desugaring to OO" well in a way that doesn't happen in the reverse direction (i.e. if you use Scala entirely as an OO language you don't really need to understand equivalent FP constructs).

I think that's where a lot of flames towards Scala from some hard-core FP programmers came from: trying to use Scala as a pure FP language, but having to grapple constantly with the quirks of the underlying OO desugaring.