HNHacker News
TopNewBestAskShowJobs

dktoao

316 karma · joined March 23, 2018

Embedded control system developer, founder of Ghost Wrench, LLC.
submissionscomments
dktoao··on Japanese have been producing wood for 700 years without cutting down trees
Electric instruments in general derive their sound mostly through the electronics. There are quite a few high end electric guitar companies (like PRS) that would like you to believe otherwise. If you are in the market for an electric instrument please don't have it made from rare, questionably sourced hardwoods!

https://www.youtube.com/watch?v=n02tImce3AE

dktoao··on Idaho Stop
Someone rode by you a little too close on a bicycle and now you want everyone to have to use less efficient forms of transportation, worsening the climate crisis? Wow, is all I can say.
dktoao··on A database without dynamic memory allocation
"Clever" developer limitation like this almost invariably cause developers to come up with even more convoluted solutions to problems than needed. Don't disagree that long functions can be an indication that someone was copy pasting a bunch of stuff around in the codebase, but not always!
dktoao··on Managers with a business degree reduce employees' wages, do not increase profit
The "beans" way of thinking is outdated! If any company is to be successful in today's environment they need to be counting beads!
dktoao··on Breaking down how USB4 goes where no USB standard has gone before
This madness needs to stop. What features does USB-C not have that the masses have been clamoring for? The only one I can think of is fixing the confusing sub specs that make different cables and ports incompatible with each other, which seems like it was a problem solved with earlier versions of USB.
dktoao··on America’s Affordable Housing Problem
1) 7-ll/gas station: Yes, that would be nice! 2) Strip club / bar / music venu: Yes, this would also be nice! As long as it adheres to noise ordinances and pays for an appropriate amount of security. 3) Heavy industry: no, but I think most reasonable people and even TFA would make the case that this is an acceptable use of zoning.

Zoning regulation exist for a reason but have gone way way too far in the favor of NIMBYs who like living in food/fun/transportation deserts.

dktoao··on Is WebAssembly magic performance pixie dust? (2021)
Heavy use of libc for file io and dynamic memory allocation, but not much else. Some of our code could be converted to using static memory buffers, but we also use some third party libraries that are not so easily changed. Thanks for the link, I will have a look!
dktoao··on Is WebAssembly magic performance pixie dust? (2021)
Thanks for asking for those clarifications,

I don't expect any of the UI work will ever be done in WASM (because it doesn't need to be shared with the embedded side of things). It is more porting standalone libraries that would be useful for both like file parsing and networking libraries. (In particular, the library I ported was a file parser).

dktoao··on Is WebAssembly magic performance pixie dust? (2021)
Looking to get the perspective of some HN'ers here. I am primarily an embedded engineer working with C. Our (small) software team also has a few web people that work on the web UI of our embedded Linux product. Obviously, there is a ton of potential for shared code between the two products utilizing WASM. I recently ported one of our C libraries to WASM as an experiment with emscripten and was blown away by how easy it was. I can't run the unit tests in the browser yet but it seems to have worked perfectly. However, the JS "glue" code that is produced by the emscripten compiler is really scary looking, and as I understand is basically an abridged C runtime that needs to run in the browser. My questions are therefore:

1) Is it too early to adopt WASM for production use in a small company with limited resources?

2) If we did decide to go all in on WASM, what sort of gotchas might we be dealing with?

Thanks everyone!

dktoao··on The Water Wars Come to the Suburbs
You are going to need to provide a source for your claim that cooling is less efficient than heating. AFAIK from my days as a mechanical engineer, heating from an electric source is ~95% efficient and cooling is ~30% efficient...
dktoao··on Modern HDDs have gotten somewhat better
If there is un-written cached data there is a capacitor bank that allows this data to be quickly written to non-volatile flash and rw heads to be retracted in the event of power loss. They test this feature pretty heavily, esp. in enterprise drives. Source: used to work for an HDD manufacturer. So, they might be lying to you but it is pretty useless information on for modern drives.
dktoao··on Leaked Amazon memo warns the company is running out of people to hire
I'm sure there are great teams to work for at Amazon. After all it is a large company with many different offices all over that does a lot of different things. However, my naïve estimation is that I am not very likely to land on one of these teams and much more likely to end up in a meat grinder. However, like I said, that is just my perception and I could be wrong. I just don't intend to find out.
dktoao··on Leaked Amazon memo warns the company is running out of people to hire
From what I have heard, they are a terrible company to work for (even for SWE). I could be wrong but that reputation alone has made me ignore most job postings and recruiters reaching out. Even if they could offer me a 20+% pay rise.
dktoao··on A better/faster JavaScript library for physical math
I made a better (at least in my opinion) engineering math library for JS. It doesn't get much love so I am posting it to HN to see what people think!
dktoao··on Show HN: Pure C Asynchronous HTTP Framework
Question: what is the state of thinking behind managing external dependencies in C? This project appears to just check them into source, which is pretty simple, and I am tempted to do so on my own projects. Is this the preferred method after years of not-so-popular attempts at package managers and various issues with things like CMake external sources, github submodules/subrepos or custom scripts to download source?
dktoao··on Reducing the risk of nuclear war should be a key concern of our generation
Really? They were basically pre-cog on that front. Everything they said was going to happen happened when they said it was going to happen. At least from the layman's perspective of what intelligence they released to the public. Which there was a lot of. Who the heck is saying this? RT? Fox News?
dktoao··on QRImage: Web app to generate QR codes with images
I got 0/4 with the built in reader on the iPhone camera. This was zoomed in pretty close.
dktoao··on Ask HN: Show your failed projects and share a lesson you learned
I made a spreadsheet add-on similar to the pint library for python (dimensional analysis) based on my own open source JS library (https://github.com/GhostWrench/pqm). Website is still up: https://ghostwrench.net/convertplus.html.

To me it seemed like the perfect way to get a solo app up and running because Google was going to run all the sever stuff and I could just cash in. The app never really got off the ground and by the time I realized that Big G really doesn’t want to make it easy for any schmuck to run a profit generating app using their servers and their technology and it wasn’t worth the maintenance effort to keep up with the constant requests to update the app. I think it is no longer available on the GSuite store as of a few months ago. I think my biggest mistakes were as follows:

1) I needed a business/marketing oriented co-founder. I underestimated how difficult that job is and overestimated my ability to do it.

2) I wanted to charge too much for the app. I didn’t want to undersell myself and get caught in a trap of not making enough to keep up with maintenance. I went too far the other way. I think maybe a $50-$60 on time charge would have been appropriate, instead of requiring a subscription. This is an easy fix, but I would had to re-do my marketing effort and see #1

3) Built before I tested the market. I convinced myself that just asking a few of my engineering friend would use it was enough. Again, this is probably a symptom of #1

4) I was mentally unprepared to deal with failure and I lost motivation to keep working on the project when things didn’t go as I expected.

5) I underestimated how much people actually use spreasheet add-ons. There really isn’t a thriving market and most of the really popular apps are a utility attached to another popular standalone project.

6) Probably should have targeted Excel rather than Sheets, because the market is simply bigger.

I think if the stars align, I would like to give this project another go. I don’t think it has totally failed rather than just gone dormant, but I need a better strategy for round 2!

dktoao··on Swedish study finds discrimination against men in female-dominated occupations
> People like you are the problem

Really adds some credence to your “I’m not a racist, you’re a racist!” Argument /s

That’s actually a fantastic article, it outlines pretty well the hypocrisy of the left. You may find that there are some of us on the left that are trying to call out this bullshit too.

dktoao··on Ask HN: What browser extensions are a must-have in 2021?
I like markdown here. Allows you to format you emails ( and other stuff ?? ) with markdown
dktoao··on Swedish study finds discrimination against men in female-dominated occupations
> Engineering is critical, going to a top engineering school is not

