HNHacker News
TopNewBestAskShowJobs

chakkepolja

304 karma · joined May 27, 2021

submissionscomments
chakkepolja··on The Birth of Tcl
Buddhist swastika is counterclockwise. Hindu Swastika is clockwise. None of them are tilted like Nazi swastika, though.
chakkepolja··on Apple Discontinues macOS Server
I haven't significantly changed with my KDE config in an year or maybe more. It has all features I need, many which I need to install a 3rd party app on windows, and is faster than windows.

I think that's as 'boring' as it gets.

chakkepolja··on The Birth of Tcl
I am curious as to what most westerners react when they see a Hindu swastika? Is it common knowledge that there's a Hindu/Buddhist swastika or is it percieved as Nazi swastika?
chakkepolja··on Moreutils: A collection of Unix tools that nobody thought to write long ago
This was such a footgun! This may be fairly intuitive if you know how shell redirection is implemented. But hard to think of that during the time you write a command.
chakkepolja··on Zig self hosted compiler is now capable of building itself
See https://dwheeler.com/trusting-trust/
chakkepolja··on Why is HN obsessed with Zettelkasten?
1. Cool programming stuff, not involving politics or corporate politics flamewars. Generally narrowly focused on one task. (Make discussion more general and framework / language bikeshedding starts.)

2. Career related stuff. It can be useful. But sometimes it too feels like echo chamber.

chakkepolja··on The next Google
Exactly.

The person who asked 'is HN becoming an echo chamber?'

would've got their answer by now.

chakkepolja··on A project with a single 11,000-line code file
* Editor support for perfect semantic navigation may not be taken granted

* Compiler support for function-level incremental may not be taken granted

* Editor shows a nice file tree (although you can do that with symbols too)

* Working with git is easier

* Reading code on site like GitHub is easier

