Hacker News new | past | comments | ask | show | jobs | submit | david2ndaccount's comments login

You’re switching to the build system of a different, pre 1.0 programming language that has frequent breaking changes?

Zig has a built-in C compiler, arguably one of the just-worksiest C compilers out there.

This does actually look a lot better. Using the inspector to toggle it on and off, “pretty” does look a lot prettier.

Backslash is a valid path character (you can use / or \ as the path separator on windows) so if the backslash isn’t actually escaping anything it is left as-is.


let not thy left hand know what thy right hand doeth


If you’re interested in this, I wrote a blogpost on a simple c hash table without deletion.

https://www.davidpriver.com/c-hash-table.html


Without a non-linear activation function, chaining perceptrons together is equivalent to one large perceptron.


Yep. falcor84: you’re thinking of the so-called ‘multilayer perceptron’ which is basically an archaic name for a (densely connected?) neural network. I was referring to traditional perceptrons.


While ReLU is relatively new, AI researchers have been aware of the need for nonlinear activation functions and building multilayer perceptrons with them since the late 1960s, so I had assumed that's what you meant.


It was a deliberately historical example.


You can have methods with NamedTuple


Oh, with the class declaration version? I never considered that, but feels obvious now.


I wrote a blogpost describing this technique. https://www.davidpriver.com/ctemplates.html



See also https://esolangs.org/wiki/Three_Star_Programmer which shows more indirection is all you need


Only msvc provides strcpy_s and they don’t conform to the standard. Other libcs don’t provide it. Ignore everything from Annex K and write your own wrappers around memcpy. You should always know the size of your buffers.


Ah that sucks. Guess C is just stuck like this for the long term. Writing your own functions is still the best advice :'(


on the plus side, c is good at writing your own functions


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: