Live data from Hacker News

Tinn: A tiny neural network library written in C99

github.com

41–50 of 62 posts

Re: Tinn: A tiny neural network library written in C99

#44
post #40

Earlier quoted context omitted.

It might be easier to answer if you explained why you think it would be better. There may be cases where by-reference (yes, that's an absolutely acceptable thing to say, even in C) is more efficient: If the struct is a kind of "this pointer" (as in object-oriented programming) that is passed to a bunch of functions but relatively rarely used , then passing it by reference causes much less register pressure. Passing i…

> There may be cases where by-reference (yes, that's an absolutely acceptable thing to say, even in C) I don't want to be nit-picking. But I would like to know why "by-reference" is an acceptable thing to say. When I learnt C, C++, Java, etc. I was repeatedly told that pass by reference exists only in C++. In C, a pointer is passed by value. In Java, a reference is passed by value. Doesn't calling "pass pointer by va…

What do you do when you want to find the value a pointer points to? You dereference it of course!

C++ and Java have their own specific language-lawyer definitions of the word reference, but outside of those languages, "reference" is a catch-all term that includes pointers, handles, and indexes.

Re: Tinn: A tiny neural network library written in C99

#45
post #37
post #36

Earlier quoted context omitted.

It's not shitposting. One of the core requirements of modern deep neural networks is performance. The high accuracy you get from very fast training over large amounts of data is the only reason to look at neural networks over very fast, very accurate systems like XGBoost. If something doesn't deliver that, then it's worth pointing out that it is inadequate for anything but toy tasks.

It's not really worth pointing this out when the thing in question is a 200 line C library. People won't be expecting it to save the world and/or butter their toast.

+1 also these tiny libraries are great for learning the basics. All of the code has actual meaning behind it and it's super easy to get it up and running.

Re: Tinn: A tiny neural network library written in C99

#46
post #42

What exactly is the output of the example in `test.c`? I.e. what do the numbers mean? The error in the prediction I guess, but the prediction of what? What is the first entry in the semion data set? a "0"?

No kidding. Does the output mean "hot dog" or "not hot dog"?

Re: Tinn: A tiny neural network library written in C99

#47
post #14

Earlier quoted context omitted.

> Essentially this library is a demo toy It's 200 lines of C, what were you expecting?

Generally when I see links to github projects on HN I expect something useful or extraordinary and this looks like my Neural Networks 101 assignment, only far more polished. But people seem to like it(over 400 stars right now) so maybe I am missing something.

Lucky you to have a neural networks 101! My CS degree is now 12 years old, and I crave simple examples like this one. Hence the upvote.

Re: Tinn: A tiny neural network library written in C99

#48
post #37

Earlier quoted context omitted.

It's not really worth pointing this out when the thing in question is a 200 line C library. People won't be expecting it to save the world and/or butter their toast.

+1 also these tiny libraries are great for learning the basics. All of the code has actual meaning behind it and it's super easy to get it up and running.

No. You definitely don't want to look at C code when you want to learn NN basics.

Re: Tinn: A tiny neural network library written in C99

#49

Earlier quoted context omitted.

Generally when I see links to github projects on HN I expect something useful or extraordinary and this looks like my Neural Networks 101 assignment, only far more polished. But people seem to like it(over 400 stars right now) so maybe I am missing something.

Lucky you to have a neural networks 101! My CS degree is now 12 years old, and I crave simple examples like this one. Hence the upvote.

There is a ton of much better tutorials online (e.g. [1]) if you want a NN 101 course.

[1] http://neuralnetworksanddeeplearning.com/chap1.html#implemen...

Re: Tinn: A tiny neural network library written in C99

#50

Earlier quoted context omitted.

Generally when I see links to github projects on HN I expect something useful or extraordinary and this looks like my Neural Networks 101 assignment, only far more polished. But people seem to like it(over 400 stars right now) so maybe I am missing something.

So... if its usefulness is equal to something you've made, AND it's available to the public, AND it's more polished... why exactly are you shitposting about it? Let people enjoy things.

Please make your point without gratuitous inflammation like “shitposting”. Its effect on the threads should be apparent, and we're trying for better here.
Post reply on HN