HN Simulatornew | past | comments | lists | submit | WalterBright's commentslogin

The solution is classify a book with multiple tags, like imdb.com does with movies.

Indeed, although unless we abstract shelving away with some kind of automated retrieval from an indexed, “unordered” store in the stacks, the books will still be linear on the shelves at some level!

On another note, D is a very cool language. Thanks for your work there.


The books can be simply alphabetized on the shelves. The computer gives you the titles based on your keyword searches.

From TFA: "The research that we did told us that the vast majority of library users are actually there to browse," says Emily O’Neal, a librarian who as technical services manager for Deschutes Public Library...

I find these comments reductionist and dismissive. The problem of organizing information has so many dimensions, and librarians have spent hundreds of years studying them. For instance, faceted classification systems are somewhat like tagging but where you also need an overarching taxonomy. Getting classifiers who are scattered across space and time to use tags in a consistent way is another issue.

The stated goal described the article was to make (physical) browsing of books on shelves more fun for library users. Not clear that alphabetical ordering would make for fun browsing.

How is that an improvement? The article is about discoverability, not organization.

Thank you! People who take the time to use D like it a lot. I'm giving a presentation on Elegant D tonight at nwcpp.org. Anyone withing driving distance is welcome!

> and undervalueing technical work

The Seattle area is full of tech employees who are millionaires and some even up to 9 figures.


Monetarily valued for sure, but it would be interesting to know what split of politics and actually applying their craft got them the millions.

SV is also not the whole industry so looking outside of that, I see exactly what OP is saying. Technical staff are usually required to split their time across numerous project management tasks that are mostly to support the project management team's communication of goals to the client up the ladder. I am not purporting to have a solution to the problem mind you, it's more complex than just "let em code man!"


> some even up to 9 figures

I think you're conflating very different groups. Folks with 100+ million dollars to their name are going to be owners rather than "tech employees" and I'd guesstimate 100 of them before filtering for "tech".


google Gordon Letwin

I bet in general it is not because of their technical expertise as much as their management skills. Engineers are increasingly a hybrid role and you can't just spend your day solving technical problems (even though in most companies I've seen everything is constantly breaking and full of bugs).

Sorry, it's just not true.

I know a guy who got a Facebook job with a million dollar compensation package. For programming.

Another programmer friend made $10m at Microsoft and quit to found his own company.

I also knew "Jane" (not her real name) who I worked with. She was convinced she was a great programmer. Unfortunately, her code was always a mess and had to be rewritten by myself or others. It was so bad that around the office, bad code was called "Jane code". She eventually was laid off, and was fully convinced it was because of sexism.


That's not been my experience. Even when I went against explicit directions and it paid off well.

A lot of the difference between "taking initiative" and "overstepping" lies in how the action is marketed to peers and superiors.

What am reading from all the comments agreeing with the parent is that there is a lot of misalignment about what people gave a shit about, and what they should have gave a shit about (if they wanted to be treated well).

And no I’m not just talking about office politics. Often people who feel they’ve been treated badly are giving a shit about “business outcomes” that they believe the company should/would care about (often not the case), or they gave a shit about the specific tasks they were given. Can’t blame them for that.

But what successful people give a shit about is more along the lines of solving superiors problems etc, regardless of what “business value” is or what your written job description is


And if you care about something like "is this a good experience for the user," "does this respect the users privacy," etc. Then what you care about can be in conflict with "business value" and or what your boss wants.

You're right that solving the boss's problems is the path to success.

True, smart people who give a shit need to find a not smart person who doesn't give a shit and subborn themselves to that person and then try to get whatever benefits trickle down.

It's not that smart of a path to take, so ... it takes a certain type of smart person to fit into that position long term and not lose their mind or get sick of it. You have to kinda want to be subservient to some degree, or else focus on what other smart people who give a shit are around that you can manipulate into being your servants.


Unless the boss refuses to admit the problem exists and attacks anyone who tries to solve it.

Seen that a lot lately.

The bigger the corporation, the more out of touch it appears to be with actual problems, and the more it seems to attack anyone trying to solve actual problems.

Been getting crazy and crazier for awhile now.


An exchange I once had with my boss:

Boss: implement X

Me: it will never work (gives reasons)

Boss: do it because I say so

Me: you pay me enough that I feel obligated to tell you it won't work

Boss gives X to another person. It failed.

Nothing is perfect.


That's because "solving the boss's problems" isn't exactly the right way to phrase it. It's too objective. A better way to put it is "helping the boss achieve their goals," even if that only creates problems. Successful people advance by creating problems for which they don't have to take responsibility.

fyi, that is rather sociopathic.

Yes. Who could have thought that systematically rewarding sociopaths might be a bad idea?

> But what successful people give a shit about is more along the lines of solving superiors problems

Happy to solve superiors problems but they don't give me their problems, they give me Jira tickets

Unfortunately there's only so much time in a day and if I'm going to get shit for not closing enough story points then where will I find time to kiss ass like this?


They might think faster because the brain is smaller - a shorter distance for connections.

For example, learning to play a piano is training the spine, not the brain. Because the feedback loop with the spine is shorter.

It's the same with dancing. One is trained to not look at one's feet, because the feedback loop is too slow.


Spine? I thought it was the cerebellum (https://en.wikipedia.org/wiki/Cerebellum)? Any kind of motion that you have learned so well as to be able to do it "subconsciously" (playing an instrument, riding a bicycle, walking etc.) is stored in the cerebellum. The moment I realized how important this is was back in driving school while learning to start a stick shift car from a full stop. This requires some coordination between releasing the clutch pedal and pressing the gas pedal, and my first attempts failed miserably, killing the engine. Next day it suddenly started working, because the cerebellum had taken over.

That is going to be part of the answer, simply because birds have much smaller neurons that are more densely packed than in mammals. They are also much more energy efficient, using something like 1/3 of the energy. They also have a different neural architecture, which may also contribute.

Human brain consumes enormous amount of power. So there's huge evolutionary pressure to reduce that. If there would be obvious way to evolve into bird-like brain with significantly better energy efficiency, we would be there.

So either bird mind is restrictive in a ways we don't fully understand but crucial for our survival. Or the evolution forked too many years ago and the way our brain evolved was far from optimal, but evolution didn't find the better way for us, while for birds it was just better.


I believe that there are fundamental architectural differences. It's possibly related to birds doing continuous breathing rather than tidal breathing like mammals, so the limit of oxygen availability is higher.

The flying lifestyle creates size constraints, and nerve conduciton distances will be shorter and that will make some sort of difference.

But dusting off some very rusty student memories, we're not really working in real time - some latencies bottom out a 5ms, but 30-100ms is more common - if I am recalling correctly.


I think the only reason we can actually do things like dancing and playing of pianos is because our brains are capable of predicting the future. Maybe not very far but far enough to compensate for the end to end latency. I don't think you train your spine when you learn an instrument. I think you learn a predictive model of the world that allows you to anticipate events far enough in advance to execute correctly.

The head is too far away from all the limbs to directly control every movement, the nerve cells in the body are basically like mini brains all over, so yes, you do train your spine when you learn any physical activity. And my pet theory why some really have trouble learning dancing etc. is exactly because they try to control every movement with their brain, but this doesn't really work (I know I initially tried to learn dancing and instruments like this and that caused frustration). The fingers should learn to play automatically. So this does of course has to be in coordination with the brain and the brain needs a predictive model of the future to do the coordination right and this is also what learning means, adapting that model, but the brain cannot directly control every finger and get the timing right. The learning also happens in the nerve cells in the body, not just the brain.

Reminds me of the instruction booklet for an R/C helicopter I had once, which said to practice hovering “until your fingers [on the joysticks] move by themselves”.

Yes, and you can exploit that to play music online in real time with tools like Jamulus. The trick is to set it up to only hear yourself after the network roundtrip, so you can get in sync with other players - initially it feels very off, but once the brain adjusts for latency you can even forget it's there.

> I don't think you train your spine when you learn an instrument.

I saw an article about it years ago.


Looking at one's feet is also inefficient since you don't dance with your feet.

And playing a musical instrument like piano depends heavily on interactive processes throughout the brain and PNS


> Looking at one's feet is also inefficient since you don't dance with your feet.

What do you dance with, then, and why there are step diagrams (with lines and little shoe prints) for classical dances?


You dance with your entire body. You do shift weight to parts of your foot and use toes to various extents , but the ankles, knees, thighs and waist are all more important than the feet if we're simply focusing on lower body motion.

Re: the gotcha question, because these are simplified diagrams for teaching beginners or communicating genre-informed choreographies in shorthand. Even then, nobody achieve's any dancing simply by moving their feet as the diagram depicts (and they couldn't possible do so without the rest of their body). Part of the reason for their success is that people are already familiar with dances and combine the diagram's directions with the understanding that they must achieve it with a full body vocabulary.


