Better HN
topnewbestaskshowjobs
Log inSign up

GrumpySloth

4,901 karma · joined Sep 13, 2020 (6y ago) · 1,641 submissions

Submissions

comment 4y ago · link · parent

It doesn't. Equivalent definition of Unix timestamps would be "seconds since 1969-12-31 7:00 pm EST". It doesn't mean Unix timestamps have an implicit timezone of EST.

comment 4y ago · link · parent

In this case we're talking about Unix timestamps though, which count the number of seconds since 1970 UTC. Adding a timezone to it is nonsensical. The number is always the same, no matter which timezone you're in. It's in the conversion to year-month-day, etc. that timezone becomes relevant.

783.

libgrapheme 2.0.0 – freestanding C99 Unicode 15.0.0 string library(libs.suckless.org ↗)

3 points · by yakubin · 4y ago · 2 comments

comment 4y ago · link · parent

I’m from Poland and smoking in public here is everywhere. I go through the ritual of holding my breath countless times a day when I pass smokers, ever since I was a child. My visits to the UK agree with your picture of it. Fortunately I’m moving to the UK, so that aspect of life, among many others, is going to get better.

comment 4y ago · link · parent

> And if the python community has to suffer from the actions needed to support said customers, fuck em right?

Nobody is asking the python community to do anything. Canonical isn't sending stalkers after their members. They're just providing support for the software made by a community for whom backwards-compatibility isn't a big priority.

> a company that has been entirely built by python from the ground up

I don't think your knowledge of Canonical is very accurate.

> “F you got mine” got us climate change.

Climate change... Next you'll tell me how this move is related to MAGA.

comment 4y ago · link · parent

Canonical exists to support Ubuntu customers/community, not Python community.

comment 4y ago · link · parent

This looks like Ada.

comment 4y ago · link · parent

Yes? I wouldn’t even think that’s in any way controversial.

comment 4y ago · link · parent

I wouldn't trust a corporation of this size to make sure there aren't recurring bugs which cause scanning of things I have on my device, but do not upload to their servers. If the code for scanning, flagging me and reporting to authorities is on the device, then I expect bugs (intentional or not) which will trigger it, even though I don't use iCloud. Put the scanning in the cloud, then I'll be fine with it - I don't use the cloud.

Also the scanning was calculating hashes based on content, not just metadata.

comment 4y ago · link · parent

30 votes in an hour is a lot and easily gets you on the front page.

comment 4y ago · link · parent

A lot of times code compiled with no optimisations (-O0) is unusable. Specifically, in video some software compiled without optimisations won't push frames on time and instead will just keep dropping frames. There was a post a couple days ago about it being problematic in the games industry where a game compiled without optimisations is unplayable, while higher optimisation levels are hard to inspect in a debugger, due to the myth of "zero-cost-abstractions" in C++. Also to put it on its head a bit, when a compiler isn't fast enough (read not enough work was put into performance of the compiler itself, mostly on the design level, not on the microoptimisation level really), the feedback loop is so long, that developers stop testing out hypotheses and instead try to do as much as possible in their heads, without verifying, only to avoid the cost of recompiling a project. Another instance: when a photo-editing application can't quickly give me a preview of the photo I'm editing, I'm going to test fewer possible edits and probably get a worse photo as a result. With websites, if an action doesn't happen within a couple seconds of me clicking I often assume the website doesn't work and just close it, even though I know there are a lot of crappy websites out there that are just this slow. Doesn't matter. The waiting usually isn't worth my time and frustration.

comment 4y ago · link · parent

Switzerland is generally looked upon as the closest a country can get to democratic these days and, from what I understand, more contentious topics there are resolved by referendums. That's something I'd agree with. Generally politicians should be there to deal with the boring details, not to make decisions about the foundational law like constitution, because the general population doesn't know any better. They're there to make governing scalable to the size of modern countries, not to take decisions away from us (at least in an idealistic view of the world).

In some countries, when inevitably a party, which wouldn't win pair-wise elections with most of other parties, wins the elections nonetheless and forms a government, they proceed to make fundamental changes to the governance structures of the country, which the population does not support. That's not an edge-case of representational democracy, it's its MO.

If I were a Debian Developer, I would like a vote in such fundamental topics, instead of needing to rely on someone somewhere representing me. This change is different than a change of say optimisation flags used when compiling Firefox. Bear in mind that there are distributions which aren't as democratic as Debian. So to use your argument: if a member doesn't like this structure, they may leave for another distro.

comment 4y ago · link · parent

Current compiler optimisations are written with current hardware in mind, while I doubt that older optimisations would become pessimisations on newer hardware, so I'd compare the performance of the best C compiler from 2004 against the performance of the current best C compiler on today's hardware instead.

