Better HN
topnewbestaskshowjobs
Log inSign up

_hardwaregeek

2,494 karma · joined Feb 27, 2017 (9y ago) · 433 submissions

Student (on leave) at NYU Cloudflare intern for fall 2020 Interested in compilers and programming languages

GitHub: nicholaslyang Email: nick@nicholasyang.com

Submissions

comment 6y ago · link · parent

You'd think so, but a surprising amount of students are still attending. What else would they do? Most can't get a job. They can't join a program like the Peace Corps. Anything beyond those two options requires a degree of self confidence and financial independence that most students don't have. Colleges are offering a pretty mediocre proposition but there aren't many other options.

comment 6y ago · link · parent

I appreciate the correction, but frankly this isn't what I hoped people would take away from my comment. My point was that race/gender/appearance plays a large role in gaining access to normally stratified resources

comment 6y ago · link · parent

I've been thinking about this exact issue with respect to my accomplishments. How much benefit have I drawn from looking like a programmer? I'm an Asian American male with glasses. I fit the part. Looking back, people gave me respect and their ear far before I deserved it. Would I have gotten the same level of encouragement if I were Black? Would I have gotten the same level of respect if I were a woman? Probably not.

Any social engineer can tell you that appearances are half the battle. A white male in a hardhat with a clipboard could get into most construction sites. A white male in a suit could probably get into most office buildings.

There's some rather vehement responses in this thread. I wonder how many people are threatened by the idea that their accomplishments are partially due to them "looking the part" and not just their work and skill.

comment 6y ago · link · parent

This article is bugging me for some reason. I don't disagree with it. It's certainly easier to make a language now, even more so than in 2016 when this article was published. But it feels like saying "it's easier to make a bridge than ever". That statement isn't wrong. I'd much rather make a bridge with modern technology. But it's still a damn hard task.

And citing parsing isn't a great example. Parser generators have been around for ages. And they're usually not the hard part anyways. Defining a simple grammar and parsing it, even manually, isn't that terrible of a task. Getting decent error messages and figuring out recovery? That's trickier.

Code generation has certainly gotten easier. But you still need to go through the process of figuring out how to lower your abstractions. My language is still extremely basic but I've still had to map my high level types and control structures down to WebAssembly. LLVM won't do that for you.

There's also more that your average user expects if you want a language that people use. Decent tooling is important, so a language server and some syntax highlighting packages in different editors. Good error messages. Decent type inference. Most of these you can eschew in the first few iterations of your language but eventually you'll need them.

I feel bad criticizing this post because writing a language has been one of the most instructive experiences I've had. I've learned so much about code generation, typechecking, the WASM spec, etc. But it's still a lot of tough work to get to something people can use. I'm not sure parser generators and LLVM make it that much easier.

comment 6y ago · link · parent

Key point here is that you probably fixed your sleep schedule sometime after high school. Coffee dependency is a pretty common hotfix for a poor sleep schedule. Once you take away the poor sleep schedule, coffee becomes less necessary and more a nice to have.

It'd be interesting seeing the long term effects high school sleep schedules have on people. I wouldn't be surprised if poor sleep patterns in adolescence lead to insomnia and other issues later in life. I definitely felt like my high school sleeping patterns were damaging to my mental and physical health.

comment 6y ago · link · parent

I agree and sympathize with what you're saying. Coding screens are a necessary evil. But perhaps they can be omitted in certain situations. I know I completed the Google foobar challenge far enough to alert a recruiter, only for the recruiter to send me a snapshot test. Like c'mon, I just solved a whole slew of harder problems than this.

I wonder if companies like TripleByte are actually successful in solving this issue. I've avoided them because I'm skeptical of recruiting companies, but it might be a good idea to have people take one coding screen and have it apply to multiple companies.

comment 6y ago · link · parent

Agreed that it's tricky, but there needs to be some feedback loop. Otherwise you end up with seriously broken processes that never get fixed. Companies tend to care about false positives more than false negatives, but there's a decent possibility that some companies have an extremely high false negative rate.

comment 6y ago · link · parent

Also get feedback from candidates, especially rejected ones. The people who get offers will assume that the process works, since it validates their self-worth. Even if the process is very stupid. I've had processes that were so so bad from top companies. Like "here's a repo, clone it, write a program that will be judged by automated tests that you can't see". I had to basically guess what the tests were going to do, which turns the coding challenge into a game of luck.

I'd love to do away with coding screens in general. I glanced at the doc for Stripe and it looks great. I'd have loved to read this doc, but the last time I applied to Stripe I got a HackerRank followed by an auto-rejection. I get why coding screens exist, but it's so annoying to be batted away because I failed blind automated tests.

comment 6y ago · link · parent

Is it just me or does Quora straight up not work on Firefox? Whenever I click the Continue Reading button, it fails to load more and gives me a generic "Something Went Wrong" error. Do people just not test on Firefox anymore?