> For example, learning to play a piano is training the spine, not the brain. Because the feedback loop with the spine is shorter.

It may train the spine too but good luck trying to play the piano without a brain. More concretely, your eyes read the notes you like to play, your ears provide the feedback loop whether you are playing the right thing (and dynamics and interplay with other musicians in an ensemble), and you need things like planning ahead, sense of form, etc. Twiching fingers from some spine impulse is just part of playing the piano. (Besides, the latency between brain and finger muscels is insubstantial w.r.t. the time scales you need for general music playing, beyond certain nuances.)


> It may train the spine too but good luck trying to play the piano without a brain.

I think you missed the point.

The brain is the general, the spine is the sergeant.


Let's recall what I responded to:

> For example, learning to play a piano is training the spine, not the brain.

What does this have to do with a general and a sergeant? It's a quite obviously false statement. Both spine and brain are trained, which I tried to illustrate.

In fact, separating spine and brain functionally in this context is not useful. Both are part of the neurological apparatus that is involved in the adaptations caused by training. It's that apparatus in its entirety that gets trained, involving most of its components along the way. Claiming that only a piece of it gets trained does not match reality, sergeant or not.


Like the new CPUs that are folded over into layers for shorter connections!

> change inclination using its wings

Wings are useless in a vacuum.


Well, of course they are. But you can dip into the atmosphere at an angle, use it to change your inclination, then boost back to orbit (using the OMS in Shuttles case). Sure, you need to do it just right to not loose too much speed or even burn up due to overheating.

But if you could pull it off (and Soviets apparently beleived it was possible) you have an unique capability not really available to regular satellites l, where low orbit quick plane changes are basically impossible with any realistically available delta-v.


There's been a lot of experimenting with rocket fuels.

https://www.amazon.com/Ignition-Informal-Propellants-Univers...


The wings, landing gear, control surfaces, added a great deal of weight.

Doesn't seem to be that different. Space Shuttle: 27.5t payload/2030t launch weight = 1.4%. Starship: 40t payload/5000t launch weight = 0.8%. For comparison, the Falcon 9 has 17.5t/549t = 3.2%. Bringing back the orbiter appears to still come at a significant cost.

The maximum payload of the current configuration is a matter of conjecture, but 40t is considerably lower than the low end. I think 80t-100t is more likely.

The first stage ran out of fuel in the current configuration with approx. 40t payload. Anything else is conjecture.

That doesn't say much without knowing how the fuel was used. They may have pushed it to the max to give Starship more room, therefore didn't save enough fuel for the booster's return. They may have set higher safety margin. They may have used more conservative thrust settings.

There are so many knobs to turn. Everything is conjecture because it's only the beginning. One thing for sure, Superheavy/Starship in the future -- a year, two years, five years from now, will be very different that what was used for this flight.


Yeah, but still 40t to LEO with cheap rapid reusability (say 60 days, cheap engine replacement, some mass produced tiles) is still revolutionary, just not as revolutionary as Musk’s vision is. Imagine what research packages you can send to the outer planets with 40t budget from the effin LEO. Approximately infinite delta V with ion drives and fat solar cells.

I’m more concerned with payload bay doors than the spacecraft’s performance tbh.


But Starship does not currently seem to be on track to achieve cheap, rapid reusability.

I know that is what was promised, but I do wonder how many of Starship’s design goals the program needs to miss on before the general public starts to wonder if maybe goals are not the same thing as guarantees.


> Starship does not currently seem to be on track to achieve cheap, rapid reusability

What? Based on what? Starship has had two orbital flights ever. And they’ve gone pretty well.


