HNHacker News
TopNewBestAskShowJobs

kasajian

436 karma · joined January 19, 2015

http://about.me/kasajian
submissionscomments
kasajian··on Why is everyone trying to replace Software Engineers?
I'm a software developer. I've been trying to replace myself with code since I started writing code in the early 80s.
kasajian··on Audio Decomposition – open-source seperation of music to constituent instruments
dude can't spell
kasajian··on Parsing protobuf at 2+GB/s: how I learned to love tail calls in C (2021)
They can do it in C, but Google still can't do it in JS in V8 :eyeroll:
kasajian··on C Macro Reflection in Zig
The fact that WASM requires a JS is a marketing fail and misses what could have been a marketing opportunity to make the claim, "finally an alternative to JavaScript".

In this case, this is not a non-issue. If you look at the original github issue, it does a lot of damage, followed by a lot of confusion, followed by a damage-control post that shouldn't have been required if it the original issue was written with more care. It wasn't, because the marketing aspect of Zig was not the focus -- the technical issue was. So it blew up. Hopefully it'll be a lesson learned, but I suspect it isn't. It will take 20 more of such incidents before it sinks in.

As far as it was "announced years ago", I don't see how that matters. The people who are seeing the issue now, and this discussion weren't there to see the announcement years ago.

But I do understand what you're saying. You're point is that the onus is on the the reader to the do their research before overreacting. That's a perfectly fine position. I have a counter opinion which is that the person making the statement / claim / annoucement, simply be understanding of the implication of their statements.

This thing blowing up should not have been a surprise to anyone. Sounds like it would have been to you, so the fact that it blew up is evidence that you would have misjudged. Unless you also agree that the initial message should could have been better worded, in which case, what exactly are you disagreeing with?

kasajian··on C Macro Reflection in Zig
Sounds like damage control. I have to say, for a brilliant guy, andrewrk knows nothing about marketing. The fact that the Zig project can make this significant of a change to their core-value because "trust me i know what I'm doing", makes it impossible (for now) to rely on this in any type of a widely-deployed Enterprise setting. This just made the highly risky move of moving to Zig make it darn near impossible.

What he should have done is announce a project at the same time that will maintain the current developer experience, even if that project is not part of the zig foundation. The developer doesn't care about how he builds zig. They want 1) download 2) use. It doesn't matter from where. If today it's directly from zig, and tomorrow it's from elsewhere to download a combined package, that 's all the devs needed to hear.

kasajian··on Adobe Photoshop Source Code (2013)
I remember traveling to Adobe in the mid-90s to exchange source-code with them, 'cause PhotoShop was MacApp based, and they had a layer working on Windows. And we traded an in-process SQL engine.

I recall brining home some of the code, there were definitely parts of PhotoShop that were included, but not a lot. Just some funky color-space calculations that we ignored.

I'm looking forward to looking at the source to see if there's any remnants of MacApp in the mix. They may have changed everything since the mid 90s. Who knows.

kasajian··on Open Sourcing DOS 4
https://www.os2museum.com/wp/how-not-to-release-historic-sou...
kasajian··on The Performance Impact of C++'s `final` Keyword
I'm surprised by this article. the author genuinely believes that a language construct to benefit performance was added to the language without anyone ever running any metrics to verify. "just trust me bro", is the quote.

It's is an insane level of ignorance about how these things are decided by the standards committee.

kasajian··on Microsoft seeks Rust developers to rewrite core C# code
I'm a bit surprised at this, too.
kasajian··on US developers can offer non-app store purchasing, Apple still collect commission
I'm going to use this post as a reference for what I believe to be one of the least logical arguments I've ever seen on a technical forum. Congratulations.
kasajian··on CSS Is Fun Again
I almost ignored this entire article because I didn't see a date at the top of the blog.

No date on a blog is the first sign of something fishy.

But scrolling all the way down, you can see there's a published date. Weird place to put the date. Is this something new?

kasajian··on Cog: Use Python in your source files to generate pieces of code (2021)
I would want this for C, C within C. You can just write C code in a C file that runs at "compile time" to create more C code.

And I want it to be built-in to Prettier, so all this happens when I press Ctrl+S to save the file.

kasajian··on Turbo Pascal Turns 40
Is anyone going to mentioned that that's not at all what Turbo Pascal looked like when it was first released? Not in 1983. The UI was significantly simpler.

I remember it looking like this: https://imgur.com/EuOVL8c