Totally agree, I would even go further and say that I think the "top tier" engineering schools are not better (actually I would argue worse because brilliant researchers aren't always brilliant teachers), they just are able to be a lot more selective with the people that they admit and that is probably the biggest factor on why they are perceived as elite. Which makes me roll my eyes at the whole "boo-hoo I didn't get into an ivy" culture that is driving all this resentment in the first place.

> Your basic premise is that the greater proportion a race is of the population, the more mono-cultural the population becomes

Yes and no. I am fully aware that just because I am white I am not of the same culture as another white person. And even more so are the differences between Asian cultures (I have lived and traveled in many parts of Asia). But if you take a general cross-section of people who look similar and live in the same geographical area, and compare them to a different group of people who look similar in the same area, you will find stark economic correlation between the two groups. This is why it is important to be conscious of the way that race is viewed and handled within a society. The argument that "I don't see color" is a very common sentiment amongst actual racists because

1. It makes them feel like they aren't a bad person

2. Conveniently allows them a free pass to not have to take a hard look at their ingrained racial biases

> Income based affirmative action

I agree, this to me seems like a much better metric for providing for affirmative action quotas, however:

1. It would result in very similar outcomes due to the economic correlation between racial groups

2. It could never happen because the American right would scream their heads off about socialism or whatever non-sense their propagandists spoon feed them.

3. Income != Wealth, and wealth is the real killer, so it also is not a silver bullet

dktoao··on Swedish study finds discrimination against men in female-dominated occupations
Sorry if my post came across as a personal attack, it was just an observation by me that your sources did not seem to back up your claim and seemed to be more included to give your post immediate impact than to actually support it. If you actually read and picked these article in good faith I apologize (except for citing and anecdote, unless you did that for comedic effect).

Yes, I believe that affirmative action is not only moral, but also necessary for optimal functioning of modern democracy with many disparate cultures under it's governance. Do you think we would be better off with maintaining the status quo from the 50's?

I can see how affirmative action can breed resentment, I myself was resentful while getting my engineering degree to seeing the high rate of female students getting internships when I never was able to get one. It really sucks when you are working hard towards a goal and see someone else pass you up just because of circumstance (not all of which are as pure as affirmative action, such as students coming from a wealthy well-connected family, or organized cheating cough fraternities cough to get good grades). But maybe it would be better if we directed our anger towards those that are getting ahead by cheating, rather than those that are getting ahead due to society deciding that they need a boost because they come from a place in society that has been traditionally discriminated against?

dktoao··on Swedish study finds discrimination against men in female-dominated occupations
I somewhat agree with your first point about ad-clicking, but I think there is some nuance that you are missing, primarily the fact that all of engineering isn't web design. However, I am fascinated to find that you think that engineering know how isn't a critical aspect of modern societies? Please explain.

I agree that it isn't good that motivated and qualified people that really want to go to a top tier college are rejected. However, that is the basic fact of life when there are 10x more applicants that open spots. I think if we really wanted to tackle this issue as a society the way to start would be to increase the availability and affordability of high quality post-primary education. Let's assume that the lawsuit's basic premise is correct that Asian Americans would be accepted at a much much higher rate if race was eliminated from the acceptance criteria, and then Harvard started evaluating application as such. Harvard would become an Asian American mono-culture to the detriment of not just white people but Hispanic, Black and other under-represented minorities. Is that a good outcome???

I'm speaking loosely because I realize "Asian American" is a quite a broad cultural generalization, but I do personally admire the work-ethic and reverence for science and intellectual pursuit that has gotten this community to where it is today, to quote Drake "You came from the bottom now your whole team here". But as a White male American, I think when you are at the top of the food chain you have a responsibility to see to it that those who are not have an opportunity, otherwise that makes you an asshole.

dktoao··on Swedish study finds discrimination against men in female-dominated occupations
I see this hot take way too often and I take it that you didn't read any of your sources to see if they actually supported your claim. Because:

[1] Yes, Wikipedia confirms that affirmative action is a thing societies across the world engage in it to try to have a representative cross section of the population engaged in critical aspects of society. And yes, in America since the practice became enshrined in law that meant it has cut into the edge that white men have. But if in the future white men become under-represented for whatever reason, I would hope that it would work in the reverse to help give a boost. And in-fact this is already being seen in college admissions for white men vs. asian americans and females. Which leads to your second source:

[2] The article points out that white men are underrepresented in college but the reason given is not affirmative action, but rather cultural. Many young men just are not making the choice to go to college (for better or for worse). It even says in TFA that "The Wall Street Journal reports that many colleges are putting their fingers _on_ the scale for male applicants", which is a direct refutation of your point.

[3] I could file a lawsuit against the state that says politicians are colluding with martian men to keep taco prices down. That doesn't make it true.

[4] Well I have never seen anyone _cite_ an anecdote so...

EDIT: Spelling and grammar

dktoao··on Goodbye, Clean Code (2020)
I realize this a click-bait title, and the article plus the discussion is more nuanced (this is why I love HN!). But I think less experienced developers might take this as a license to just write pages and pages of spaghetti, then point to this article and say "Duplication is good!". Duplication is not good, it is the enemy of maintainability. However, sometimes under very complex software requirements (which hopefully aren't needlessly complex), there is no good abstraction and attempting to create one will just make your code confusing and inefficient. However, there are many things that you can easily abstract safely and practice doing this makes a developer better. If you are a junior developer I highly recommend taking this article with a huge grain of salt or outright ignoring it. Both an ill-fitting abstraction and duplication are going to lead to messy code, messy code is a fact of life, but only one of these practices is going to lead to good habits and help you develop as a software engineer (hint: it isn't duplicating your way out of problems).
dktoao··on It's probably time to stop recommending Clean Code
I think they could be any kind of test that makes sense, so yes. I think the important bit is the automated part.
dktoao··on It's probably time to stop recommending Clean Code
My own experience is that companies that have some sort of formal automated testing have MUCH higher quality code. A testable codebase has to be modular, people spend less time chasing bugs and can refactor more confidently. That being said there are some over-the-top testing philosophies that are more actively harmful than helpful.
dktoao··on Uber, DoorDash and similar firms can’t defy the laws of capitalism after all
I think they mean it is sort of a ponzi scheme for those invested. It requires more and more investor money to operate and will eventually collapse leaving the last round of investors holding the bag while those that got in early may get out fine. I think the ponzi scheme is more an apt metaphor than the actual structure of the company?
dktoao··on Technical debt is not debt; it’s not even technical
I work for a large computer hardware company who I consider to have crippling amount of unchecked technical debt (with no payment plan). Recently I managed to ask the CEO a question in an all-hands meeting. More or less:

"What are your thoughts on managing technical debt across the organization?".

His response:

"I don't know what this technical debt you refer to is". Then he proceeded to answer the question as if I had asked about financial debt. This is the same person that allegedly said "Coding isn't hard, it's just typing!" according to some of the graybeard sources that worked with him when he was still a technical contributor.

I agree with the premise of this article that top decision makers at a company need to be familiar with and actively monitor technical debt (or whatever you want to call it). It can have disastrous consequences for the company. I see it every day.

dktoao··on A shift in American family values is fueling estrangement
I think they meant that their examples are things that would have been "shoved under the rug" or hidden in the past and are no longer taboo. If you were gay in 1900 you hid it, if you are gay in 2020 you are out (usually). Abuse may consist of a lot of things, but using physical abuse as an example. If you beat your kids (more than just spanking) in 1900 it was still taboo (but maybe less so)
← PreviousPage 2 of 4Next →