Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jack_h
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
121.
▲
by
jack_h
4y ago
This just illustrates how even in imperative languages like C/C++ programmers naturally reach for more declarative approaches. Type punning with a union is much the same story. It's just unfortunate that C/C++ has so many foo
122.
▲
by
jack_h
5y ago
This works in both directions, there's even an acknowledgement of this within the original quote, "Some of them say “God bless” and “have a blessed day” without a hint of irony.” This shouldn't even be surprising as humans ar
123.
▲
by
jack_h
5y ago
I'd say it depends on context and just how bad it is. I'm in the embedded world and I often advocate for rewrites. As an example the current code bases I maintain has code that persist certain (per product) information to flash wh
124.
▲
by
jack_h
5y ago
I've been in the embedded space for over 10 years so I figure I'll give my thoughts on the matter. Apologies up front as this will be a little ranty. > Embedded developers are very conservative, they don't chase the shiny
125.
▲
by
jack_h
5y ago
I think you're misunderstanding the second amendment and self-defense. The second amendment doesn't enumerate the right to self-defense. Self-defense is an affirmative defense to a criminal charge (in this instance) which is withi
126.
▲
by
jack_h
5y ago
> The supreme court has ruled (almost 100 years later) that it does mean people can own guns, generally for the purpose of state defense [1]. That's not really a fair reading of Presser. That case merely upheld Cruikshank and by ext
127.
▲
by
jack_h
5y ago
> For example, instead of trying to do advanced font rendering for almost every single language and writing style known to man, why not just limit yourself to ASCII, left to right typing and monospaced bitmap fonts in certain devices? I&
128.
▲
by
jack_h
5y ago
As Thomas has argued[1] the privileges or immunities clause of the 14th amendment, now pretty much dead letter, was intended to fully and immediately incorporate the first eight amendments to the states. In fact there are historical records
129.
▲
by
jack_h
5y ago
Why would he 'almost certain[ly]' be disingenuous? He stated in at least one interview that he believed the amendment process was too onerous in its requirements.
130.
▲
by
jack_h
5y ago
Perhaps see my reply here ( https://news.ycombinator.com/item?id=27654225 ). I think you may be misunderstanding what is being stored here. Now as a caveat I'm not familiar with this language, but I am familiar with the
131.
▲
by
jack_h
5y ago
Storing code in a database is super cool stuff and is something I've been thinking about for a number of years. I'm actually surprised this development hasn't happened sooner since basically all tooling is forced to deal with
132.
▲
by
jack_h
5y ago
I'm not sure I understand your question. Could you elaborate?
133.
▲
by
jack_h
5y ago
I have a car whose spark plugs are a pain in the ass to change. You have to disconnect a number of things^[1], unbolt the engine, and lift it to get to them^[2][3]. The thing is this is a modding friendly car, most everything is easily acce
134.
▲
by
jack_h
5y ago
> The only way to get a good maintainable C++ code is to hire very mediocre programmers whose “C++” really means “Qt with some shared ptrs”. I feel like this is the most salient point in my mind. You can make an absolute mess of a code b
135.
▲
by
jack_h
5y ago
This is pretty much it. Why do we use a BGA or WLCSP rather than a DIP package? Because we can’t fit a DIP package into the form factor, and manufacturing costs are higher. Why did we glue/epoxy a few components to the board? Because t
136.
▲
by
jack_h
5y ago
> I am not providing software via the network. I'm providing JSON (or protobuf or whatever), in response to questions. That's one way to look at it, but I think it's a distinction without a difference. Take as an example a
137.
▲
by
jack_h
5y ago
I've commented on this before, but I think the issue is programming languages mix presentation with representation, i.e. text is used for both. Aside from making tooling more difficult it also prevents a programming language from being
138.
▲
by
jack_h
6y ago
There are the ARM Cortex-R series of processors which have two cores running in lockstep for fault tolerance.
139.
▲
by
jack_h
6y ago
This is kind of true, but our senses have massive blind spots when it comes to dangerous things we encounter in nature.
140.
▲
by
jack_h
6y ago
> I wish someone would remake B5 eventually, true to the original but dropping all the unnecessary material (and useless arcs), pulling in the TV movie plots, and addressing the telepath war. I'm actually curious as to what you thin
141.
▲
by
jack_h
6y ago
This source is particularly biased for obvious reasons. Legally speaking there are a lot of open questions surrounding NPVIC and anyone claiming anything at this point should be looked at with a heavy dose of skepticism. There are good argu
142.
▲
by
jack_h
6y ago
> As for citations: the US has just passed the second, largest stimulus package in its history beating or the first from a couple of months back. Are we’re ignoring this gorilla so much that people need citations? I'm going to push
143.
▲
by
jack_h
6y ago
> You’ve just had a “protectionist” President, US is worse off by almost every measure... Could we get some citations to back this up? It seems too soon to even evaluate all of the effects of the (soon to be) previous administrations pol
144.
▲
by
jack_h
6y ago
My last job was like this and it was beyond frustrating. They had essentially re-created the C/C++ language feature of a struct. Rather than letting the compiler/linker worry about where to place the data there was a global array
145.
▲
by
jack_h
6y ago
Disclaimer: I've had to deal with batteries a lot in my career so I'm familiar with their complex nature. I am not an expert though, so I'm sure there are a million more confounding variables that complicate things further. &
146.
▲
by
jack_h
6y ago
My idea that I’ve bandied about here a few times would be to create some kind of a semantic database (not based on relational algebra). All tooling could deal with this rather than the text of the source code.
147.
▲
by
jack_h
6y ago
> Would I be more productive with fancy-pansy code completion? Probably a little bit. But having a simple, agnostic, portable and stable development environment is well worth the trade-off IMO. I'd say historically this was less of
148.
▲
by
jack_h
6y ago
So the embedded industry basically has three types of toolchains/dev environments. Open source, vendor supplied, or paid commercial stuff. The commercial stuff costs a lot of money. Depending on what the project is and the size of the
149.
▲
by
jack_h
6y ago
Honestly I think in the embedded world HALs are a problem with how diverse the micro controller area is getting - especially heterogeneous multi-core chips. HALs end up targeting the least common denominator but there may be a really good r
150.
▲
by
jack_h
6y ago
I wouldn't say it's always ego flexing per se. For instance there are still tons of embedded engineers who won't touch C++ because they think it has some sort of overhead over C, even when C++ wins out in terms of binary size
More ›