HN user

windowojji

42 karma
Posts1
Comments25
View on HN

Not just that:

Please don't comment on whether someone read an article. "Did you even read the article? It mentions that" can be shortened to "The article mentions that."

What makes you think that everyone who wrote the Constitution and relevant documents 250 years ago was infallible?

The founding fathers got plenty of things wrong, knowing they were designing an imperfect system.

For example, first past the post voting. Washington cautioned against the rise of political parties knowing full well that they were an inevitable consequence of the system he was complicit in engendering.

Brave Search beta 5 years ago

I'm amazed that DDG/Brave don't understand that typing something immediately after a "!" on a smartphone is annoying and difficult. DDG only supports "!" after the character for a small subset of bangs. Thankfully "g!" is one of them, but it's immensely easier to type on smartphone.

The problem with this is that schools tend to very specifically teach TI calculators while leaving other calculators to the children to self-teach.

This is fine if you're a kid who likes/understands/cares about calculators, but if you're not and you don't like math or find learning a specific UI with no guidance annoying it can be bad. I knew kids of both varieties in HS.

I don't think parent was saying Robinhood was good at executing trades, just that its UI was more functional than other brokers'.

Esbuild 0.9 5 years ago

Can you elaborate on this? const and let should be interchangeable from a performance perspective because it's not like the engine needs your input to know whether a binding is reassigned ever (that's a fundamentally easy thing for a compiler to check) so I must conclude that you're seeing performance benefits from using block scoped variables with TDZ that disappear when you use function scoped variables with var?

For some reason people who cook in the USA believe that food isn't worth eating unless it looks like meat. I'm astonished at the amount of time that I go to eat "vegetarian" food anywhere and it's just the meat dish with fake meat in it.

Meanwhile, I go to India and check for vegetarian food, and suddenly it's like care and thought was actually put into making food that works for vegetarian ingredients instead of just substituting what's in a meat dish.

it's applied to a small enough input

The whole point of big-O notation is to analyze algorithms as they're applied to input of size `n` larger than some `n_0`. Of course it's not useful for small inputs - it's explicitly about large inputs.

it's implemented very efficiently

On large inputs, it's very hard see how, say, a linear algorithm with a quadratic algorithm regardless of how "efficiently" it's implemented. Assuming you're talking about something like cache friendliness or good register allocation?

I worked on a game boy emulator a while ago to learn C. I did pretty well and was able to run most games I came across just fine, but never got audio working...I just couldn't understand any of the stuff online about how it worked, and was unable to find any good resources that walked through how audio emulation in general worked, much less game boy's version.

I'd hardly say it relies _heavily_ on obscure math tricks. Typically there's one or two days which require, perhaps, an undergraduate level of math which people would likely get in an intro class during a CS degree.

Most of the problems are around searching a space for some solution or just simulating some state changes. Recent problems involved implementing a higher dimensional version of Conway's game of life[0], a simple arithmetic expression evaluator [1], or a simulator for a simple number game[2] e.g.

The most recent one[3] involves solving a jigsaw puzzle by using a simple backtracking search (or any number of other methods). It's a bit complex, but not reliant on a particular math trick.

The vast majority of the problems in advent of code shouldn't require any math tricks, though they're often complex and involved, particularly as the month goes on.

[0] https://adventofcode.com/2020/day/17

[1] https://adventofcode.com/2020/day/18

[2] https://adventofcode.com/2020/day/15

[3] https://adventofcode.com/2020/day/20