News for hackers. Stuff that matters.
Re:Show HN: I trained a neural network to write Kanji by vat on Friday June 22, 2018 @07:22PM (#17378355)
this website uses non-free javascript
Re:Show HN: I trained a neural network to write Kanji by hardmaru on Saturday June 23, 2018 @12:57AM (#17379616)
Interesting

I think the reason that you believe the JS code is obfuscated is because the part of the code that contains the “weights” of the neural network, which contains 4-5 million floating point numbers of an LSTM recurrent neural network.

In fact I trained the neural network using the open source version of Sketch-RNN and encoded the weights using base64 to save you some bandwidth (https://github.com/tensorflow/magenta/tree/master/magenta/mo...)

Welcome to “Software 2.0”, I guess!

Re:Show HN: I trained a neural network to write Kanji by SuperNinKenDo on Friday June 22, 2018 @09:08PM (#17378810)
Thanks for bringing this to my attention, although a link to the Stallman article which someone linked below would have been helpful. I've installed LibreJS, I'm curious to see how many things stop working now.
Re:Show HN: I trained a neural network to write Kanji by gitgud on Friday June 22, 2018 @11:20PM (#17379334)
It's a software firm, which do machine learning projects...

Aren't they allowed to obfuscate they're IP?

Re:Show HN: I trained a neural network to write Kanji by baylearn on Friday June 22, 2018 @07:33PM (#17378418)
How so?
Re:Show HN: I trained a neural network to write Kanji by mappu on Friday June 22, 2018 @08:55PM (#17378765)
Even in the FLOSS world this is a somewhat extremist position - see https://www.gnu.org/philosophy/javascript-trap.en.html
Re:Show HN: I trained a neural network to write Kanji by SuperNinKenDo on Friday June 22, 2018 @09:03PM (#17378796)
Interesting, I'm inclined to support some way of removing code obfuscation. I wonder if a neural network could be trained to do that.
Re:Show HN: I trained a neural network to write Kanji by mappu on Friday June 22, 2018 @09:47PM (#17378978)
It can be done reasonably well without a neural network (look at the '{}' button in Chrome, or Hex-rays for C/C++).

There is some work in applying an NN to make the result look more like "realistic" code samples: http://www.cs.unm.edu/~eschulte/data/katz-saner-2018-preprin...