Better HN
topnewbestaskshowjobs
Log inSign up

GrumpySloth

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

Submissions

comment 5y ago · link · parent

You're right. But I'm afraid J. K. Rowling beats both Orwell and Dickens in this contest. :)

https://trends.google.com/trends/explore?q=Orwell,Rowling,Sh...

comment 5y ago · link · parent

> Nothing untoward was found and authorities cleared the aircraft to depart together with passengers and crew after approx. 7hrs on the ground in Minsk.

Not all passengers. One passenger was arrested in Minsk. Why would they omit it/lie like that?

comment 5y ago · link · parent

For the curious: the title seems to echo the excellent "Counterexamples in Topology"[1].

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

comment 5y ago · link · parent

What do you mean? Which of those steps doesn't work for you? <https://rust-lang.github.io/rustup/cross-compilation.html>

comment 5y ago · link · parent

Lua is also used for:

- AwesomeWM configuration

- Wireshark dissectors

- Nmap scripting

comment 5y ago · link · parent

> Not an expert, but it is my understanding that Julia is becoming an ever more serious competitor day by day.

And Julia uses BLAS which is written in Fortan.

comment 5y ago · link · parent

I don't work with Java, but I can think of a few advantages off the top of my head:

- appreciation of backwards-compatibility (here it wins with Python);

- great debuggers and performance tools (e.g. Java Flight Recorder or Eclipse Memory Analyzer);

- easy deployment - you can just give someone a fat JAR (here it wins with all scripting languages, so Python, Ruby, PHP, or any other flavour of the month);

- industry-grade garbage collectors;

