Recent submissions

Comment · 4 years ago
No piece of art exists without context. With AI there is no context, no meaning, no relevance. A pretty image by itself is just that - a bunch of bytes displayed on device of your choice.
Comment · 4 years ago
There are also such things as art direction, vision, and style. Even if AI can mimic style with style transfer, it will never achieve greatness this way.

You can apply an AI-powered “Starry Night” filter to any picture, but do you really think Van Gogh would draw something like that?

Comment · 5 years ago
There's nothing "on par" when it comes to C/C++/C#, and these three languages are still quite big in non-web world.
Comment · 5 years ago
For C/C++ on Windows and Linux. CMake build support and cross-platform builds and debugging are available out of the box with Community version of VS.
Comment · 5 years ago
Native macros were never supposed to be used that way. If anything goes wrong, you still have to deal with that, and no IDE will save you from having to invoke your compiler with “preprocess-only” flag to see what you’re dealing with. Been there, done that, don’t want to do that ever again.

Compared to that, debugging generated code is a breeze.

Also, there’s no “third-party” generators - everything just lives in your own source tree. If I ever need to go meta, it’s just a printf away; I can even commit the generated files to my VCS and be able to see what had changed in them between commits in a simple and understandable diff.

Regarding the integration, I’ll take setting up an additional build phase (once) over having to debug C macros any day.

Comment · 5 years ago
The C preprocessor is definitely ill-suited for metaprogramming, but it was never the C way, was it?

The traditional way to do any kind of meaningful metaprogramming in C is just a printf() to a .h or .c file which then is included to your build.

There are a lot of projects doing that. Bison is supposed to be used this way, other projects are doing build configuration like that - by emitting a header with a ton of #define’s, and there’s a ton of languages which use C as a compilation target - and you can see what they are doing and get inspiration from that.

In my opinion it’s an extremely powerful model, much better than anything you can do with the preprocessor.

Comment · 5 years ago
This is a great idea! However, I highly doubt that they will disclose this information.
Comment · 5 years ago
Switching to a personal email domain and another credit card did the trick, at least with the DigitalOcean.
Comment · 6 years ago
Comment · 6 years ago
Ruby? Of all of the scripting languages out there, I find most suitable to write small scripts to transform complex text to something more suitable.
Comment · 6 years ago
Comment · 6 years ago
Comment · 6 years ago
I think it’s the other way around. Instead of redefining operator new() to allocate from an arena, user allocates memory from the arena and then constructs instance there using placement new.
Comment · 6 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton