News for hackers. Stuff that matters.

brianon99

Re:Fuchsia is not Linux on Wednesday April 11, 2018 @11:00PM (#16817650)
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.

Re:The joy of max() on Saturday March 31, 2018 @05:16AM (#16722499)
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?

Re:Relibc: C Library in Rust for Redox and Linux on Thursday March 08, 2018 @09:35PM (#16549451)
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.

Re:Exploring the Linguistics Behind Regular Expressions on Wednesday March 07, 2018 @05:54AM (#16535598)
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.

Re:How the JVM compares strings on x86 using pcmpestri on Sunday January 07, 2018 @09:57AM (#16091030)
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.
It is difficult to build a TUI. Just to draw several progress bars might take a whole day to implement.
Re:An Open Letter to Intel on Wednesday November 08, 2017 @02:34AM (#15650468)
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.
Re:Modern terminal-based text editor on Thursday September 28, 2017 @11:26PM (#15362533)
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."

Re:Marko – An isomorphic UI framework similar to Vue on Sunday August 20, 2017 @10:35AM (#15058537)
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.

Re:Ask HN: How can I get better at bash? on Monday June 26, 2017 @06:12AM (#14635538)
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.

Re:GNU Shepherd on Saturday June 03, 2017 @08:45AM (#14476148)
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.
Re:Android now supports Kotlin on Thursday May 18, 2017 @09:38AM (#14367051)
No , inhertiance is not a key part of oop. Look at Rust and Go. https://lwn.net/Articles/548560/
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.
Re:Lumina Desktop on Sunday May 07, 2017 @11:41AM (#14285965)
To me this is strikingly beautiful, compared to gnome and kde overkilled interface
Re:If Susan Can Learn Physics, So Can You (2013) on Monday February 20, 2017 @05:55AM (#13686262)
That is definitely 5-6 years of study, because QFT is not taught in undergrad level in most cases.
Re:Google’s not-so-secret new OS on Tuesday February 14, 2017 @11:15PM (#13649638)
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/

Re:Google’s not-so-secret new OS on Tuesday February 14, 2017 @11:04PM (#13649596)
Google is just afraid of GPL I think.
Re:I've been writing ring buffers wrong all these years on Wednesday December 14, 2016 @10:50AM (#13176841)
This is not only an optimisation. Power of 2 is necessary to avoid discontinuity. See the comments below the article for explanation.