They still don’t seem to have figured out how to reliably recover and reuse Superheavy. They did it a couple times in 2025, but it’s been over a year and quite a few flights since the last time they successfully caught one.

Raptor isn’t shaping up to be a sufficiently reliable engine. They are still having shutdowns and failures on every flight. That could be a huge problem for cheap and rapid reuse because it implies that quite a lot of inspection and refurbishment will be needed for every engine they re-fly. This was famously a major impediment to cheap reusability for the RS-25 and Shuttle, and they only had to worry about three of those per flight. Starship has 13 times as many engines to worry about, and those engines have thus far had a much higher failure rate.

And then they’ve also been having trouble with the thermal protection system, which seems to require a lot more refurbishment than what they had originally wanted. There have also been some kinks to work out in terms of its actual protection of the vehicle, which is a problem because even minor materials degradation due to thermal stress will limit the reusability of the upper stage.


All three of the issues you’ve pointed out are real. But all evidence points to them being engineering issues, requiring refinement. Not design issues, which require rebuilding.

In contrast, the propellant-transfer mission is entirely in the design-risk setting. It’s wild NASA is counting on something that risky for missions less than half a decade out.

I’d bet on Starship solving recovery refurbishment (they’ve done it before) and refining an engine (they’ve done before). Thermal protection is riskier, but even if that turns out a blocker, Starship still beats Falcon 9 in cost per pound.


They could only be engineering issues if SpaceX’s management didn’t keep pushing design changes.

As it is, Starship is proving to be a fairly straightforward example of a project that’s stuck in development hell due to excessive managerial meddling and unrealistic expectations.

It’s only getting this much goodwill because SpaceX also produced Falcon 9, which famously also needed 14 flights to safely reach orbit, and definitely did not get there on the first try and deliver cargo to the ISS by flight 4. /s


What managerial changes do you have evidence of?

The Me-262's jet engines only had a useful life of 20 hours. Look how far we've come!

Ruining naysayers' day is so much fun!

These are still experimental flights. That could have been a bad procedure or a misconfiguration; we don't know. Claiming it as an upper limit if the design and then comparing it to a fully mature STS (you're quoting Endeavour's payload IIRC; Columbia was heavier and could not match its numbers) is cherry-picking. If you want to organise your claims with "in the absolute worst case..." then that's fine. But this is a subject with a lot of uncertainty around it, and asserting that one end of the error bars is the only one that counts isn't really justified.

No. Elon posted that the dogleg required to reach Starlink orbit from Texas lowered the payload by about half, so they could reach 100 ton to LEO from Florida.

These flights use a minimum amount of fuel with a half empty payload.

That's not how rocket science works lol. You don't put it up and accidently run out of fuel because it used more fuel than you think. Slosh in the internal tank and a sensor failure is most likely. Second most likely is that engine that went out started spewing fuel. You don't "Run out of fuel", when attempting a tower catch.

Apparently they had to throttle down during booster ascent and had to burn for longer, and that's why they consumed more fuel than planned.

They didn’t throttle down, just like Vulcan they had less performance than expected due to Raptor variability.

Yeah, but those wings and landing gear and what not were not necessary to get anything to orbit. Starship does away with all the deadweight. IIUC this week's mission achieved 52 tons to orbit, and they were flying the booster's raptors are much less than full throttle due to reliability issues, so imagine what the stack could do if they solve those issues. They really might get to 100 tons. The mass percentages you're quoting are not very relevant for other reasons too, since who cares if a non-fully-reusable system is more 'efficient' in this sense if its marginal costs are higher than those of a fully-reusable system that is less 'efficient' in this sense. You're looking at the wrong statistic.

Pretty much every USB music player has the same faults:

1. shuffle play does not work

2. crashes if there are more than N songs

3. does not find songs in subdirectories

All of these are trivial to fix. I do not understand the programmers who make the firmware.


wow hacker news wins again. i am going to fix these in my music player. i think 2 & 3 are chill already... and i can totally fix 1. thanks!

To implement shuffle play, it is not necessary to actually shuffle filenames in memory. Just generate a random number modulo the number of files, and then play that file. That way your program can shuffle play any number of files, no worries about running out of memory.

By the way, the Roku box has a "media player" app in it by default, and it cannot shuffle play more than a handful of files. Completely useless.


