HNHacker News
TopNewBestAskShowJobs

thekingofh

170 karma · joined March 21, 2017

submissionscomments
thekingofh··on The perfect programming language
> thus, by default, you're essentially writing FP code using a 'procedural' paradigm and syntax

I've not heard it described this way. It's an idea I can get behind. A lot of the native code I write tends to try and be as functional as possible, or at least avoiding relying on shared mutable state.

And don't get me wrong. I think that Rust is a significant upgrade to the status quo. Perhaps it's just time to keep hacking away at it until it clicks.

thekingofh··on The perfect programming language
I'd consider C++ as the worst of the worst when it comes to ease of entry.

Compared to, say Javascript, Ruby, or Go, Rust has a secondary set of rules that programmers have to learn before they can even do the most simple things. As an experienced programmer, I look at most Rust code with bewilderment. This is after a week of studying the language.

I can look at Python and instantly understand what's happening, without any knowledge of the language. I can look at Go's standard library code and instantly know what it's doing, without any previous knowledge of the language. That seems to me to be the goal of a language. I don't know much about those languages and if they scale or whatever, but they look like they'd be productive.

I look at most C++ and it's on the edge of being incomprehensible if anyone does anything remotely abstract. And that's with 10+ years of experience in the language.

Rust, to me seems like it chooses to prioritize memory correctness and speed over everything else, including productivity. Maybe I'll hack away at learning it for another few weeks and something will click, but for now it's an uphill battle. That to me is a barrier to entry that will not help it gain traction.

thekingofh··on The perfect programming language
Ruby hits that sweet spot for me. Have you seen Crystal? Ruby, but native. Amazing stuff.
thekingofh··on The perfect programming language
There seems to be a happy point in languages where it's easy enough to get up and running, but complex enough to come back through and tighten things up. Like how Python allows a secondary file for parameter types in the function signatures. Also how tools like Flow for javascript has the bolt on type checking. To me, the perfect language seems to be one that does the annoying things like that for you and lets the programmer focus on the actual logic.

Languages like Rust seem to be a reaction against the problems caused by dynamic typing, but I'm not sure that forcing all that burden onto the programmer is the right answer yet. The languages that ease newcomers into the language tend to do well. Rust is like a brick to the face.

Does that mean Rust won't take over the world? Who knows. I do know that what they're doing with it does seem to be the future, but the language is difficult, even for experienced programmers to learn.

thekingofh··on The Bytecode Alliance: Building a secure, composable future for WebAssembly
Is there a plan to bring together a bunch of these extensions under one roof with a package/dependency manager similar to cargo or npm, or is it intended to be glued together on the developer side? To me this looks massive, like to be able to pull down modules knowing what permissions they need, and to be able to have some kind of assurances that the code can't misbehave.
thekingofh··on The Bytecode Alliance: Building a secure, composable future for WebAssembly
Yes, assuming there's no flaws in the interpreter. But they're all moving full steam ahead in the browsers right now, so imagine it's deemed as safe as javascript. The current push is to divvy up the permissions of certain resources such as sockets and filesystem (browser code don't have filesystem access) and make an API to ensure that modules don't overstep their granted permissions. It'll probably look a lot like node and npm, where you could add a module to your source and know that it can't access things it shouldn't. Pretty exciting stuff. It's a true merger of all languages together under one runtime.
thekingofh··on The Bytecode Alliance: Building a secure, composable future for WebAssembly
This whole thing is a shot across the bow of Java. Everyone is finally piling on to kill it once and for all.
thekingofh··on The Bytecode Alliance: Building a secure, composable future for WebAssembly
No. Marking memory as executable is a native machine level capability (as in x86_64 assembly machine instructions). Wasm is a stack machine interpreter that can read only Wasm binaries. The binary format is essentially just a compressed/minimized form of the bytecode format, which used to essentially be an AST of the original source code, but now I believe they modified it a bit to be more analogous to hypothetical machine code, but still abstracted. The Wasm interpreter does not understand x86 or ARM or whatever machine code it's fed it and rightly so. If that was possible, anyone could just send over a buffer to the browser to execute whatever they want.
thekingofh··on Around 30 percent of children in the U.S. don't get enough sleep: study
I've watched how the morning standups are abused. The people with the authority to call them have wasted countless COUNTLESS hours of productivity going in circles about non-issues, just to flex their authority. If I'm upper management and I see daily meetings being called, I'm going to be quick to shut that down. Weekly is fine, but daily seems to me a misrepresentation of the amount of work that can be accomplished in one afternoon.
thekingofh··on My company sold for $100M and I got zilch – how can that be?
"they're previously worked with? That's a good sign."

As in good, or bad?

