News for hackers. Stuff that matters.

ivars

Re:SDL3 new GPU API merged on Friday August 30, 2024 @03:06AM (#41398353)
How did they managed to pull this off so quickly? Given how long WebGPU native is in development and still not finalized, you would think it will take SDL GPU API even longer because it supports more platforms.
Re:Any programmers here also play instruments? on Thursday June 20, 2024 @05:23AM (#40736636)
Yes, I play acoustic guitar, fingerstyle mostly. Have been playing for a few decades now.
Do people donate more if they see that the app is developed by a lone-wolf developer rather than a team?
Re:Fourteen Years of Go on Saturday November 11, 2023 @07:17AM (#38229680)
And OpenGL 3.3 is still called "modern"
Re:An In-Depth Look at WebGPU on Wednesday February 08, 2023 @12:53AM (#34704643)
Is anyone here using WebGPU Native in production? In what state is it right now?
Re:What it takes to make a game by yourself on Saturday September 17, 2022 @12:54AM (#32874860)
"No prototypes. Just make the game. Polish as you go. Don't depend on polish happening later. Always maintain constantly shippable code." - John Romero
Re:Ask HN: Modern C++ Workflow? on Friday June 03, 2022 @08:52AM (#31607534)
1. Modern C++ is obviously a huge topic but if I had to describe it in one sentence I'd go for "use smart pointers and containers instead of raw pointers and raw arrays" or "c++ is more than c with classes". If you are completely new to C++ I would recommend "Professional C++" 4th or 5th edition by Marc Gregoire. After that read everything by Scott Meyers and Bjarne Stroustrup you can get (released after 2011).

2. You could use Bazel. Also look into CMake, it's an industry standard, so to speak, and will let you generate build files for almost any kind of build system including Makefiles.

3. I don't use any but some people have success with vcpkg.

4. Clangd is a good choice.

5. A quick one that works is VSCode + clangd and CMake extensions. Clangd will let you format, lint and do some basic static code analysis. Installing clangd extension will install clangd automatically. Or, if you are on Windows, "Visual Studio: Community edition" is even easier to start with right away.

Re:Ask HN: Best (physical) book to learn React? on Saturday January 22, 2022 @12:13AM (#30033829)
I like "Learning React" 2nd Edition (2020) by Ranks and Porcello. Emphasis is on functional programming and hooks.
Re:Ask HN: What are the signs that someone is intelligent? on Monday November 29, 2021 @06:50AM (#29378741)
Is able to override his/her emotional part of the brain with rational decisions.
Re:Ask HN: What is your strongest contrarian opinion? on Saturday September 18, 2021 @01:01AM (#28573809)
Because you are never "the only one". Truly contrarian opinions would sound like madness to us.
Re:Ask HN: What is your strongest contrarian opinion? on Saturday September 18, 2021 @12:58AM (#28573805)
Free will never made any sense to me as soon I started to think about such things. Events are either deterministic or random. None of that involves freedom of choice.
Re:Writing Programs with Ncurses on Monday August 30, 2021 @09:37AM (#28355516)
Any examples of modern apps with rich terminal GUI?
This is more of a humor (obviously), but

* Blockchain - this is usually the first that comes to mind.

* Rust - "hmm, where would I use it now?" is the question you'll ask if you just learned Rust but knew C++ already.

* Vulkan / Direct3d12 - yes, you now have the ability to recreate your own driver from scratch, but who has time for that? Even Microsoft Flight Simulator uses Direct3d 11. GPU ray-tracing will force you to use one of those though anyway.

* WebAssembly - at least in it's current state.

Re:OpenGL Superbible on Monday March 01, 2021 @02:06AM (#26300357)
OpenGL 4.5 has named objects which makes working with OpenGL feel less archaic. Also 3.3 version doesn't have tessellation shaders. But for some reson OpenGL 3.3 is still being called "a modern OpenGL".
Re:Ask HN: Anyone suffering from OCD? how to you handle it? on Tuesday January 12, 2021 @01:34AM (#25743185)
I'm not a doctor (obviously) but, as I understand, the solution to OCD is not to give in to your compulsions. Suffer through your discomfort and anxiety without performing any actions to control your discomfort and anxiety. Treat your compulsions as your enemy rather than your unpleasant internal states.
gamedev.net forums have always been a civil place with a lot of industry experts hanging around. You don't have to be a game developer, though, you can discuss any general graphics and programming questions. Unfortunately it has been going down in popularity every year.
I've read that this is still unknown if vaccinated people can transmit disease or not.
Re:Anti-Vaxxers Think This Is Their Moment on Tuesday December 22, 2020 @02:22AM (#25503837)
6 out of 272,001 people
What is the context of this question?
Re:Ask HN: What new programming languages did you learn in 2020? on Wednesday December 09, 2020 @12:17AM (#25355613)
Go. And I'm glad I did. Feels like a sweetspot between performance of C++ and ease of development of Python.
Re:Ask HN: Best Programming Books of 2020? on Wednesday December 02, 2020 @12:22AM (#25273503)
Artificial Intelligence: A Modern Approach, 4th edition (2020).
That's good news. I think I've read some time ago that guitar sales have plummeted all over the world because people don't play guitars anymore these days. I hope it was just a phase.
I don't think I've had any bad experience with tutorials. Probably because I have low expectations for them anyway. There are a few excellent examples though like learnopengl.com. Books and official documentation is where it's at for me.
Re:Ask HN: Fighting (YouTube) Music Addiction? on Friday October 23, 2020 @01:34AM (#24866304)
Probably the same way you fight any addiction - you either starve it out or replace it with something that doesn't hurt your performance.

Do you listen to music with lyrics? Replacing it with ambient music with no words and no distinctive melody could be one solution.

Or, in my opinion, a better solution would be to dig deeper and to find out why silence causes you anxiety and discomfort. For hundreds of thousands of years people have worked in complete silence. Are you mentally avoiding something?

Re:Ask HN: People who stick to Windows, why? on Thursday September 24, 2020 @01:44AM (#24575608)
I'm using both Linux and Windows, but what attracts me to Win10 is Direct3D 11 and graphics drivers. On Linux you either have to use OpenGL that feels ancient or Vulkan that is a bit too complex for average-sized projects. D3D11 is an excellent API that is both high-level enough to work with comfortably and modern enough to not feels like you are lagging behind. It's just pleasant to work with. Graphics driver support for Windows is excellent since it is driven by the demands of gaming industry.

Visual Studio IDE is an added bonus.

Re:Ask HN: Your Favourite HN Comment? on Sunday September 20, 2020 @01:38AM (#24532110)
User mikekchar on the value of ideas:

My advice is to lower the value of ideas. A lot of time people think, "If only I had a good idea I would be successful". You will see other people saying things like, "Buy my good idea!". But really, good ideas are a dime a dozen. Good ideas, bad ideas... it actually doesn't make much difference. What makes the difference is execution and timing.

For things that take a long time, timing is essentially random. The world is chaotic. Had I known everyone and their dog would be locked down in their houses for months on end, I would have built something to cater to them. But of course, there is no way to know. I find it amusing that just before the pandemic there was a thread on HN talking about overvalued unicorns and Zoom was up near the top of the list. What would need to happen to make Zoom a household name, people asked?

To be successful, really what you need is execution and to have the patience to wait until what you are doing is relevant. Of course there is the fear that it will never be relevant. However, if you accept the thesis that the good idea is not valuable in itself, then you realise that it is not really valuable to pivot without a really good reason. A good idea that is never relevant is just as worthless as a bad idea that is never relevant. However, even a bad idea that is executed very well and ready when the opportunity arises can be successful.

I know nothing about the space related career, but have you checked out AstroPy tutorials? They seem pretty nice to wet your appetite and maybe spring up some ideas.

http://learn.astropy.org/

Re:Ask HN: As a developer what are your aha moments? on Tuesday September 08, 2020 @02:34AM (#24405744)
I had a similar confidence boost when I developed a Vulkan graphics engine. People talk about this library or that framework being hard to learn and use, but when you have struggled through Vulkan and 3d engine quirks, some of them seem like a walk in a park now.

So to answer the original question, my epiphany is that something being "hard" is a relative thing and that "hardness" should never be a barrier that keeps me from reaching my goals.

Re:Ask HN: What Is Your Blog? on Tuesday September 08, 2020 @02:21AM (#24405684)
1. Streaming, server-side media processing, graphics, networking and all things related. These are things that interest me and I'm sure there are my soulmates out there with similar interests.

2. I just recently started.

3. Hosted on Netlify, built with Hugo.

4. https://ivarsblog.com

Re:GitHub Won’t Help You with Hiring on Friday September 04, 2020 @06:45AM (#24373743)
Maybe I missed the forest for the trees, but it sounds like OP is almost discouraging people from contributing to their GitHub profiles?

If you are a well know or experienced dev with a long resume of working for closed-source companies, then, yes, you don't need a GitHub profile. For younger people or developers switching domains, GitHub contributions and personal projects might be the only way of showing their worth to future employers.

Older »