HNHacker News
TopNewBestAskShowJobs

e19293001

1,554 karma · joined November 30, 2013

my user name at gmail.com
submissionscomments
e19293001··on Easy 6502 – How to get started writing 6502 assembly language
Thank you for posting this. This reminds me of my favorite book.

This is for those who want another good assembly book, I would recommend Assembly Language and Computer Architecture Using C++ and Java[0]. You will learn a lot from this book and not only assembly language. You'll learn about a theoretical computer H1, how to use a simulator, debugger, how a CPU can be built from scratch, how a compiler generates code by using a stack then slowly improving the instruction set architecture and make it more efficient in generating assembly code. You'll also learn how an object oriented program can be converted into assembly language. You'll learn how a C program is linked to other object files. You'll learn how to implement your own instruction set. You'll learn how to build an assembler... I can go on and on but this book is much more detailed. Just get this book and have fun reading it. I mean it.

[0] - https://www.amazon.com/Assembly-Language-Computer-Architectu...

e19293001··on Multilabel time series classification with LSTM
Here is an online ipynb viewer to view the code[0].

[0] - http://nbviewer.jupyter.org/github/aqibsaeed/Multilabel-time...

e19293001··on Ask HN: What are some successful products that had a disappointing Show HN?
Found this page:

https://www.reddit.com/r/programming/comments/71i4v/stack_ov...

Much people don't like experts exchange and found this site much better.

e19293001··on Probabilistic Programming
For those who are interested in learning more about Probabilistic Programming:

http://probabilistic-programming.org/wiki/Home

e19293001··on Show HN: I’m writing an ebook version of the Tao of tmux
I've been using Gnu Screen for two years now. Could you please tell me the reasons why I should switch to tmux?
e19293001··on Open-V: The World's First Open Source RISC-V-based 32-bit Microcontroller
This is great! The source code is written in Verilog HDL and is located here[0]. I hope they use english instead of spanish as a language to attract more contributors.

[0] - https://github.com/onchipuis/mriscvcore

e19293001··on Ask HN: As a developer, how can I take advantage of time spent driving to work?
I memorize a certain algorithm/code snippet and recall it while driving. My favorite is Paul Graham's ANSI Common Lisp[0]. From the code snippet, I choose a certain function to recall. It would be hard at first (I suppose that only few that can) but once you've repeatedly recall those functions everyday then you'll be amazed on the benefits when you've got into the flow. I got this idea from reading about Richard Feynman[1] that cause this to divorce with his wife since he is doing calculus in his head while driving: the appointee's wife was granted a divorce from him because of appointee's constantly working calculus problems in his head as soon as awake, while driving car, sitting in living room, and so forth, and that his one hobby was playing his African drums.

[0] - https://sep.yimg.com/ty/cdn/paulgraham/acl2.lisp

[1] - http://gizmodo.com/5916502/richard-feynmans-fbi-files-make-f...

e19293001··on 4-bit calculator made from cardboard and marbles
Here's a guy who made a 4-bit adder through water[0]. Creating a computer through water seems to be really doable. I'd be interested to watch more stuffs like this.

[0] - http://www.blikstein.com/paulo/projects/project_water.html

e19293001··on How did Andrew Ng become so good at Machine Learning?
After reading a paper, you might want to try getting a pen and paper then recall by writing what have you understood as if you are teaching to it others. If you can't recall what you've read then reread the paper to fill in the gap and test your understanding again. This method is called Feynman Technique.
e19293001··on GNU Octave
What resources or books you would like to recommend for data analysis?
e19293001··on GNU Octave
You might want to try installing anaconda[0]. After you have installed, follow the instructions here[1]. There are also lots of videos in youtube if you have not yet done a little bit of googling. By the way, this all requires that you know how to code in python else you can get your hands wet here[2].

Now if you already know how to code in python and know how to use jupyter, you're ready to learn about neural networks. This book[3] did a really good job in explaining the subject.

And, this is what jupyter notebook can do[4].

[0] - https://www.continuum.io/downloads

[1] - http://jupyter.readthedocs.io/en/latest/install.html

[2] - https://www.codecademy.com/learn/python

[3] - https://www.amazon.com/Make-Your-Own-Neural-Network-ebook/dp...

[4] - https://try.jupyter.org/

e19293001··on Siemens to buy Mentor Graphics in $4.5B deal
I agree. It's disappointing to see a news like this. Mentor Graphics did a really great job on their verification tutorials that had done a great benefit to my career. I'm not sure Synopsys is winning the competition though. I just hope some great startup would emerge that's willing to support FOSS or rather some group of people willing to put their effort in creating the next generation and yet competitive and free EDA tools that I'll be interested to join.
e19293001··on Dijkstra's Algorithm
For those who want to learn about Dijkstra's Algorithm:

I would prefer reading the original paper[0] written by Dijsktra himself. The explanation is so clear that I wish all algorithms were written and taught like this. The data structure and the steps are explained simply in plain english rather than a pseudo-code. Really. He's a very good writer. I'm not his student but by reading about him, the most important part in software/hardware development that I learned from him (especially on a large team) is to write a documentation/specification first before writing the code[1].

Their mode of interaction remains a model of disciplined engineering: They would first decide upon the interface between the hardware and the software, by writing a programming manual. Then the hardware designers would have to be faithful to their part of the contract, while Dijkstra, the programmer, would write software for the nonexistent machine. Two of the lessons he learned from this experience were the importance of clear documentation, and that program debugging can be largely avoided through careful design.

[0] - http://www-m3.ma.tum.de/foswiki/pub/MN0506/WebHome/dijkstra....

[1] - https://web.archive.org/web/20031210213835/http://www.utexas...

e19293001··on Applying the Linus Torvalds “Good Taste” Coding Requirement
Maybe I'm wrong about this but I noticed that the code didn't call free() to the element that has breen removed. That would cause a memory leak. Am I missing something here?
e19293001··on Ask HN: What is your best programming joke?
> The bartender replies "root@localhost #"

The buffer overflow exploit worked!

e19293001··on Ask HN: Any recommendations on resources for learning one algorithm a day?
Donald Knuth says he usually writes his book 1 page a day[0]:

Usually when I write a book I finish about one page a day, I mean if the book is 365 pages long it takes me a year, if it's 500 pages long it takes me a year and a half.

So its just normal to read it very slowly.

[0] - https://github.com/kragen/knuth-interview-2006

e19293001··on Ask HN: Posture – what do you do during work to avoid back pain?
I've read somewhere that Donald Knuth had suffered back pain. His doctor adviced him to swim three or four times a week and he eventually confirmed that swimming is an effective excercise to cure and avoid backpain.
e19293001··on Training Recurrent Neural Networks [pdf]
I found this from neural-networks course in coursera[0]. The author of this paper had been discussed as an example of what recurrent neural nets can now do.

Here's the description from the slide:

     •  Ilya Sutskever (2011) trained a special type of recurrent
      neural net to predict the next character in a sequence.

     •  After training for a long time on a string of half a billion
      characters from English Wikipedia, he got it to generate new
      text.

           – It generates by predicting the probability distribution
            for the next character and then sampling a character from
            this distribution.

           – The next slide shows an example of the kind of text it
            generates.

     Notice how much it knows!
     
     Some text generated one character at a time by Ilya Sutskever’s
     recurrent neural network:
     
     In 1974 Northern Denver had been overshadowed by CNL, and several
     Irish intelligence agencies in the Mediterranean region. However,
     on the Victoria, Kings Hebrew stated that Charles decided to
     escape during an alliance. The mansion house was completed in
     1882, the second in its bridge are omitted, while closing is the
     proton reticulum composed below it aims, such that it is the
     blurring of appearing on any well-paid type of box printer.
[0] - https://www.coursera.org/learn/neural-networks/
e19293001··on Ask HN: Fulltime software engineers over 250k, how'd you get there(updated)?
This. Really. I'm on the stage of what you say. Its not that easy to decide what to build based on the knowledge you have since your working alone. Then when you've decided you'll eventually struggle to making it work. I won't worry that the project will not be recognized at least I've spent happy moments learned a lot of stuffs. Built my own tools in getting ready to move on to build yet another interesting stuff that can't be recognized. Doing this just to learn new things until you gained experience and ready to sell your self with the proofs you've made.
e19293001··on Ask HN: Which areas of math are practical to programming/algorithms and why?
Formal languages[0]. Well, if you want to learn about compilers and programming languages.

[0] - https://en.wikipedia.org/wiki/Formal_language

e19293001··on Ask HN: How did you learn coding
This book[0] enlightened me in a lot of ways. Check out the book review, I would testify that almost of what the reviewers said are true.

By reading this book, I've developed my skills in programming with C/C++, assembly language and also learning computer architecture all at the same time. This book contains lots of low level stuffs like designing a cpu core, translate a C++ program to assembly, write an assembler, and many more. The explanation starts with a very simple concepts like translating y = x + 1; to assembly language equivalent until translating an object oriented code to its equivalent assembly language code. It has been a lot of fun learning the relationship of cpu, operating system and the compiler. The exercises are easy enough and had really sharpen my skills. Although the target machine is theoretical, I was able to switch easily into the real machine.

[0] - https://www.amazon.com/Assembly-Language-Computer-Architectu...

e19293001··on Ask HN: How do you read?
When I read a textbook, a specification or an article or something technical that I consider important parts I use the Feynman Technique[0].

As from what the linked article says,

    The technique is simple:

        1. Get a piece of paper
        2. Write at the top the idea or process you want to understand
        3. Explain the idea, as if you were teaching it to someone else

    What’s crucial is that the third step will likely repeat some areas of the idea you already understand. However, eventually you’ll reach a stopping point where you can’t explain. That’s the precise gap in your understanding that you need to fill.
I used to repeatedly explain the idea to myself. At first I find it hard to recall though I don't feel discourage when I'm unable to hold it on my mind at first and just think that there are a few that can but once I train myself I'll eventually improve.

When reading blogs, HN comments, novels etc., I usually read it once just like I'm watching television or a movie.

I don't worry that I read slow since when I've found out that Donald Knuth also reads novels very slowly[1].

If you want a more systematic reading, there is a book[2] which has been mentioned often here in HN.

> Is there an app that you use?

I use org-mode for everything

[0] - http://calnewport.com/blog/2012/10/26/mastering-linear-algeb...

[1] - http://www-cs-faculty.stanford.edu/~uno/retd.html

[2] - https://www.amazon.com/How-Read-Book-Intelligent-Touchstone/...

e19293001··on Emacs 25.1 released
I was once a vim user for a year and switched to emacs to look at its advantage from vim. Keybindings gave me so much pain to adjust and took my brain for a month to completely absorb the keybindings. And even did 'alias vim=$(which emacs)' to force my self to use emacs. I did not try evil-mode thinking that won't resolve my vim addiction. Now I still happily use emacs for 2 years everyday and never get back to vim except for some circumstance that I am forced to use vim on other computers.
e19293001··on Ask HN: What is the cleanest code sample you've seen?
Quicksort in Haskell

    quicksort :: (Ord a) => [a] -> [a]  
    quicksort [] = []  
    quicksort (x:xs) =   
        let smallerSorted = quicksort [a | a <- xs, a <= x]  
            biggerSorted = quicksort [a | a <- xs, a > x]  
        in  smallerSorted ++ [x] ++ biggerSorted
Source: http://learnyouahaskell.com/recursion#hello-recursion
e19293001··on Donald Knuth speaks about his life [video]
Nice to see your post here. I've been repeatedly reading that transcript and sharing to my peers. Thank you
e19293001··on Ask HN: What are your favorite articles/blog posts of all time?
When I'm feeling down or burned out I used to read "Good and Bad Procrastination"[0].

When I need inspiration I go read "How to Make Wealth"[1].

During my day job where I'm required to study specifications, I found "The Feynman Technique"[2] to be useful in understanding the subject quickly.

From time to time I also read "The Best of edw519: A Hacker News Top Contributor"[3].

I just repeatedly read articles and posts that I like:

[0] - http://paulgraham.com/procrastination.html

[1] - http://paulgraham.com/wealth.html

[2] - http://calnewport.com/blog/2012/10/26/mastering-linear-algeb...

[3] - https://web.archive.org/web/20160304034949/http://v25media.s...

e19293001··on Show HN: Architect – Hardware Description and Emulation JavaScript Library
In this website[0], you can compile and play with systemverilog using Synopsys' vcs.

[0] - https://www.edaplayground.com/

e19293001··on Show HN: Architect – Hardware Description and Emulation JavaScript Library
Or this:

    module FourInputAndGate(input [3:0] in, output out);
      assign out = &in;
    endmodule
Reference: http://www.asic-world.com/verilog/operators2.html

Really. Hardware is very fascinating. Great job OP!

e19293001··on Show HN: Architect – Hardware Description and Emulation JavaScript Library
> Verilog isn't a programming language. It is a hardware description language. It is used to describe the behavior of hardware.

In short, coding in verilog is like creating a schematic of the circuit.

e19293001··on Ask HN: Is pomodoro technique effective for programmers?
Pomodoro technique is effective for me. Mostly I'd sprint for 2 pomodoros (50 mins.) then have 10 mins. break. During break, I just walk around the office or get something to drink then go back to work for another 2 pomodoros. I'm not sure if it will work for you because it really depends on your environment for example if your peers talk to you frequently then you'll always get distracted. Just tweak it for your own convenience[0] and don't forget to review daily, weekly, and monthly. See your progress and try to improve from there.

[0] - One of my favorite comment on HN: https://news.ycombinator.com/item?id=1888971

← PreviousPage 5 of 8Next →