HackerTrans
TopNewTrendsCommentsPastAskShowJobs

sebtron

no profile record

Submissions

From black boxes to black holes

hypertesto.me
2 points·by sebtron·4 เดือนที่ผ่านมา·0 comments

Pipelining and prefetching: a 45% speedup story

sebastiano.tronto.net
14 points·by sebtron·5 เดือนที่ผ่านมา·0 comments

When I say “alphabetical order”, I mean “alphabetical order”

sebastiano.tronto.net
594 points·by sebtron·10 เดือนที่ผ่านมา·367 comments

comments

sebtron
·2 เดือนที่ผ่านมา·discuss
I did not know about this. I used it on Fedora, and I thought Fedora was as close to "default GNOME" as possible.
sebtron
·2 เดือนที่ผ่านมา·discuss
> 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).
sebtron
·2 เดือนที่ผ่านมา·discuss
I think it means a digital copy of a ticket or similar card.
sebtron
·2 เดือนที่ผ่านมา·discuss
Can I use this feature to generate an airplane ticket? :P

I think "create" is the confusing part. It should be "digitize" or something. Either this, or "pass" means something else here.
sebtron
·3 เดือนที่ผ่านมา·discuss
Lucky you, I guess. In all the companies I worked for I have had a company-provided Windows laptop where the OS was managed by IT. The degree of freedom (e.g. what software could I install, what websites were blocksd) varied.
sebtron
·3 เดือนที่ผ่านมา·discuss
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.
sebtron
·4 เดือนที่ผ่านมา·discuss
That comes preinstalled :)
sebtron
·4 เดือนที่ผ่านมา·discuss
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.
sebtron
·5 เดือนที่ผ่านมา·discuss
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.
sebtron
·5 เดือนที่ผ่านมา·discuss
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.
sebtron
·5 เดือนที่ผ่านมา·discuss
Since C++17 there is std::variant

https://en.cppreference.com/w/cpp/utility/variant.html
sebtron
·5 เดือนที่ผ่านมา·discuss
> or that you don't own the device you use (which makes it unacceptable)

It's already like this, unless you go out of your way to install a custom Android rom, which 99.9% of people will never do.

I agree it is unacceptable.
sebtron
·5 เดือนที่ผ่านมา·discuss
But dog breeds are much more diverse than humans. For example, a chihuahua weights about 2kg, a St. Bernard about 70kg. That's a 35x size difference.
sebtron
·5 เดือนที่ผ่านมา·discuss
A metric kilobyte is 1000 bytes. An imperial kilobyte, on the other hand, is 5280 bytes.
sebtron
·6 เดือนที่ผ่านมา·discuss
> 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
sebtron
·6 เดือนที่ผ่านมา·discuss
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.
sebtron
·6 เดือนที่ผ่านมา·discuss
Thsi talk is scheduled for January 31st, or am I missing something? Why is it being posted here? There is no video yet.
sebtron
·6 เดือนที่ผ่านมา·discuss
We just call it "apps" now.
sebtron
·6 เดือนที่ผ่านมา·discuss
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.
sebtron
·7 เดือนที่ผ่านมา·discuss
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...