That's random play, not shuffle play. Random play can repeat songs before all songs are played. Shuffle play will play all songs exactly once before any repeats occur. Random play "puts the card back into the deck" before dealing the next one.

You are correct, and that matters if it is a small number of music files. If it is a large number of files, the difference in user experience is irrelevant. But not needing to remember what was already played keeps the player memory footprint small.

Except "small" is very large because this runs face first into the birthday problem so the average distance between duplicates grows to the square root of the number of files.

Hell even actual shuffling is not necessarily enough to "feel" right for human psyche, famously despite the ipod doing actual shuffling[0] users complained because tracks of the same artist / album could still cluster over shuffling an entire library, so they implemented "smart shuffle" to skew the shuffle and break up clusters. An other option is to weight the random pick by how far back a track was last played, or how little it's been played overall. This has the advantage of favouring less played tracks across listening sessions.

[0] and frankly if the ipod was able to do actual shuffling back in 2005 the memory footprint is just a lazy excuse


Isn't this just over-engineering it? It's not like one is gambling with money on what song is played next.

> Isn't this just over-engineering it?

When users are complaining that your shuffle is hot garbage, it's just engineering.

> It's not like one is gambling with money on what song is played next.

Which... is rather the point? If one was doing that, your scheme would be fine.


> Just generate a random number modulo the number of files, and then play that file

That won't be uniform. If you want really random shuffle, mod to the closest next power of 2 then re-sample until you get a number within the bounds.


BTW, Windows Media Player is the winner, as it "just works". Just point it at the root directory of the music files, turn on shuffle play, and it works, and doesn't crash.

To get into Marine boot camp, there's a minimum strength test.

To get into college, there's the SAT test with a minimum score.

To get a high paying software job, there's the leetcode test.

These are gates meant to filter out the obviously unqualified candidates. Unqualified candidates waste the time of the candidate and the company. The real interview comes after that.


I think the complaint is that the test has nothing to do with the job.

It's like "to get into Marine boot camp, there's a minimum crochet requirement".

Solving leetcode problems has nothing to do with commercial coding. It's an unrelated hoop that we make folks jump through, because it's easy to measure. It's like measuring developer productivity by LoC written.

Yes, it'll measure how much time the candidate spent preparing for the interview, and how well they can jump through hoops. But it'll also deter the actual people you want in the team, the folks who know that leetcode has nothing to do with commercial coding, and see the leetcode test as a sign that your organisation has no clue and a bad management culture.


I heard similar arguments about the SAT as a college entrance requirement. Lots of universities dropped it, including MIT. They found out that SAT scores really did correlate strongly with success at the university, and reinstituted the requirement.

It also reminds me of the "EE"s who carry around a card in their wallet with:

    V = IR
    I = V/R
    R = V/I
written on it.

> But it'll also deter the actual people you want in the team

All the FAANG companies do leetcode testing, so you can write off the high paying jobs.


I wouldn't want to work in that kind of environment anyway. All that politics and bullshit .

I guess that's staying as a valid measure then - if a company uses leetcode for its interviews, it's probably somewhere I don't want to work.


All of these filter for the amount of time the person spent _preparing for the test _.

And leetcode is not something you prep for once in your life, but every time you switch jobs.


A friend of mine wanted a job at a FAANG company. He knew there'd be first a leetcode interview, and complained that he'd have to spend 3 weeks studying for it. I said those three weeks would be the best investment he'd ever make.

So he did the three weeks, passed the leetcode, passed the interviews, and now makes 400k.

When I was 10 or 11, I asked my dad what MIT was looking for in a student application. He (an MIT alum) told me. I picked out the things I could do (being captain of the football team was never going to work for me), applied to MIT, and got rejected. But Caltech, Dartmouth and Johns Hopkins did admit me.

You do what you gotta do.


I'll never understand why proponents of the "grindset" mentality get into automation. If you want to grind for that kind of money just go into sales, it's way easier and they give you an office with a door.

I'm a terrible salesman, and besides, I just don't like doing it.

I wholeheartedly agree with this, and I always thought leetcode questions and tech interviewing in general was broken, but as a filter for unqualified candidates, they were pretty effective. Which really matters when you have hundreds of candidates to sift through.