chakkepolja··on Rustc_codegen_GCC can now bootstrap rustc
PS: For any students here, GSoC 2022 has some projects on GCC Rust frontend: https://gcc.gnu.org/wiki/SummerOfCode#Selected_Project_Ideas
chakkepolja··on What happens when the public lose confidence in academic findings?
The courses that teach SE tools (MIT's Missing semester) are well received. I can understand the resistance for focusing on specific frameworks or dumbing down the syllabus.

What I think is there deserves to be one or two full pledged software engineering courses, teaching how to use testing, version control, software structure etc.. As always, you can start from basic commands / usage and reach to general concepts, it isn't that hard.

And actually I believe US and European academia, at least the Ivy league and second tier colleges, do a decent job at teaching many required concepts. Come to a country like India, and you will see a C programming course that doesn't cover malloc or function pointers, a data structures course without proper introduction to algorithm complexity or difference between abstract data type and implementation, a java course that never properly teaches subtyping. I think students in US graduate decently equipped to write real world software compared to us. At least, I learned a lot of things by reading notes and Ppt of US universities.

(most Indian colleges are woefully inadequate in teaching even the basic concepts for writing software, despite the CS courses being named CSE (comp sci and engineering), not just CS. Incompetence runs to the root in education system except few elite colleges. From that perspective I think CS depts saying that is a first world problem. Sorry for the rant.)

chakkepolja··on Generics can make your Go code slower
> Slow compiles are an issue with C++ templates.

As far as I know

Rust has the same problem although to lesser extent. Monomorphization works well with judicious use. C++ STL is not written like that, they depend on 11111 layers of inlining to work well. Rust libraries aren't much better in this regard.

LTO removed some code bloat, but LTO itself takes more time. until thinLTO summary pass / equivalent pass in GCC WHOPR at least, middle end and early IR optimizations still have to happen, and Go wants to avoid that. I think that's a fine design choice. In Go's design, they have decided virtual calls aren't a cost they'd care anyway, pre 1.8 Go heavily used interfaces and that's not going to change.

> writing the code out customized for each given type should have identical performance to the template-generated version of the code

In theory yeah, but templates tend to generate more instantiations than strictly what you'd write by hand.

Also, obscure corner cases exist, but not big enough, thanks to those numerous man years spent on GCC and LLVM. https://travisdowns.github.io/blog/2020/01/20/zero.html

chakkepolja··on Abstraction: Not what you think it is
and disadvantages being it will be never as clean, as easily optimizable or debuggable, as the one implemented in language.

UFCS is better than C++ ranges. builtin sum types are better than std::variant, etc..

chakkepolja··on Generics can make your Go code slower
We don't know of a way to implement generic types without (vtable dispatch + boxing) cost AND without monomorphization cost. Some languages do former, some latter, some combination of 2.

Monomorphization: * code bloat * slow compiles * debug builds may be slow (esp c++)

Dynamic dispatch & boxing (Usually both are needed): * not zero cost

Pick your poison

chakkepolja··on Generics can make your Go code slower
There's highly tuned java software too, like Lucene, do you call java a systems language?

All in all I think the semantics debate is irrelevant. No one is going to use go for an OS only because someone on internet calls it a systems language.

chakkepolja··on JEP 419: Foreign Function and Memory API
This is apparently focused on efficiently accessing off-heap memory. In Jni lot of things require copies. Only JNI API that's reliably copy-free is ByteBuffer API.
chakkepolja··on Fuchsia Workstation
Sounds like my college where teachers expected us to use ML or blockchain in DBMS and Networks projects, just throwing darts so that they can turn something into a paper.
chakkepolja··on Ask HN: Software with biggest potential for positive impact in 5 years?
I am thinking more like a self-hostable coursera, which institutions and companies can use to provide open education resources in form of courses.
chakkepolja··on Ask HN: Software with biggest potential for positive impact in 5 years?
Walled gardens are popular due to comfort & financial viability, It has nothing to do with security.

People will still use Android or iOS even if you build a state of art mobile OS based on SeL4 completely written in Rust & ATS, with more features and customizability than Android or iOS. Because it doesn't come preinstalled on their devices, and does not have popular apps.

I am afraid walled gardens are logical conclusion of the field, for the things industry tends to optimize.

chakkepolja··on Ask HN: Why aren't there any real alternatives to Electron?
Doesnt change the fact that 70% of web developers are shit at their job.
chakkepolja··on Ask HN: Why aren't there any real alternatives to Electron?
Anecdote: I have written flutter apps in 4GB of RAM, with both Vim+Dart LSP and IntelliJ (somewhat tuned for low memory, but it was fine for me).
chakkepolja··on Ask HN: Why aren't there any real alternatives to Electron?
I think this answer does not emphasize the main point enough.

It's not about the quality of chromium at all, only ubiquity.

Web developers are cheap, its easy to port website's code and slap UI on it. That is the _main_ point.

The manager for whom electron is an option is least bothered by chrome being technically solid foundation. His motive is using cheap webshits and ticking a box.

Doesn't help other cross platform toolkits are either outdated, or immature, or in a weird position like Qt.

Our industry always optimized for some sort of local maxima. From a purely engineering perspective, scripting languages, or hacky UNIX/C glue, or weak typing, would not have made sense at all. But they sticked, because they fulfilled immediate commercial needs.

I don't know if this phenomenon is prevalent in other disciplines of engineering or there is a common name for it.

chakkepolja··on MDN Plus
Since top sites on Google results (GeeksForGeeks, W3Schools etc..) are generally considered suboptimal, what are some good sites for 'how do I do X?' style articles?
chakkepolja··on Vanced Discontinuation
Wouldn't patches still be considered derivative work?
chakkepolja··on Go 1.18
generic is really useful, but map-filter-reduce doesnt work well in go, youre just retrofitting it from your favorite language.

The place for generics in Go is data structure libraries, ORMs etc..

chakkepolja··on Go 1.18
I think the word you're looking for is Monomorphization, and AFAIK it's only C++ and Rust that completely monomorphize.
chakkepolja··on Go 1.18
(not GP)

>> fast compiler

But yeah everything is fast at runtime as well when you coming from JS and python.

chakkepolja··on Hot Dog Linux – Horrible Obsolete Typeface and Dreadful Onscreen Graphics
Not only that, Americans view everyone else and their cultural problems as being similar to theirs. Eg: Journalists who equate India's caste system and racism and writing opinion pieces. (both are terrible, but american journalists understand shit about caste).
chakkepolja··on Command-line Tools can be 235x Faster than your Hadoop Cluster (2014)
Is there a reason classic grep or find utilities do not use multithreading?

It takes 5-6 seconds to search for some files on my machine. Would'nt it be an easy win if `find` had spawned 4 threads?

chakkepolja··on Command-line Tools can be 235x Faster than your Hadoop Cluster (2014)
MongoDB is pretty popular among newbie nodejs developers. (That's not a complement, btw).
chakkepolja··on Essential C [pdf]
This one seems to be probably most in-depth free book for C programming in practice. https://beej.us/guide/bgc/
← PreviousPage 3 of 11Next →