thekingofh··on Amish Counter Top Kitchen Appliances Run Off Compressed Air (2012)
Not necessarily a negative considering the human need for community.
thekingofh··on Vim 101: How to Start Using the Text Editor for Developers
The key is that it recursively searches (for instance in C++) header files for the word under the cursor and brings you to the first result. To go backward 'CTRL-O' jumps back in the jump list. I've not yet found a way to go to the next item in the '] CTRL-I' list. so I 'CTRL-O' then '2 [ CTRL-I', etc.
thekingofh··on Vim 101: How to Start Using the Text Editor for Developers
[I ... it will change your life.

also [ CTRL-I and it's siblings N[ CTRL-I

I rarely even use tags any more.

thekingofh··on The boring technology behind a one-person Internet company (2018)
I've yet to find someone explain a serverless API based setup that isn't more complicated than good old fashioned LAMP or equivalent. Serverless seems to always come out more expensive as well.
thekingofh··on I’ve Picked My Job over My Kids
Boycott the Sun. Up the Reds.
thekingofh··on All Of Argentina, Uruguay Without Electricity After Massive Outage
Does it have something to do with the Copa America that's currently going on right now? Maybe more people inside watching the games and using up power.
thekingofh··on I Don't Like Smartphones (2016)
Smartphones are great for communication. Better than anything we've had before. But past a point, they are distracting. Just use smartphones for communication and have the self control to avoid the pitfalls.
thekingofh··on Astronomy group calls for urgent action on SpaceX Starlink satellites
Both
thekingofh··on For Better Computing, Liberate CPUs from Garbage Collection
You can usually precisely control garbage collection by turning it off or forcing it to run. The cognitive load to handle memory manually is not insignificant. If you control memory manually, you eventually end up designing some kind of mechanism like ref counting or something else to handle memory cleanup automatically. And there's significant reasoning that ref counting might not be the most desired solution for all use cases. Best is a combination of the ability to handle memory manually, with some more automated garbage collection when there's a need to write stuff that doesn't necessarily have to be the absolute fastest. Kitchen sink languages like C++ tend to have both and don't force the developer in either direction. Best would be to #define out 'new' and make manual memory handling explicit.
thekingofh··on All extensions disabled due to expiration of intermediate signing cert
People take their privacy seriously. Our addons were disabled. I was browsing for a few minutes until I saw ads and didn't realize what was going on. Unacceptable that the default to an expiring signature is to disable them completely.
thekingofh··on All extensions disabled due to expiration of intermediate signing cert
You've fucked up mozilla. I had no option other than to switch over to a browser that would let me install my ad blocker. The web sucks too bad for this. My addons are mine, not yours to disable and enable at will.
thekingofh··on Employees Start to Feel the Squeeze of High-Deductible Health Plans
HSA is spend it or lose it.
thekingofh··on Emissions fall in Madrid city center thanks to new traffic restrictions
Good. I visited Spain a couple decades ago and by far the craziest amount of smog I witnessed was in Madrid. I would be sneezing black stuff by the end of my couple days there. Really hope they get it cleaned up because it's such a neat city.
thekingofh··on Boeing software under scrutiny as Ethiopia prepares crash report
So they'd have to let the plane nose down towards the ground for a bit to then be able to trim back up. This sounds like a cascading failure to me.
thekingofh··on Why there’s so little left of the early internet
The solution is they need to bring back webrings.
thekingofh··on Live Share now included in Visual Studio 2019, available for VS Code
Would you be able to comment on how Microsoft is allowing these sorts of projects considering I imagine it would cut into Visual Studio (paid version) revenue? I've almost completely switched over to VSCode from Vim+Ctags and it's also converted a few of my Linux using friends over as well. Essentially, how in the world does this fund your team? Not that I'm complaining, but it really does seem like a monumental effort.
thekingofh··on Klotho – There May Be a Drug to Turbocharge Your Brain. Who Should Get It?
This is one of the main reasons I like watching soccer. The smallest dude can dominate the world and it doesn't feel like I'm watching people destroy their health for a chance at making it big.
thekingofh··on Researchers trick Tesla autopilot into driving into opposing traffic
And airplanes apparently.
thekingofh··on F-35: What The Pilots Say
Clearly they would choose raw x86_64 assembly for its superior performance profile.
thekingofh··on What Happens Now That China Won't Take U.S. Recycling
The whole point was that we were supposed to be recycling, not using more fossil fuels to ship it all back overseas to be possibly just burned or buried anyways. And at best the recycled material is shipped yet again overseas back to us in the form of new products. The best thing that's come from all this is that we finally know what actually happens to all that 'recycled' material.
← PreviousPage 2 of 5Next →