Better HN
topnewbestaskshowjobs
Log inSign up

brianon99

29 karma · joined Mar 18, 2016 (10y ago) · 19 submissions

Physics student in HK
Submissions

comment 8y ago · link · parent

LOC is not a good way to measure the "bloatness" of a software. There is a significant amount of device driver code in linux kernel. With the number of devices exponentially increasing, it is inevitable, but it does not make the kernel more complex.

A truck is not more complex than a car. A truck is bigger because it is designed to carry more load.

comment 8y ago · link · parent

Things have changed over the years. Even if the developers have patched gcc, or "own" gcc, linux still have to be built with gcc 4.4 otherwise many distro will have problems, so it does not solve the problem.

Moreover, change the semantics of C as you have suggested will break other non-linux-kernele existing programs. There may exists programs depending on the K&R version of max with side effect. Who nows?

comment 8y ago · link · parent

There are many projects recently titled like "xxx in Rust" or "xxx in Go", rewriting an existing software, seems to be built not because there is a problem in the existing software, but without a clear reason.

For learning a new language, it can be a good practice. But if you hope the project to grow successfully I think there is no hope.

comment 8y ago · link · parent

I think what most people mean when they say 'regex' is actually 2 thing:

1. The syntax of that pcre-like regex engine accept.

2. regular language, a kind of formal language.

Many regex engine nowadays like the one in perl5 and onigmura already breaks 2, but still makes 1 compatible. I think what perl6 does is also breaks 1. (I am not experienced in Perl6. Please correct me if I am wrong.) I don't think it is a problem, though.

comment 8y ago · link · parent

Agree that using vector instruction is not crazy at all. I am quite interested when I see the article title, and then deeply disappointed after I read it. I was expecting something like the strlen shown in the book The Hackers Delight, which loads 4 bytes into a int, ad then some bit masking and subtraction and a nlz (number of leading zero) to index the first 0 byte. Please read it first and that is what really what meant by crazy.

comment 8y ago · link · parent

It is difficult to build a TUI. Just to draw several progress bars might take a whole day to implement.

comment 9y ago · link · parent

Dear Tanenbaum, in case you are reading this, thank you for creating Minix. I have the first edition of your Design and Implementation of OS. That enjoyable read makes me a programmer now. Your insights is ever-lasting. Your humbleness marks you as the best computer scientist. Thank you.

comment 9y ago · link · parent

Agree. Though micro looks very good as a light weight editor for programmers, arguably better than vim in some way, it cannot move (neo)vim users like me away. Borrowing Linus Torvalds words on why he is using micro-emacs,

"My fingers cannot be retrained."

comment 9y ago · link · parent

Don’t abuse the term “isomorphics”. To prove 2 groups are isomorphic mathematically you have to show there exists a product preserving map between the groups.

Just kidding.

comment 9y ago · link · parent

Flame war between bash/fish/zsh/powershell is almost meaningless to beginners, because the basic skills are common to all shells. (That said, you will love zsh once you use it)

I learned to use shell, about 7 years ago, by reading O'Reilly "Classic Shell Scripting". It is well written, and teach you something that you can hardly learn from google. But don't try to remember everything, especially those advanced string manipulation syntax, because one would usually use a scripting language such as ruby for advanced job.

comment 9y ago · link · parent

Single quote denotes a symbol in scheme. But this snippest is not strictly scheme. Perhaps it is SXML but I am not familiar with it.

comment 9y ago · link · parent

No , inhertiance is not a key part of oop. Look at Rust and Go. https://lwn.net/Articles/548560/

comment 9y ago · link · parent

Loop unrolling as shown by the author is quite common in maths functions. It is still quite readable and ensure good performance. Openblas use a similar tricks in the old days when there is no intrinsics. Not sure for now.

comment 9y ago · link · parent

To me this is strikingly beautiful, compared to gnome and kde overkilled interface

15.

Update FAQ in meson build tool: meson is not elementary particle(github.com ↗)

1 points · by brianon99 · 9y ago · discuss

comment 9y ago · link · parent

That is definitely 5-6 years of study, because QFT is not taught in undergrad level in most cases.

comment 9y ago · link · parent

I mean they just hate GPL, not open source. Just look at the removal of BlueZ GPL library in 2012.

[1]https://lwn.net/Articles/597293/

comment 9y ago · link · parent

Google is just afraid of GPL I think.

comment 9y ago · link · parent

This is not only an optimisation. Power of 2 is necessary to avoid discontinuity. See the comments below the article for explanation.