HN user

sebtron

1,941 karma

https://sebastiano.tronto.net

Posts8
Comments234
View on HN

I expected gnome-terminal's memory usage to be in line with konsole (KDE's default terminal), but gnome-terminal shows remarkably well in this test

In tipical GNOME fashion, they have decided to replace this largely working piece of software with on with one that places solidly at the bottom of the article's list (ptyxis).

I am a European in Europe and I expect the same. Why would I assume otherwise? The company laptop is full of spyware, starting from the OS. I have no reason to consider it "mine", and no desire to do so. If I want to do anything private (including things that my company would not like) I can do so from my private devices.

I agree with you, but considering the state of modern software, I think the values "truth and correctness" have been abandoned by most developers a long time ago.

I see what you mean now, thanks. To reproduce that example with std::variant I would need some kind of strong type alias, which as far as I know is missing from C++; so the only feasible way to do that would be wrapping the string in another class or struct.

I am not sure what you mean, you can definitely have e.g. an

    std::variant<int, std::string, bool>
Which is a sum of those three types.

Are people making user facing apps in rust with uis?

We are talking not only about Rust, but also about C and C++. There are lots of C++ UI applications. Rust poses itself as an alternative to C++, so it is definitely intended to be used for UI applications too - it was created to write a browser!

At work I am using tools such as uv [1] and ruff [2], which are user-facing (although not GUI), and I definitely appreciate a 16x speedup if possible.

[1] https://github.com/astral-sh/uv

[2]https://github.com/astral-sh/ruff

I think this is related to the C++ standard library implementation.

Using pthread in C, for example, TBB is not required.

Not sure about C11 threads, but I have always thought that GLIBC just uses pthread under the hood.

On my personal devices, I turned off syntax highlighting a few years ago to see how hard it would be to live without, but I ended up liking it and I have not turned it back on since. I am mostly working on small (<10k LOC) projects, or single-file programs (e.g. Advent of Code).

However, at work I am working on a much larger code base, and the extra help given by syntax highlighting (for example, having a quick visual feedback on whether a method exists or not) is valuable to me.

I think this also depends on the language used: at home I mostly program in C, but if I were doing more e.g. C++, I would probably enjoy some syntax highlighting.

Inverse Parentheses 7 months ago

This seems to be the best guess so far. But then I am wondering, how is

    a (*) b + c
Parsed then? The precedence of '* is bumped down, but does that mean it has now strictly lower precedence of '+', or the same? In the first case the operation is parsed as
    a * (b + c)
In the second case, the "left to right" rule takes over and we get
    (a * b) + c
And what happens when there are more than 2 priority groups Taking C has an example, we have that '' has higher precedence than '+' which has higher precedence than '<<' [1]. So
    a + b * c << d
Means
    (a + (b * c)) << d
Now I could use the "decrease precedence" operator you proposed (possibly proposed by the author?) and write
    a + b (*) c << d
Which then bumps down the precedence of '
' to... One level lower? Which means the same level of '+', or a level lower, i.e. a new precedence level between '+' and '<<'? Or maybe this operator should end up at the bottom of the precedence rank, i.e. lower than ','?

The more I think about this, the less sense it makes...

[1] https://en.cppreference.com/w/c/language/operator_precedence...

Making RSS More Fun 8 months ago

I get the impression this person is using RSS reader wrong. Or is there really a culture of people you are using RSS like a youtube-channel, consuming everything from beginning to end? For me the purpose of RSS is to get the newest headlines, choose the interesting articles and skip the rest. This means there is a limited list of items to check each day, and a finishing line.

Why would the author's use be the wrong one? And why should YouTube be different, in principle? (Maybe you are using YouTube wrong...)

I think at some point there was a shift in the way we consume online content, from "I'll read whatever is up now" to "I have my list of things to catch up with". RSS is older, so it is natural to connect it with the older way of consuming content. But there is no reason we can't do the same with YouTube channels, for example.

Keep Android Open 9 months ago

Don't you also need to buy a Macbook? That is quite expensive. I guess in Apple's view also developping on a non-Apple device is a security risk.