HNHacker News
TopNewBestAskShowJobs

Bekwnn

335 karma · joined April 7, 2018

submissionscomments
Bekwnn··on Hobby x86 kernel written with Zig
I've been waiting for something that looks like a firm step forward in the domain of games programming and has ideals which align with the domain. I'm extremely excited for zig and have been messing around with getting a smallish simulation running with SDL on Windows.

At work in C++ I've switched from working on fairly isolated types, where my changes had fast recompile times to lower level changes which cause a good chunk of the engine to recompile. 10 minute compile times, with a lot of tech trying to get that time down as much as possible, are a huge killer to productivity and I can feel myself getting much less done than I was before.

Zig tossed away a lot of the constructs that make C++ slower to compile. I haven't had a chance to see its timings on large projects, but stuff like Jai compiling 90k LoC full commercial game project live on a laptop in 1.4 seconds (which caused Jonathan Blow to say "what? That's weirdly slower than it should be...") gives me hope that Zig is similar.

Bekwnn··on Hobby x86 kernel written with Zig
Because the language is attempting to have a standardized formatter. I'm all for it, personally.
Bekwnn··on I love coding in C
Some of those I'm iffy on the details, but Zig (Ziglang) has async/await, static typing, and very robust ability to intermingle with C. It's being designed for systems/embedded/games.

https://ziglang.org/

Bekwnn··on The Outer Worlds: Fixing the “game thinks my companion is dead” bug
Re: (2), see https://caseymuratori.com/blog_0005 to see exactly how difficult it may be
Bekwnn··on Game Boy Advance “Hello World” Using Zig
Zig is a lot more focused on being a better C that focuses on systems stuff which winds up being good for games. Jai is focused on being a good language for games specifically and so certain highly desirable features for games (reflection, SoA, a different sort of standard library).

But all in all from my time following both for several months they have a lot of similarities. They're only slightly more different than one another than C# and Java.

Bekwnn··on I Ditched Google for DuckDuckGo
You can do your job and type two extra characters, or you could just use it for personal use and not at work. DDG is actually better than google in many cases when it comes to searching for code related things. After a month or so you start to have a sense of what sort of searches need to fall back to using !g (which is pretty much only obscure questions/answers, I find).

If you don't care about your privacy and don't want to dealing with learning a new search engine to the level you've learned google, then this article probably isn't for you.

The idea you wouldn't be able to do your job or that it would be impacted in a nontrivial way by switching to a different search bar in your browser seems ridiculous, correct me if I'm wrong.

Bekwnn··on GitHub Sponsors is now out of beta in 30 countries
Your project being popular is enough. I had no idea who Andrew Kelly was but after reading Zig's documentation, trying it, and feeling like it satisfied what I want from a language of that style going forward, I started chipping in a bit each month.

It probably helped that I watched his video demos on YouTube and such and saw there was a person behind the project.

I'd imagine the project being something exciting or something that makes programming more fun helps a lot as well. An extremely useful but boring project probably won't inspire as many people to donate, even if that's not really fair.

Bekwnn··on The Church of Interruption
That seems to fall under "Barkers"
Bekwnn··on Why I Write Games in C (yes, C)
What is it called? I've followed a bunch of videos and never heard it referred to in any other way
Bekwnn··on Why I Write Games in C (yes, C)
I have similar frustrations using C++, but don't feel using C or even Rust would be an improvement, more of "side-grade" due to various tradeoffs those languages have for game development compared to C++.

I am excited about the development of both Zig and Jai since they both are trying to fill what I believe is a much needed role of a C-like language with a few more nice language features like better compile-time code, better compiler error messages, better error handling that doesn't use exceptions, and build scripts written natively in the languages, all while sticking to fast compile times and simplicity.

Games are a decently different domain than others, and there is a lot of valid complaining about C++. It's a known issue, we just need something that's clearly better, which so far I think those two languages are. I've chipped in a few dollars a month to support Zig and have been using it in my free time, but it still very much feels like the version 0.4.0 that it is.

This wait will probably be a few more painful years.

Bekwnn··on Three Tribes of Programming (2017)
Re: Jonathan Blow, I don't think it's a stretch to say different/better tools can have a profound effect on the industry and resulting games as a whole. As someone in games, quite a lot of software has had far-reaching impact that influenced games on a noteworthy level. Speedtree, Zbrush, and the substance package have basically defined modern AAA art assets. And while the major public engines have had a profound impact, even things like Source mods, RPG Maker, and Game Maker have had a profound impact in terms of enabling development of breakout indie hits or introducing people to game development as a whole who are now in the industry.

So I don't think it's a stretch to say a performant alternative to C++ with a game engine out of the box could have an impact which has broader reach than speedier development of his next game.

Bekwnn··on Things I Learnt from a Senior Software Engineer
Casey Muratori's and Jonathan Blow's streams are pretty great in this regard. Both do low-level gamedev.
Bekwnn··on I Took a Pay Cut for a More Meaningful Job
Personally I've estimated the quality of life I get from working on something fun and meaningful to be about 12-15k/yr. That's the gap between "dream work" and something like generic CRUD business logic type stuff. A huge part of that is the "dream work" also being 40h with decent flex hours, good coworkers, and good management. That 12-15k number is potentially upward of 40k if lacking those.

You spend too much time at work to not enjoy it. And I value my own time and enjoyment highly. I wouldn't want to sell it for less. The lower side of the software engineer payscale is still enough that I have more than I want day-to-day. The main limits it imposes on me are house/car/early retirement related things.