kasajian··on Microsoft is bringing Python to Excel
The part that makes it a non-starter is that it has to be in some kind of a store (whether it's on prem via SharePoint) or the Internet. What is needed is that you can install something on the user's computer (xcopy install, msi, w/e), but without requiring any other Microsoft end-point. And then, the bits installed either run completely on-node (similar to COM/VSTO) or it would require that access to remote web-server be required. If a remote web-server is required (which is a bit of a limitation), it should be something that can be pointed to without Microsoft's involvement. Just like I can create a web-site, give you a URL to it, and you can go it using your WebBrowser. No app-stores.

That doesn't mean app-store shouldn't be an option. I would love to also publish my add-in in the Microsoft AppStore, but it should be my choice, not a hard-requirement.

That's why people are still using VSTO, not because we have a problem with JavaScript vs. C# or COM.

kasajian··on Ten Things You Can Do with GraalVM (2018)
The decision to make Clojure JVM based and so slow to startup has slowed it's adoption to a much more significant level than anyone in the Clojure community is willing to accept.
kasajian··on Java 20 / JDK 20: General Availability
Why is it difficult to determine what those features are 429, 432, 433, etc. How difficult would it have been to put links there so one can click on the link to see what it is. Have these people hard of hyper-text markup?
kasajian··on SimCity launched a decade ago, and it was so disastrous it killed the series
When I saw this title, I had to ask.. a decade ago? I swear I saw SimCity 30 years ago.
kasajian··on The Vanilla JavaScript Toolkit
It's very clear he's looking for engagement. He submitted last back in December, too. The podcast has only been around a few months. Like dude, give it a rest. Allow stuff to build organically, too; word of mouth.
kasajian··on WebContainer API
Do you want to run nodejs right inside your browser without a backend? If not, then you can just ignore it.

But if you do, then this attempts to solve that problem.

If you're asking what's the use case for running nodejs in the browser? I say use your imagination.

kasajian··on Microsoft failed to rotate certificates for winget CDN on time
Why would anyone standardize on winget when there's chocolatey and it works everywhere you can run Windows software?

Recently I decided to install Windows Server on one of my PC instead of Windows 10/11. I thought, why not attempt to use winget and/or the Windows App Store to install basic software to see how far that takes me.

Immediate dead end. Apparently there's no access from the App Store on Windows Server. You have to have your IT set it up. And all the documentation refer to using winget from the App Store. :/ Microsoft, I can't even with you right now.

With Windows Server 2022, apparently you can get winget to work, but you have to install something else or other that's in preview.

For real, guys. Please get with the program.

Possible workarounds: Anything that's a workaround is already a non-starter for me because I'm not trying to experiment to see what I can get to work. I'm trying to move to using a new norm so I don't get left behind. If Microsoft was pushing winget as the new norm for global silent command-line installations of all things Windows, as an alternative to Chocolately, great! I would have given it a try. Other than that, imma just wait until y'all get your act together, <i>someday-maybe</i>.

kasajian··on The C juggernaut illustrated (2012)
If you had to pick only one language, I'd pick C++ because I can always write C in C++.
kasajian··on The C juggernaut illustrated (2012)
there are a lot of similar languages and many being created every year.

They're just not very popular.

kasajian··on WebAssembly: Adding Python support to WASM language runtimes
It's not for someone who only runs Python locally.
kasajian··on Trs80gp – A TRS-80 Emulator
CoCo was my first computer, too. The manual taught me to program. There were listing in the back pages with BASIC code with DATA statements that were the op-codes to the 6809E machine language. It did funky stuff to get you into High Resolution graphics. I remember buying the Assembly Language cartridge as soon as it came out. Prior to that I was hand-coding machine code manually, using a the 6800 instruction set which similar because that's all I could find at the local electronics store. Some of the opcodes were not the same.. and couldn't figure out why it wouldn't work for days. Hell of a way to learn how to code.
kasajian··on Toxicity in Open Source Discussions
rudeness is unacceptable, but there's also the belief that if someone is working on open-source, then any type of a complaint about the software is unwarranted. That actually itself is entitlement. No matter if open or closed source, sometimes customers are going to complain.
kasajian··on Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.
Cognitive decline doesn't have anything to do with it.

I'll be 60 in three years, and it's much easier today for me to learn a new programming language, paradigm, API, etc, than it was twenty years ago. The reason is because: I spend a lot of personal time constantly learning new things, specifically focusing on things that seem scary and uncomfortable, not necessarily complex. If you already know Java, learning C# isn't much of a challenge for your brain. But if you've only programmed using Object-Oriented Programming, try a different paradigm entirely, an environment that's very different, including a different text editor.

Too many developers are too focused on sticking with what they know and optimize for learning the least possible. This is good and bad. It doesn't train your brain to deal with change -- very big change.

So if you've never used vim, force yourself to use vim on a project for six months. If you've only used vim, used Emacs. If you only develop on Linux with Tmux for cloud apps, go get yourself a cheap laptop with Windows, install Visual Studio, and try creating a WPF desktop app. or a Mac with an iPhone.

Back to vim. In my day-job I use Visual Studio. I have some side-projects that I work on that are entirely different environments. One is all NodeJS based using VS-Code. The other is Clojure using the repl. A third is using C and VIM, using raw gnu make that I hand-update. I also use both a Mac and Windows every day, which also adds the challenge of different common keyboard shortcuts on each.

So next time you got a problem to solve for yourself, write a commaand-line utility that is useful to you using C and VIM. Take it slow. Spend an few hours a week. You'll find that you'll have to get much better at context-switching, so you have to leave notes for yourself on what you're doing, where you left off, etc., much more than you do now.

The key is to force your brain to be uncomfortable, especially as you get older, even after you retire.

p.s. I seem to recall hearing John Carmack on some podcast talking about things like, where he recreated Wolfenstein 3D in Haskell, or tried using VI (not even VIM) on a project. I'm not sure what his reasons are, but hey if a strategy is good enough for Carmack, ....

kasajian··on OOP in C
Similar to: https://news.ycombinator.com/item?id=34297450
kasajian··on Simply Object-Oriented C
This document describes a method by which features of Object-Oriented Programming (OOP) can be used in straight C, including Standard/ANSI C, and some variants of pre-ANSI C.
kasajian··on VALL-E: Neural codec language models are zero-shot text to speech synthesizers
Hasn't this been going on since the dawn of time?
kasajian··on The faker's guide to reading x86 assembly language
https://github.com/xoreaxeaxeax/movfuscator
← PreviousPage 2 of 5Next →