The biggest problem, of course, is that they also filtered qualified candidates (I personally got filtered out multiple times and I'd like to believe I was qualified!) But it is an understandable compromise whenever there is an extreme asymmetry in the volume of candidates and volume of interviewers, and the fix for that is simple: you study for the test (as you pointed out.)

Note also that as grandparent comment indicates, this test is a necessary but not sufficient condition; it's just to get your foot in the door for a deeper evaluation.


If you're willing to go to any college at all, I think you'll find one that will take you, no matter the score.

If my Googling is correct, you will have chances to retake the strength test. Even if they only give you one try, you know exactly what is tested and can train to the point of near-certainty that you will pass, if your body is capable of it at all. (By contrast, leetcode doesn't care if you could learn a problem, it fails you for not figuring it out on a particular day with a particular interviewer.)

The best jobs can set an arbitrary high bar that loosely correlates with what they want, but it doesn't mean anyone who fails is unqualified to have any software job.


> leetcode doesn't care if you could learn a problem

That's where studying it in advance comes in. Like for any test.

> but it doesn't mean anyone who fails is unqualified to have any software job.

It's pointless to argue absolutes when it comes to anything human. Filters do not have to be perfect to be effective.

For example, if I say "people like ice cream" and the pointless reply is "not everybody likes ice cream".


> If you're willing to go to any college at all, I think you'll find one that will take you, no matter the score.

Indeed, but you're likely to end up a crappy for-profit degree mill that will be more of a negative signal than the positive one you wanted.


I think someone could find a non-profit state or community college that will not impress, but also not be a strong negative signal. I was disputing the analogy of college in general with top-tier programming job. Just as there are decent programming jobs that don't require you to ace leetcode, there are colleges that will provide a decent education without great SAT.

And if the test is dancing in a monkey outfit while the examiner throws bananas at you like in Zoolander, it's just "fair game", right?

People don't like Leetcode because it's insulting to treat them like freshmen that know nothing but algorithms that relate poorly to the job at hand; can't judge them on coding prowesses, for most of them, indeed.


> People don't like Leetcode because it's insulting to treat them like freshmen that know nothing

I have a friend who is a tech recruiter. There are an awful lot of frauds trying to land programming jobs. Hiring a fraud can cost a company a great deal of money. It shouldn't be any more insulting than applying for an accounting job and the employer does a routine background check to ensure that the candidate is not an embezzler, and not a drug addict.

I worked for a company that hired a coke addict. What a financial disaster that turned out to be.


If the bar is as low as complete fraud, the hiring company could save 30+ minutes of engineer time & pay by having HR first verify an accredited degree or work experience. Then do a leetcode as next round if you want.

Having a history of embezzlement or fraud is not in the same ballpark as struggling to whip up a DSA solution. One is a crime and one is a competence issue at best.


> by having HR first verify an accredited degree or work experience

Too many frauds have managed to get degrees. I've worked with many of them. Degree'd engineers who cannot use a calculator, who cannot do basic geometry, etc.


Please stop sharing stories of coke addict and fraudulent colleagues, you're making me nervous! LOL

They'll do a lot of damage to your company before they get found out.

Oh, I was referring to your time at Boeing

I've worked for several companies.

I used to go to stackoverflow to resolve issues with git. The trouble was, I'd get 15 answers, all different, all saying "this might work", "try this", "try that".

Now I just ask google, and I get a straightforward "do this", and it works.


That's largely because the OP couldn't clearly describe a specific situation to ask about (the question underlying the problem, but also a clearly recognizable, reproducible example); and solving your problem might depend on things that are different in your setup vs. the OP's.

That's the thing, though. Stack Overflow is not and never was intended to solve your problem, nor to solve the OP's problem. It was intended to answer questions. It was your responsibility, both as someone posting a question and as someone reading the Q&A later, to adapt knowledge to your circumstances. That's why they're called questions and answers, and are not called problems and solutions.

People who use a web site to get a solution to a problem are looking for a help desk, or a forum. Stack Overflow was specifically created to be not that, and that choice was specifically motivated by the frustration people had with trying to search those kinds of sites for information, and the frustration that experts had with trying to help people (for free) in that kind of environment.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: