HNHacker News
TopNewBestAskShowJobs

vasvir

134 karma · joined January 10, 2022

submissionscomments
vasvir··on Meson Build System 1.0
Having a major project in Qt 15 years ago under my belt I can't disagree more. The project started with Qt 2 and at some point migrated to to Qt 3 in half a day. KDE is written in Qt and frankly if it was not a good option that experiment wouldn't have succeeded so far given that the amount of commercial support is a fraction the one GNOME receives. (Yea I know - citation required).

The quirks in Qt are coming form the fact that was trying and still tries to implement a sane C++ dialect and build system (qmake) in a time where the standardization efforts of C++ and event STL was not at the same level of today. For example So now we Boost for signal and slots. Do we still need moc? The same for collections, maps etc. When they go introduced there was no standard / portable solution.

You can probably describe Qt like the C++ equivalent of the java promise (write once - compile everywhere) with its own support for sockets, filesystem and what else abstraction you can imagine off.

Qt was an impressive feat for its time and a joy to program for. Much better than what the web was at the time with is amalgam of languages and text only interfaces. It took web and flexbox up to 2015 to be able to implement the holy grail layout https://en.wikipedia.org/wiki/Holy_grail_(web_design) .

vasvir··on Implementing the MySQL server protocol for fun and profit
It is stuff like this that answers the question: What could possibly go wrong?

Great catch (for the author) and thanks for the explanation (for the parent).

vasvir··on Ex-Reddit CEO on Twitter moderation
yes you are right. Guilty as charged.

I have caught myself many times to crave for the simplistic easy answer and the ready made explanation. The one that tingles your ego suggesting: "How can nobody thought of that? Wow! I am really smart or all other are dump which is about the same.".

In order to escape its allure it takes one or more of the below:

a) self discipline which is not possible to have for all matters and domains b) external factors that force you to delve in to the thing at hand (a job) c) in specific instances you make it a hobby and you gain more intimate knowledge that can't be simplistic black and white.

vasvir··on Ex-Reddit CEO on Twitter moderation
I didn't want to imply that.

Educated people can be wrong alright. However really educated people are rarely absolute in their positions because they know that the world is not black and white and almost always the answer is "it depends" and "let's see it from the other side".

However polarizing views are attracting to non educated minds because they often give their believers simplistic views, potential enemies and pseudo-arguments that can nail the other "educated" or even just common-sense people. It's frightening really to see in action the amount of flattering it goes on in such cases.

vasvir··on Ex-Reddit CEO on Twitter moderation
I believe the underlying problem is the actual human programming deep in our genes. People tend to get organized in clans (i.e. football teams in Europe, political parties etc) and to host polarized opinions such as conspiracy theories that tend to question the status quo.

There are two reasons for that:

1. Psychological Reason: It is tempting for an non educated man to adopt an opinion that derides existing knowledge because these guys now feel taller and not at a disadvantage when confronted with the more elaborate and complex nature of the truth or with educated people.

2. Biological Reason: People polarize against common accepted truths (i.e. Covid) as a safety precaution measure against humanity annihilation due to Lemming behavior. So in the case the majority belief ends up in a catastrophic event the 10%, 5%, 1%, 0.001% minority will survive.

vasvir··on How to move a running process into a tmux session (2020)
Very cool. Thanks for posting this. I tried with screen and I can confirm that it also works.
vasvir··on Closing a 30 pixel gap between native and web
Also the deployment makes much more sense in the web. Users are always in the latest version of the software with no install / update shenanigans. This has other implications as well. The application may change internal formats since it doesn't have to worry about older instances of itself etc.

And if you build an updater in your app like chrome / firefox then it needs to be disabled for Linux distributions that have their own package manager.

vasvir··on Ask HN: Why is Microsoft Teams still so bad?
Matrix is a nice federated protocol and with its client element (formerly riot) https://matrix.org/docs/projects/client/element both demonstrate some respect for user privacy boundaries.

But since it is mostly a network effects game and the setup of keys may be somewhat of putting I am not very optimistic.

Its' a shame though...

vasvir··on Ask HN: Why is Microsoft Teams still so bad?
Skype was "good" back then because it could pierce firewalls and nat setups with its p2p magic. See https://www.theregister.com/2003/10/08/how_does_skype_get_th... but if you look around you will find more info...
vasvir··on Q – Run SQL Directly on CSV or TSV Files
MariaDB sports several storage engines such as InnoDB, MyISAM, Aria etc

One of them is CSV which uses plain text files as backends https://mariadb.com/kb/en/csv-overview/

vasvir··on Plasma Bigscreen
I can attest that KODI has options to bypass the default audio format that was automatically selected during handshake usually through HDMI.

The use case is the following. Consider one that has:

  * 5.1 capable audio system
  * A TVBox (KODI)
  * A TV
  * A projector
Now

  * The TV apps can play 5.1 content
  * The TVBox (KODI) can play 5.1 content when connected to TV through HMDI (5.1 was agreed in the handshake between TV and TVBox)
  * The TVBox __cannot play__ 5.1 content when connected to projector through HDMI because the projector is stereo audio only and there is no option to accept 5.1 content.
KODI gives the capability to __force__ audio output to be 5.1 if the playing video has it. It can transcoding on the fly i.e simple 5.1 in file to DTS.

It does not bypass ALSA. It uses ALSA. It bypasses the original HDMI handshake and follows the user's wishes.

Of course it does not work in my case because a) that's the universe we live and b) it hits some android capability / security problem and it switches back to stereo output.

vasvir··on From Common Lisp to Julia
Where there is GNU Octave https://octave.org/ an Open Source MATLAB clone that works ok for me but your mileage may vary.
vasvir··on Show HN: Desklamp – convenient and collaborative notemaking on PDFs
Looks a lot like Hypothesis https://web.hypothes.is/ which is not only for PDF but also for any web page with a url.

Apparently the whole annotation thing is a W3C standard https://web.hypothes.is/blog/annotation-is-now-a-web-standar... but you know how these things go...

vasvir··on BBC Basic for SDL 2.0
Where is xonix? Better not answer this. I am still trying to make up for all the hours I lost 30 years ago...
vasvir··on Tell HN: Gnome on Wayland Is Amazing
Audio? I believe X has nothing to do with audio. This is a job for ALSA, pulseaudio and most recently pipewire.
vasvir··on LibreOffice running natively in the browser via WebAssembly
What that means though? A VCL backend that targets HMTL5 instead of Qt?

Can you elaborate?

vasvir··on LibreOffice running natively in the browser via WebAssembly
It also works for me in firefox 96 Debian, Linux but it needs some time for downloading...

You can't open local files or save to local files. Open/Save remote crashes...

Pretty impressive though.

vasvir··on Proposal to add build graph output to GNU Make (2020)
Well there is makefile2graph https://github.com/lindenb/makefile2graph. It is even packaged be Debian and it does exactly that.

I use it like this from inside the Makefile:

  make-db.png:       
      make -f $(MAKEFILE) -Bnd | sed -e 's,$(MAKEDIR)/,,g' | make2graph | dot -Tpng -o $@
but with some gymnastics in order to remove very long path names (MAKEDIR) can be used from the shell directly.
← PreviousPage 3 of 3