HNHacker News
TopNewBestAskShowJobs

gnull

1,197 karma · joined December 5, 2018

You can contact me over ntjvwmi7l@mozmail.com
submissionscomments
gnull··on Newsraft: feed reader with ncurses user interface
Sorry I feel like a dick now. I haven't used Newsraft (ran it once), but I had Newsboat segfault on me a few times so I extrapolated the frequency of Newsraft crashes from there (considering how much smaller Newsraft's userbase must be, and how much less testing it must have had).

One thing I think I missed is that Newsraft is younger and simpler (I assume, at this stage it all fits in the head of one developer). Maybe this is where my estimate fails.

Anyway, I wish you success with your project! (Even if you're building it with an unorthodox language.)

gnull··on Daily habits of happiness experts
Computer Scientists aren't particularly good with computers either.
gnull··on Newsraft: feed reader with ncurses user interface
You're right. But the drawbacks I was talking about are the same, so no difference.
gnull··on Names should be cute, not descriptive
Agreed. People may not be determined enough and that's fine because not every cause is worth determination.

I say this each time someone wants to rename something for social justice reasons. Renaming is a lot of hussle, and if you decide to go for it you better know what exactly it is that you're buying with it.

gnull··on The Art of LaTeX: Common mistakes and advice for typesetting proofs

  \DeclarePairedDelimiter\abs{\lvert}{\rvert}
Isn't this better than newcommand? This makes both \abs{x} and \abs*{x} valid.
gnull··on The Art of LaTeX: Common mistakes and advice for typesetting proofs
One bit I would add: don't use xspace package. If you defined a macro with 0 argumemts like

  \newcommand\kek[0]{kak}
You must always put {} after it's invocation like "\kek{}". If you do "\kek", that may eat the following space in some cases. Doing "\kek\ " or "\kek\xspace" is bad and harmful.
gnull··on A Lecturer Showed a Painting of the Prophet Muhammad. She Lost Her Job
Let me rephrase it: they were not given a choice of committing something or not, so we don't know what they would choose if they were. I'm not saying they would (I see now that my comment can be read as if I did), I'm just saying that not having this choice is not a virtue.

It's like if someone said the Elon Musk is bad because he invested X amount of money into Y, and I'm better because I didn't (suppose I'm broke and I spend my days in a basement playing games). The "I'm better part" is flawed because we don't know what I would do if I was given his choice.

gnull··on A Lecturer Showed a Painting of the Prophet Muhammad. She Lost Her Job
Ok, maybe I was wrong, I don't know. I'd really like someone who knows about both to comment on what I wrote.
gnull··on A Lecturer Showed a Painting of the Prophet Muhammad. She Lost Her Job
They aren't committing atrocities because they don't have the resources for that, not because they are ethical and chose not to. Weakness is not a virtue, we shouldn't give them credit for it.
gnull··on A Lecturer Showed a Painting of the Prophet Muhammad. She Lost Her Job
That still fits my idea of "few".

And also doesn't Christianity give some good excuses to question or review these? Especially, considering that New Testament builds up on top of the Old Testament. I'm asking about the stuff around the quotes you've shown (otherwise we could fall for confirmation bias).

Please understand me correctly. I'm not saying Christianity doesn't have cruel or bad things. I'm saying it doesn't give one concrete, final, unchangeable set of rules. With Christian rules, it's easier to find excuse to augment or re-interpret them. I'm not saying there's no rules.

gnull··on A Lecturer Showed a Painting of the Prophet Muhammad. She Lost Her Job
You're right, I shouldn't be generalising.

> Lots of Muslims do not believe that Shariah law should be applied.

I feel that one big difference of Islam is that it makes the rules very explicit, from how the government should be organized to the last detail of how you should wash your hands (and how often). Christianity, on the other hand, has very few concrete regulations, but instead a ton of metaphysical, mystical and ethical things from which people are trying to deduce those regulations.

So Christianity was easier to steer away from being a concrete manual for life to being a philosophical thing, a matter of choice that people who live within secular ethical framework can voluntarily practice. My question is, if you do the same to Islam will it still be Islam given how deeply the practical instructions are ebedded in it?

Please correct me if I'm wrong, I have a rather rudimentary education in both topics.

gnull··on A Lecturer Showed a Painting of the Prophet Muhammad. She Lost Her Job
Is Islam at all compatible with secular values in the same country?

In the end, you will have one of the two encompass the other. Either you have a secular country living by democratic, progressive law which allows people to be Muslims modulo this. Or you have a Muslim country living by Shariah law, but tolerating secular non-believers in it.