comment 4y ago · link · parent

That Proebsting's law link is of course dead, and redirects to the main page of Microsoft Research. In my experience, it's the natural state of links to Microsoft Research pages. What's up with that?

comment 4y ago · link · parent

> I would argue that voting is neither necessary nor appropriate for this problem

It's a change to the Debian Social Contract. Making it without voting would be like changing a country's constitution without voting. How else would you make such a change?

comment 4y ago · link · parent

> So this is only for the installer, right?

According to the Debian wiki description of this option[1]: "Where non-free firmware is found to be necessary, the target system will also be configured to use the non-free-firmware component by default in the apt sources.list file."

> The software that is not needed for basic functionality will not be installed permanently, right?

I'm not sure I understand you right. Unless the software is needed, the installer won't load it. And I'm not sure what you mean by "basic functionality" here, but the way I read the Debian pages it's about loading everything needed for the hardware to be fully-operational (or as close to it as is possible).

[1]: <https://www.debian.org/vote/2022/vote_003#texte>

comment 4y ago · link · parent

Debian uses a Condorcet method[1] for voting, which may be a bit more complicated than traditional simple majority voting, but makes sure that the winner would also win in every pair-wise election, as opposed to a less desirable candidate winning thanks to a greater number of more desirable candidates splitting the votes between themselves.

[1]: <https://en.wikipedia.org/wiki/Condorcet_method>

comment 4y ago · link · parent

Beware of performance issues though. Guile is extraordinarily slow on numerical code at least. Specifically, orders of magnitude slower than Chez Scheme, while the latter is just a couple times slower than LuaJIT e.g. I got really turned off from Scheme after running some benchmarks on a couple implementations. Although I know that for people coming from say Python it may even be an upgrade.

comment 4y ago · link · parent

Debian Social Contract: <https://www.debian.org/social_contract>

comment 4y ago · link · parent

Is KeePassXC a registered trademark? I haven't found any confirmation of it on KeePassXC's website, nor on Wikipedia, so I guess the answer is no. A shame really. Trademarks would be so useful in such situations, which seem to recur in the open source world with some regularity.

comment 4y ago · link · parent

I don't like it. The spacing is such that the page seems to be awkwardly hanging in mid-air. There is less information visible without scrolling. The top bar looks as if it was borrowed from Facebook. I would be disappointed if this design was adopted, as so far Wikipedia's design has been among my favourite on the web (and on iPad). On top of the utility of Wikipedia itself, it has been pleasurable to look at. If this redesign is adopted, I'll cringe to look at it, and I'll probably take more time to find information, given how it seems it's going to require more scrolling and clicking around to uncover drop-down menus.

comment 4y ago · link · parent

I used to use Synaptic around 2010. It was great. I've never come to like things like GNOME Software Center though. They were buggy and gimped, when I tried them. Also the UI was awful (and still is from what I saw from the screenshots).

However, I've since moved to a Mac, so when I use a Linux, it's remotely over a terminal. Running remote GUI Linux applications isn't as smooth.

comment 4y ago · link · parent

When I invoke "apt search", the first thing I'm going to see is the last thing printed. The first thing is lost to scrollback history.

comment 4y ago · link · parent

What do bot-prevention mechanisms like that mean for crawlers, such as Google bot, or apps such as Discord trying to get titles of pages linked in chats? Are websites enabling such functionality less searchable? In my experience Vultr website keeps nagging me to solve captchas on Linux (but not Mac or Windows), but they still seem to show up in search results.

comment 4y ago · link · parent

The question I prefer to ask is “how much functionality can I comprehend in a given amount of time” rather than “how many lines of code can I comprehend in a given amount of time”.

comment 4y ago · link · parent

Yup. My eyes started getting tired exactly at the point when the text became gray.

comment 4y ago · link · parent

GCC has gotten better indeed, but it's still in a different league than Clang. I still get into situations where I can't make heads-or-tails of what GCC is saying to me, which can usually be easily solved by switching to Clang.

comment 4y ago · link · parent

I think the main differentiators for clang were more readable error messages than the mess GCC had (and still has), and faster compilation (here it lost a bit of its advantage over time). I haven't heard of anyone praising it over GCC based on standard compliance.

That said, when I explore weird edge cases in how differently Clang and GCC parse source code, and how differently they optimise it, in my experience Clang is still the more logical one, whenever there is a disparity, whereas the way GCC parses code and what code it produces is sometimes completely baffling (and that's not just optimisation stuff - without any optimisations enabled I encountered miscompilations a lot more with GCC than Clang).

I also consider C++ a language for mostly old projects. I start new ones in other languages and don't consider repeated rewrites every two standards, because the "modern c++" crowd found a new way to initialise variables, to be a good investment of my time.

1
262728
55