Better HN
topnewbestaskshowjobs
Log inSign up

GrumpySloth

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

Submissions

comment 3y ago · link · parent

Even a "well-made" QR code menu is strictly inferior to a paper menu IMO. Reading and scrolling on a small smartphone display is just a long step back from the comfort of reading an A4 piece of paper.

comment 3y ago · link · parent

> OCaml has better performance

That statement needs some evidence.

> a lot more functionalities

Past a certain minimal threshold of needed functionality, I prefer a language not to have a couple good features than to have a really bad one, like implementation inheritance, particularly multiple inheritance.

comment 3y ago · link · parent

Not necessarily. E.g. SML has had multicore since forever. In OCaml it’s the hot new thing now, which probably needs some time in the wild before everything is ironed out.

comment 3y ago · link · parent

Then I don't know how it happens, because I only have yellowish background + black and red defined in my terminal (also white, which I don't see used anywhere). And here is a screenshot from my Terminal.app, where the lifetime is gray: <https://0x0.st/HqVq.32.png>.

I've checked and the 10th colour is set to #000000 in my Terminal.app settings.

comment 3y ago · link · parent

I've tried switching this setting in Terminal.app and all it seems to do is change the value of the TERM environment variable. I haven't observed any other effect.

comment 3y ago · link · parent

I don't see it here, but one example would be help messages saying "consider introducing lifetime `'bla` here", which are preceded with a source code quote saying something like:

  fn foo<'bla>(...)
According to cat -v, <'bla> is preceded by ^[[38;5;10m, which, according to [1], "applies extended color value to the foreground", and further that 38;5;<s> sets "foreground color to <s> index in 88 or 256 color table".

[1]: <https://learn.microsoft.com/en-us/windows/console/console-vi...>

comment 3y ago · link · parent

I actually have the opposite problem. I’d like to limit terminal apps to just the 16 colours I have defined in my terminal settings (which is actually 3 colours in my case), but some apps (like the rust compiler e.g.) emit escape sequences which slightly change the shade in some places, in 256 colour space. I’d like to disable those 256 colours and limit everything to 16. I don’t think I can though.

comment 3y ago · link · parent

6. Referring to a person whose gender may be known or not, but is completely irrelevant in a given context (most) and including it in the sentence would only introduce unnecessary noise, leaving the recipient puzzled over what relevance this piece of information has instead of focusing on the core message.

comment 3y ago · link · parent

Which is significantly snappier than pdf.js on big and moderately-sized PDFs.

comment 3y ago · link · parent

> - A replacement/substitute for a therapist? I doubt even GPT-4 can do that job better than actual therapist

Maybe if you qualify that with “unusually good” therapist. IME even Eliza in Emacs is better than most therapists. ChatGPT surely leaves them in the dust.

comment 3y ago · link · parent

FreeBSD 14 is going to replace sendmail with DragonFlyBSD’s dma.

comment 3y ago · link · parent

> Once I saw this guy on a bridge about to jump. I said, "Don't do it!" He said, "Nobody loves me." I said, "God loves you. Do you believe in God?"

> He said, "Yes." I said, "Are you a Christian or a Jew?" He said, "A Christian." I said, "Me, too! Protestant or Catholic?" He said, "Protestant." I said, "Me, too! What franchise?" He said, "Baptist." I said, "Me, too! Northern Baptist or Southern Baptist?" He said, "Northern Baptist." I said, "Me, too! Northern Conservative Baptist or Northern Liberal Baptist?"

> He said, "Northern Conservative Baptist." I said, "Me, too! Northern Conservative Baptist Great Lakes Region, or Northern Conservative Baptist Eastern Region?" He said, "Northern Conservative Baptist Great Lakes Region." I said, "Me, too!"

> Northern Conservative†Baptist Great Lakes Region Council of 1879, or Northern Conservative Baptist Great Lakes Region Council of 1912?" He said, "Northern Conservative Baptist Great Lakes Region Council of 1912." I said, "Die, heretic!" And I pushed him over.

comment 3y ago · link · parent

This submission is not about drivers, which run on your computer, but about firmware, which runs on the printer.

comment 3y ago · link · parent

Don’t forget the cookie popup you get before the video can start playing.

comment 3y ago · link · parent

It's not a new problem. The Polish TLD is ".pl", which is also the file extension of Perl scripts. We get by just fine with that.

comment 3y ago · link · parent

The “ml” tag on lobste.rs is about SML and OCaml, not machine learning (which is under “ai”), while here it seems to be about both. I find the original lobste.rs classification more useful.

comment 3y ago · link · parent

Sadly the “ml” tag is applied both to posts about machine learning and to posts about the programming language. I’m interested in the latter, but not the former.

comment 3y ago · link · parent

Where by "coworker" you mean "exec". Not really a vulnerable person (as evidenced by their leaked comment).

comment 3y ago · link · parent

And if you have jot, but not Perl, like on a bare FreeBSD install:

  0 */8 * * * sleep "$(jot -r 1 0 599)" && ~/.config/jobs/fetch-tcl-logs

comment 3y ago · link · parent

> I'm pretty sure anyone on earth would know whether or not they were on 75 micrograms of LSD

I wouldn’t. I have no idea how strong the effects of LSD are supposed to be based on a dose. I suspect only people who have taken LSD know really.

comment 3y ago · link · parent

> Siri is always constrained to one language

Not only Siri — the whole iOS. You can’t type a sentence switching languages in the middle, without changing the keyboard language all the time, if you have autocorrect enabled. It will change what you type into utter gibberish, even though without the “correcting” what you type is perfectly correct. This system is quite visibly designed by people who speak only one language and don’t understand that people may want to use multiple languages at the same time. The keyboard should support a mix of languages, instead of making a XOR between languages, because otherwise when it starts, it’s almost always in the wrong mode, and if it isn’t, it will almost certainly be wrong by the end of what I write.

comment 3y ago · link · parent

i3 can do that.

comment 3y ago · link · parent

> You could argue that Java (and C, and C++, and Javascript, and...) has the same "ambiguous parsing problem", then -- except that it doesn't

The author didn’t claim there’s any ambiguity in parsing, only ambiguity in reading as a human. And I would agree that all the languages you mentioned have the same problem. And this is a real problem as long as people use this form of if (which they do). New languages avoid this pitfall by mandating the use of braces, in return dropping the parens, and I think that’s great.

comment 3y ago · link · parent

For inter-machine communication TLV binary formats are far superior. Simplicity of parsing, efficiency. Can't compete.

comment 3y ago · link · parent

No. I've just made it up. But I've never heard it in my life playing with other people; only when watching Polish grandmasters and other people involved in chess in an official capacity.
1
141516
55