comment 6y ago · link · parent

So happy to see the Dekalog here. It's hard to find it streaming. Dekalog 1 is a particularly relevant film for HN since it deals with a programmer and his idolization of technology. There's a small moment at a shrine with wax that is immensely beautiful. Kieslowski has such a great eye for the small details and poetry within the scene.

comment 6y ago · link · parent

I misread that as Twitter's Dutch rival. MessageBird would be a hilarious name for a Twitter competitor.

comment 6y ago · link · parent

I've tried to use iterators and closures in my code, but it's not as easy with error handling and lifetimes. Like I could figure out the magic incantation that lets me map over an iterator with a function that returns a result. Or I could write a for loop that pushes to a Vec.

Or I could chain an ok_or_else on an Option but ugh now Rust is complaining that I'm capturing a reference to self. Screw it, I'll rewrite it to be an if let with a return. Part of the problem there is that we know an ok_or_else with try! will execute the closure and return if the value is None, but Rust's borrow check doesn't know that.

None of this is Rust's fault. It's just that it's hard to combine ergonomic closures and borrow checking.

comment 6y ago · link · parent

Could use some linear algebra terms. Pivot? Eigen? Nullspace? Kernel? Determinant? Trace?

comment 6y ago · link · parent

It’s a little too early to see the effects of Jony Ive’s departure. He left less than a year ago. He probably had a decent role in designing Big Sur. Plus all the remaining designers were probably hired by Jony. I doubt we’ll see big change until a few years out.

comment 6y ago · link · parent

This is super super minor but it's JavaScript not Javascript. IMO the camel case makes it look so much better :D

comment 6y ago · link · parent

I use a sous vide machine to keep the yogurt at a consistent temperature. If you're working with non dairy milks, that extra time can help a lot.

If you're looking for another good fermentation, kimchi is a great one. There's nothing better than making kimchi fried rice or kimchijjigae with homemade kimchi.

comment 6y ago · link · parent

I wonder how many people on HN have experienced being the only person of their race in the room. In my case I was put into a French public school where I was the only Asian student. It took me a bit to realize why I found that experience so shitty. The language and culture barrier was definitely a factor. But also it just sucks standing out. Sometimes this difference manifests as racism. Sometimes it manifests as simpering. Either way the manifestation reinforces your otherness, your difference.

There are certainly people who can surmount these obstacles and fit in. Who have the charm and charisma to ingratiate themselves into any group in any place. I'm not one of those people. I'm not obligated to be one of those people. Those people are quite rare.

Another point: Perhaps there are fewer Black people in STEM because Black people have more pressing issues. If I were Black and intelligent, I'd probably be interesting in combating larger social issues and not biochemistry. But that's just me.

comment 6y ago · link · parent

I highly recommend reading The Little Typer if you want a great book that bridges math and code. It starts out describing Pi, a Lisp with some interesting restrictions (limited recursion, types can have values, etc.). They build up some cool stuff like vectors with the size encoded in the type. All of a sudden, they explain that equality is a type, and any value of said type is a proof! Turns out you can think of many proofs as manipulating data structures to get a value of a certain type.

I wonder how long until we get a somewhat mainstream language with pi types. I know Rust considered adding them. And I recently learned that Rust does allow for quantification over lifetimes^[1]. I could certainly see a language that implements dependently typed arrays. Midori for instance looked into eliding bounds checks with compiler proofs^[2].

[1]: https://doc.rust-lang.org/beta/nomicon/hrtb.html [2]: http://joeduffyblog.com/2016/02/07/the-error-model/

comment 6y ago · link · parent

Yeah you're quite similar to people I know, especially in your view of performance and choice of sources. I definitely agree that bottom line, seeking out info is a net benefit.

I have a fair amount of respect for game developers. However at the same time I feel they can make the assumption that all development should follow their practices. That everybody should be writing in C++/Zig/Jai/Rust, using data oriented programming and avoiding objects like the plague. That if other developers were just smart enough they'd make everything ridiculously fast and awesome. Not every game developer thinks this way, obviously, but there is a subset.

The problem with this line of thinking is that it assumes all developers have the same priorities. In actuality game development is an extremely rare area where there are close-to real time requirements. Not painting the screen every 1/24th of a second is a disaster in game dev. Meanwhile GitHub uses Rails in all of its object oriented, garbage collected, interpreted horror. And nobody cares!

I suspect if a troop of elite game developers were dropped into your average web development job, they'd spend an unreasonable amount of time optimizing perf, only to have their lunch eaten by someone who focused on user facing issues. Not that web development is hard or anything. It's just a different set of requirements.

Watching jblow et al is definitely great! But there might be a point where you're put on a team using OOP and asking them to refactor to DOP with bulk allocation because you gotta get that cache utilization will just earn you stares and no buy-in. Or you might be running a startup and realize that all the time you spent getting all requests under 100ms could have been spent writing features.