First won't work because Muslims (in the traditional sense) won't tolerate some other framework encompassing their worldview. They have taboo topics nobody should ever question, and secular ideology based on science will question things.

And second won't work because Shariah law gives very concrete directions on dealing with non-believers.

gnull··on Newsraft: feed reader with ncurses user interface
If C/C++ works for you so well, good for you :) Maybe you don't need Rust.
gnull··on Newsraft: feed reader with ncurses user interface
No, I never tested it with cabal. You build it with "stack build" and install with "stack install". Let me know what you think about it (on the mailing list or in a direct email) once you try!

https://docs.haskellstack.org/en/stable/

gnull··on Newsraft: feed reader with ncurses user interface
> Any big names (long term kernel development) backing it?

Linus Torvalds is one of them. And he is a hardcore C programmer, he was strongly against C++ in the Kernel when people were suggesting that.

> Sure, but there are a few simple patterns when used throughout that are quite reliable.

And yet, C/C++ programs segfault all the time. Memory corruption vulnerabilities are some of the most severe and common ones. There was a submission here, on HN, about it. There was something about Google adopting Rust on Android precisely because of this — in case you want to find it.

I've been a C (Kernel) programmer in the past. And I've quit precisely because it took too much of my time to debug things that a good language should normally detect for you. Now, my main languages are Rust and Haskell, and the compiler helps me eliminate a huge class of bugs. If it compiles, most of the time it works correctly.

> Every C program can theoretically [+] be compiled to be the same as a Rust binary, but not every Rust program could be compiled to be the same as a C binary [1].

What should I be looking for in [1]? And what do you mean here? "Theoretically", you could implement every possible C program in Assembly, but that's hardly an argument against C. We should be thinking here in terms of things that a programmer normally would implement in reasonable amount of time. A knowledgeable Rust programmer is by orders of magnitude more productive than a C programmer with the same experience.

The discussion we're having was already had many times here. I'm just repeating the standard arguments.

Rust also has more freedom to perform optimizations on your code than C, because Rust has so much more information about it. For example, in C, a carefully placed "restrict" keyword can speed up your program a lot. But if you're not careful enough and you fail to satisfy the "restrict" invariant, you get undefined behavior. In Rust, things are "restrict" by default due to borrow checker and the invariant is ensured in compile time.

The argument for C against Rust just doesn't stand a chance if you remember C's undefined behavior. C is full of it. Can you list all the conditions when it can occur in C?

> I use it quite regularly.

I meant using the OP program, not C language.

gnull··on Newsraft: feed reader with ncurses user interface
https://sr.ht/~ph14nix/kalina/

As replied in another comment, here it is. Enjoy!

gnull··on Newsraft: feed reader with ncurses user interface
https://sr.ht/~ph14nix/kalina/

Sure, here it is. Enjoy! It can do all the basic things, but stuff like error handling is rough (it will panic if it fails to parse something).

gnull··on Newsraft: feed reader with ncurses user interface
Rust does everything that C does while making programmer more productive. Look at what Linux Kernel hackers say about it. They are the ones who know things about C.

> Rust will not fix your poorly designed code

Nobody said it will. But segfaults hardly come from poor design. They come from accidental mistakes, lack of static analysis, and gotchas that your language offers.

> now it is harder to develop

Only if you're a C programmer who doesn't know Rust.

> and runs slower

This is plan false. Please back it up.

> it seems like somebody quite capable of writing C safely