Bekwnn··on What Swimming Taught Me About Happiness
Which is why I place a high price point on my work actually being something I like working on and care about the end result of.

Spending that much time of your life on something you don't for a bit more money... it doesn't feel worthwhile.

Bekwnn··on Teach Yourself Programming in Ten Years (1998)
Not exactly. The methods to achieve these things in real time are new and evolving. It's not just a matter of hardware. Sure, you knew how to get the same end effect with raytracing ages ago, but the path from A to B is extremely different.
Bekwnn··on Ubisoft joins Blender Development Fund to support open-source animation
I feel like 2.8 preview is what made companies step forward to support it. It was a big step in making blender a more attractive alternative.
Bekwnn··on Game Source Code Collection
The games industry being crowded is a bit of a myth, though initially breaking into it does present a barrier. Lots of studios seem hungry for anyone with experience. Though, a lot of the actually interesting projects are crowded. Which is a real concern if that's the only type you want to work on (I'm in that camp...)

Like programming, once you have a few years under your belt, things really open up.

Bekwnn··on Why the C++ standard ships every three years
I'll second Scott Meyers and add that Essential C++ covers the most fundamental parts of the language. Books beyond that tend to cover much more specific and optional tools.

Reading Essential C++ cover-to-cover was very worthwhile in my job as a programmer in AAA games. Books beyond that have mostly involved thumbing around different items to see which I might find useful at some point. Games in particular tend to be very performance sensitive, but also compile-time and debug-performance-sensitive. A lot of the STL is not as respectful of those latter two, meaning a lot of game code uses little or even none of the STL. (Working with UE4 will involve using none, for example.) I'd definitely focus more attention on understanding core language features that the huge amount of content that exists in the STL.

By far the best element of C++ that a lot of other languages lack is const and const-correctness. The second best would be the robust features templates have in comparison to generics of other languages (though the applications allowed by that robustness can be mildly horrifying at times).

Bekwnn··on Oregon Just Voted to Legalize Duplexes on Almost Every City Lot
Vancouver has a pretty great dynamic of lots of high rises on top of stores. Means there's tons of housing downtown and it's incredibly walkable.
Bekwnn··on The Cost of JavaScript in 2019
Firefox and Chrome both have old reddit redirect addons that mean you never wind up seeing new reddit again.
Bekwnn··on Buying into the Emacs Platform (2018)
In my experience it was about 3-4 weeks of forcing 100% use before vim became more effective than regular text editing, but a lot of the pain was gone after ~1.5 weeks.

Then you know it for life. Unquestionably worth it.

Bekwnn··on How I Made $200k When I Was 16 Years Old Through Coding (2018)
I often receive flak for expressing a similar opinion when people express disappointment at CS not teaching them "how to code". Your tuition is best spent on conceptually difficult material, not stuff you can easily pick up on your own.
Bekwnn··on Reddit Terminal Viewer development is shutting down
And let's not throw the baby out with the bathwater. Those specific or niche interests are often done a huge favor by subreddits.
Bekwnn··on Undervalued Engineering Skills: Writing Well
I'd also recommend "It Was the Best of Sentences, It Was the Worst of Sentences" for some easily digestible writing on how to write easily digestible writing. It's probably one of the most useful type of writing skill to have as an engineer.
Bekwnn··on Epic Games Is Acquiring Psyonix
Not just speculation, but unimaginably false. Epic even has a completely free online network service that's completely cross platform and for any storefront. I can't picture them not having online work across storefronts.
Bekwnn··on Programming: Doing it more vs. doing it better
I'm more in the data oriented design camp where you use objects all the time, but also hate what seems to be flagrant abuse of OOP by many programmers.

Casey Muratori had a good quote with regards to it (paraphrased): "Having objects in your code is fine, it's natural. We've been doing it since before OOP was a thing. It's the whole phrase 'object-oriented' that's the problem. You're orienting your thinking around objects, not functions. It's the orientation that's bad about it, not whether you wind up with an object."

Bekwnn··on Ask HN: Do you like/use Reddit's redesign?
There's a simple browser extension to redirect to old.reddit.com. But I agree that if they ever remove that, I'll leave the site. The redesign is comically worse.
Bekwnn··on Computer Graphics from Scratch (2017)
http://www.opengl-tutorial.org/ is a pretty fantastic resource of learning this stuff.

Don't worry too much about opengl vs direct x vs vulkan. There are underlying principles that apply broadly to both.

Alternatively if you want a book that goes more in depth, but still allows you to take your first steps, opengl programming guide 8th+ edition is good.

Expect it to require some patience no matter what route you take. Graphics programming is finnicky.

Bekwnn··on Computer Graphics from Scratch (2017)
I'm currently at a games studio. Graphics in general fascinate me, and I'd be happy at any job which allows for fast iterating and a visual interactive system to work on, where the underlying problems are difficult and performance sensitive.

A lot of the recent outcry over games industry being horrible is a bit exaggerated. I'm glad some of these issues are getting attention, but it's far from being like that everywhere.

It's really compelling work.

Bekwnn··on The Lobster Programming Language
At a glance, one thing that makes it stand out is that it's minimal like a framework, but allows you to code in something with similarities to python, but with more design towards that task. Most python-esque languages are poorly suited for games in terms of performance/features.

Seems to nail most of the desires of mobile/indie scale development.

← PreviousPage 2 of 4Next →