- publicly-available standard spec (here it wins with all the defined-by-implementation languages such as Python, PHP, Rust, basically most languages, and with languages which are standardized, but their specs aren't public: C, C++, Ruby);

- kind of like the previous point, but anyway: multiple implementations to choose from;

- I've been told it has good performance. I've never seen a real-world Java application which felt fast, but I've heard people put it at the pedestal and the Debian programming languages benchmarks game seems to corroborate that story;

Besides, the question wasn't about which technologies we like, but which we believe are entrenched so much, they aren't going to go away for a very long time. I don't see Java going away for another 100 years, no matter how much I would or wouldn't like to work with it.

comment 5y ago · link · parent

Fortran for linear algebra software.

Excel for business spreadsheets.

Java for enterprise server software.

comment 5y ago · link · parent

The purpose of this service isn't giving people the ability to block things they don't want to see, but to block things they don't want other people to see. Instead of censoring they make a tool to censor. Children of abusive parents end up being victims of such tools.

comment 5y ago · link · parent

This is my favourite resource for learning about flexbox: <https://flexboxfroggy.com/>

And this for grid: <https://cssgridgarden.com/>

comment 5y ago · link · parent

Human pregnancy is not an evolutionary marvel. It brings disproportionately more suffering and is more dangerous to the mother than in other species.

comment 5y ago · link · parent

I didn't write that IRC was devoid of drama. I wrote it's the first one I'm hearing about. As in, know what it's about. Vaguely knowing that there probably was some drama in the past is another thing entirely. There is a lot more drama in more mainstream parts of the Internet, which is where my surprise at the mention of it comes from.

I also think you're taking it too seriously. Internet drama is a relatively unimportant thing in life. Wars on the other hand... Internet drama has the importance of celebrity gossip.

> Have you never taken any interest in the history of the tools you use or the Internet generally?

I did take interest in the history of some of the tools. It doesn't mean I explore the history of all of them, or that this history is particularly valuable knowledge. What you learn this way is mostly just shallow trivia. E.g. knowing why strncpy works the way it works with regard to '\0' isn't knowledge that deepens your understanding of anything; it's just trivia. But sometimes it's a pleasant way to mindlessly, idly spend your time.

comment 5y ago · link · parent

[deleted]

comment 5y ago · link · parent

23. Been using IRC on and off since I was 14.

comment 5y ago · link · parent

This is the first IRC drama I'm hearing about. There is more drama in issue trackers of random GitHub projects that surface once a month on HN. I don't know where this perception of IRC comes from. Such a comment shows up under every link commenting on the matter. But it's still just one case.

comment 5y ago · link · parent

There are many distinct PDF readers. Making a document browser shouldn't be more complicated than making a PDF reader. PDF readers is how it works in practice.

comment 5y ago · link · parent

This provides more technical details: <https://hacks.mozilla.org/2021/05/introducing-firefox-new-si...>, which should be more interesting to HN than a marketing announcement.

In particular, it seems that "site" isn't precisely defined. It seems to be based on domains, but backed by a human-curated list of "sites": <https://github.com/publicsuffix/list>.

So it's different than Chrome's "every webpage gets a separate process".

comment 5y ago · link · parent

Most importantly, a common writing system, common to a huge area. One that mathematicians successfully took inspiration from and repeated the success of universality at an even greater scale.

comment 5y ago · link · parent

When reading the source code, you immediately see an acknowledgement of the deficiencies, instead of assuming that everything is as it should be, or needing to investigate what is ok and what is not. It also maintains a link between the ticket and the location in source code throughout future source code changes.

comment 5y ago · link · parent

At work we use "TODO(JIRA-XXXX):", where JIRA-XXXX is the Jira ticket for the TODO. Every TODO needs an accompanying Jira ticket. Otherwise it won't pass code review.

comment 5y ago · link · parent

Notmuch[1] is using it. It has a good reputation.

[1]: <https://notmuchmail.org/>

comment 5y ago · link · parent

If the provider of proprietary software ceases maintaining it, you are dead in the water. If the provider of open source software ceases maintaining it, you can pay someone else to maintain it. E.g. there are a lot of freelance jobs related to ffmpeg, a lot of video software experts knowing it, so you may sleep well, not worrying that the developer of ffmpeg will someday sabotage your business. On the other hand, when another company provides a binary blob library to you, when they go down, you go down with them (if you rely on them too much).

comment 5y ago · link · parent

LaTeX doesn't do any of that and the end result is beautiful. It's even better than what human editors produce.

comment 5y ago · link · parent

If it's opt-in and there are privacy concerns about where this data goes to after you opt into it, then probably fewer people will choose to opt in. The option outlined in the submission may attract more people to opt in, thus making the data more conclusive and valuable.

comment 5y ago · link · parent

Currently I'm using Rust in a project without RAII. RAII is neither necessary nor sufficient to prevent use-after-free. In Rust use-after-free is prevented by the borrow-checker. In C++ with RAII use-after-free is still possible, because normal references aren't tracked with regard to the lifetime of pointees.

comment 5y ago · link · parent

Bucketing them together is fine. There are technical and organizational reasons for that. When you're working with C++, you're almost guaranteed to need to deal with C as well, so jobs for "C/C++ developers" make perfect sense. There is also a certain level of expectation that future versions of both languages keep incompatibility between one another to a bare minimum.

I'd happily apply for a "C/Rust" job as well.

comment 5y ago · link · parent

> Is this something that happens because someone thinks C/C++ is one language?

Nobody thinks that. Everybody knows what it means. Picking on it is like picking on people referring to amd64 as x86.

comment 5y ago · link · parent

Hamas gets missiles and all sort of weapons, but they can't get steel? Magic. Then they place the missile batteries next to hospitals, schools and mosques. That shows their commitment to ~defending Palestinians~ attacking Israelis.

Meanwhile we should blame Israel for building effective missile defense systems...

comment 5y ago · link · parent

> Palestinian casualties over the last few decades are roughly 10x Israeli casualties.

That's because Israel is better at defending from attacks by Hamas and also prioritizes the defense higher than Hamas. Saying that one side has fewer casualties, implying that they are "the bad ones", is smoke and mirrors.

comment 5y ago · link · parent

You cut out the rest of the sentence, which is needed to make sense of it.

What I mean is, with the "strum" crate I can use a proc macro to automatically generate an "EnumDiscriminant" enum for an "Enum" enum, where "Enum" is defined as:

  enum Enum {
      A(u32),
      B,
  }
and "EnumDiscriminant" is defined as:

  enum EnumDiscriminant {
      A,
      B,
  }
However, the only thing linking those two is a naming convention. I would like to have a universal name for such discriminants.

The Rust standard library already has such a discriminant type for any enum - mem::Discriminant<T>, where T is the enum type. However, in order to get the discriminant of Enum::A(5) I need to write mem::discriminant(Enum::A(5)), which introduces noise (especially with bigger tuples or structs) - this 5 here is irrelevant. The mem::discriminant() function is useful for contexts where I have a variable of type Enum and want to get its discriminant, but when I just want to pick a particular discriminant, it's too noisy. I would like to be able to name the discriminant directly. I.e. I would like the standard library type Discriminant<T> be defined for each enum the same way EnumDiscriminant above is defined for Enum. So I could just write Discriminant::<Enum>::A.

1
474849
55