Try using it for a week, and count for me how many times it segfaults on your face. (That is not to diminish Grigory's work, which I have nothing against.)

gnull··on Newsraft: feed reader with ncurses user interface
> IFTTT Support

> Third-party Apps

> Free Account: Up to 64 sites, doesn't show the full text of the article

> Premium Subscription

> No desktop app

Really?

gnull··on Newsraft: feed reader with ncurses user interface
And also instructions of where to put the feeds file (and maybe an example that I could copy-paste).
gnull··on Newsraft: feed reader with ncurses user interface
Funny. I was working on an RSS reader inspired by Newsboat too. Although my project's goal was to avoid the C's rough edges that Newsboat has: better parsers, richer feeds file syntax, more configurability (done in a nicer way), less segfaults. I chose to implement it in Haskell, even got a working prototype, but then didn't keep working on it consistently (and I was unsure about the concept).

Newsboat's authors are rewriting it in Rust. They concluded (last time I checked) that C and some early design decisions were bad for its development now and they want to rewrite it in Rust because this is something that can be done gradually (and, I think, because they liked Rust). Before they settled down with Rust, they even considered Haskell, but Rust won.

Surprising that this project is in C. Given a chance to start fresh, why not choose a better language? Even Rust, I think, is unnecessarily low-level for an applied, not performance-critical program like an RSS reader. That's why I chose Haskell. Any other high-level programming language would be a better choice than C.

gnull··on “My PGP key is compromised, and at least many of my bitcoins stolen”
What is hot wallet, btw?
gnull··on Where does ChatGPT fall on the political compass?
This is what gpt3 gives me about Stallman-Minsky controversy:

> In September 2019, Stallman resigned from his position as president of the FSF and from his position as a visiting scientist at MIT after controversial comments he made about the allegations of sexual assault against Jeffrey Epstein resurfaced online. Stallman had previously written that the allegations against Epstein were a "gossip campaign" and that some of the women who accused Epstein of assault were "entirely willing" participants. Stallman's comments were widely criticized, and his resignation from MIT and the FSF was seen as a response to the backlash.

The same twisted representation that most media gave. While in fact, Stallman, in fact, never said the victims were intirelt willing.

gnull··on Women like working with people, men like working with things, all over the world
Knowing a concrete cultural mechanism that is causing this could possibly open the way to engineering it (or close it completely, depending on what mechanism that is). But would just knowing "it's culture" help? I don't think (personal opinion) we're particularly good at predictably engineering culture.

Look at Sweden, it's been trying really hard and dumping lots of money into gender equality, but there's still very few women in tech. The fraction of women among Iran's CS graduates is greater than Sweden's. And, ironically, plenty of those Iranian women (I'm saying this offhand) go to do PhD in Sweden, to bring up the "gender balance" of CS departments that Sweden is so concerned about.

I'm really unsure whether society is easier to engineer than biology.

gnull··on Women like working with people, men like working with things, all over the world
Yes, we should. But before we do, people still have to make choices ("should I adopt this gender-equality policy or that one?", "should I teach kids these of those ideas about gender-equality?"), they aren't going to wait for science to catch up. And before we have a definitive answer, we admit we don't have it, and let people make their own bids in those choices. And also discuss choices, and also question them.
gnull··on Women like working with people, men like working with things, all over the world
> His choice of wording is poor, and it's clear in most cases he assumes he's "right" - rather than posing a question and linking to supporting evidence for why he "might be right".

There's also some effort required on the reader's part here. You should dig through some bad phrasing and for each statement that the writer makes, ask yourself, "what's the strongest interpretation of this that can be backed up?" A good reader tries to get the most out of it, and not discard it because of the form (how would Seneca read it?).

The way I read his statement is that woke agenda does not deserve so much trust, and there's plenty of reasons to question Google's official view on gender-equality; that having an opposing view is a valid position, which makes you neither a foil-hat-flat-earth psycho, nor a misogynist, nor a bad person. There's enough uncertainly in this question to make both opinions valid, and allow people to pick the one they like. And for woke people, this statement is enough of a reason to "cancel" someone.

Thinking that he insists on his view being the only right one is a bit of a strawman argument. I say "a bit" because I admit that he chose a rather provoking manner to make his statement, but I still say "strawman" because you could easily read it differently. I assume he did it because his opponents also do that, and it may have been an emotional choice to some extent. And, as I said, if we've established that there's enough uncertainty in this question to make it a matter of preference (for now, until the science gives us a definitive answer), it's ok to advertise the choice you prefer in an emotional and provoking manner — which I think is also one of the goals of the memo.

To summarize, I think there's some good things to extract from there if you put in effort. And for a non-expert, he did ok of a job writing it.

> asking for trouble...

It doesn't justify what they did to him, I don't understand why you'd even mention this. "She wore a short skirt, so she asked for harassment" — literally the same victim-blaming technique.

gnull··on Women like working with people, men like working with things, all over the world
You don't need confirmations like that to say he was right. He was right, and we know that because his arguments were (relatively) well-built, so they are really worth considering.
gnull··on Women like working with people, men like working with things, all over the world
I don't know if it's really important to know for practice. Who care where it comes from if the effect is there and you have to live with it?

It's not that effect being caused by upbringing makes it somehow unimportant, or unworthy of being there.

gnull··on MIT faculty adopts “Statement on Freedom of Expression and Academic Freedom”
Does it mean I could go there, question wokeness and not be fired/expelled for it?
gnull··on Are super-rich people just better at making money?
Totally agree. My previous comment was sarcastic, of course.
← PreviousPage 4 of 12Next →