comment 6y ago · link · parent

It's definitely not the worst to be overly well read in programming literature. But oh man does it get old arguing with someone who is taking advice from a very niche, very particular field such as game development and applying it to general software development.

comment 6y ago · link · parent

There's a particular brand of young developer where every opinion comes from a blog post, talk or HN comment. They have strong views on many different topics and believe that they're knowledgeable and smarter than the average developer^[1].

The only issue? They don't have actual experience to back this up. Because not only is most tech content bullshit, the small percentage that isn't BS may not apply to their situation. You may not be working on soft real time systems. You may not be working with big data. You may not be running a company.

I should know—I'm certainly guilty of assuming that because I read about software development, I'm a better software developer. When really there's a big big big difference between reading about development and actually practicing the craft. Especially if you've only been programming casually. There's a massive difference between writing code for fun and writing code that needs to be a value-add for the company.

[1]: https://en.wikipedia.org/wiki/Yogi_Bear

comment 6y ago · link · parent

> YouTube was (and still largely is) written in Python, way before it was cool and well-known

That's a good point. I wonder how many successful apps used tech that only appeared boring after the fact. Rails is a fairly boring stack today but back when GitHub started, it probably wasn't.

comment 6y ago · link · parent

Yeah maybe "JS is best language ever!!!" is a better example. Or "JS is perfect!!!"

comment 6y ago · link · parent

That's true, but JavaScript is something especially controversial :D. I've yet to find a programmer who doesn't have some sort of stance on JS

Also yeah it is fine to say "I don't care for JS" sans explanation. But if someone were to ask why, it'd be reasonable to expect a list of justifications that had some nuance.

comment 6y ago · link · parent

I'm starting to develop a theory that a person's stance on JavaScript reflects their ability to critique reasonably and therefore their maturity as a developer (to an extent).

JavaScript undeniably has some problems. It's also undeniably useful and eating the world. If you can hold both of these stances in your head and reconcile them into a nuanced opinion, then that's a great sign. If your viewpoint collapses into "JS sucks!!!" or "JS rules!!!" then you're not providing an opinion as much as a dogma, often one that is regurgitated from some other source.

I'm not saying that one should find JavaScript good or bad by the way. Someone who abjectly dislikes JavaScript but also understands its utility is quite useful. The creators of TypeScript, ReasonML, etc. all had to dislike JavaScript in some form. But they had to dislike it in a productive, nuanced manner.

comment 6y ago · link · parent

More modern example, Bong Joon Ho apparently storyboards the entire film before shooting.

Parasite's storyboards: https://www.indiewire.com/2020/05/parasite-bong-joon-ho-stor...

On the flip side, Terence Malick gives you an index card with an aphorism and lets you improvise: https://www.businessinsider.com/thomas-lennon-terrence-malic...

comment 6y ago · link · parent

I recently watched Tarkovsky's The Sacrifice which also deals with the threat of nuclear destruction. The main character is having a birthday dinner when the news informs everybody about the nuclear threat. The simplicity in which this information is revealed and the transition from the mundane to abject fear connected really well to modern times.

It's interesting seeing film ideas repeat and be interpreted by multiple directors. It's almost like some ideas need to bounce from director to director before they find the right outlet. I Live In Fear begets Dr Strangelove begets The Sacrifice.

comment 6y ago · link · parent

People in all countries get measles. Should we help every country equally? If, gasp, there's a rich kid in Pakistan who may get a free measles vaccine, is that evidence to stop fighting measles in Pakistan?

White families have ten times the average wealth versus black families. Putting aside the significant mountain of evidence racial bias in hiring, in tech, in basically every facet of life, that single statistic should be evidence enough that more funding is necessary for minorities.

And what hypocrisy? You can say that black people are not inherently different but face different circumstances due to societal problems. That's not hypocrisy. That's simply acknowledging that race plays a factor in nurture but maybe not nature.

comment 6y ago · link · parent

Atget, and Abbot after, were one of the great photographers who documented cities in flux. Paris for Atget and New York for Berenice Abbot.

Another artist who I've been thinking about is Michelangelo Antonioni. There's something about his juxtaposition of the characters' alienation with the spaces they inhabit that resonates with the pandemic. The phrase "social distancing" beautifully sums up so many of his films.

comment 6y ago · link · parent

Oh yeah we're on the same page that taking classes in a different, specific topic is a great way to amplify your existing CS skills. I'm mostly making the point that going into college with the mindset of double major or bust can be counterproductive. The difference between a minor and a major can be a few extraneous courses, a lot more stress and a little less time to pursue your main interest.

I know I came into college determined to do a double major only to realize that I probably should have made that decision after taking a few courses and evaluating my level of interest in the two subjects.

12345
15