Better HN
topnewbestaskshowjobs
Log inSign up

julesnp

75 karma · joined Jul 18, 2018 (8y ago) · 45 submissions

Submissions

1.

View Inlining in PostgreSQL(boringsql.com ↗)

3 points · by julesnp · 11mo ago · discuss

comment 2y ago · link · parent

The entire restaurant.

https://www.cbc.ca/news/canada/kfc-halal-menu-boycott-1.7258...

3.

Malicious VSCode extensions discovered with millions of installs(bleepingcomputer.com ↗)

4 points · by julesnp · 2y ago · discuss

4.

Grain: The High-Level Language Optimized for WebAssembly(thenewstack.io ↗)

5 points · by julesnp · 2y ago · 3 comments

comment 2y ago · link · parent

Balrogs would be under the Maiar category, but most have no recorded name. I suppose the one from the trilogy could have been listed as "Durin's Bane."

comment 2y ago · link · parent

I think the way F# implemented it is pretty good: if you want to use a keyword or whitespace in a variable or function name, it has to be enclosed in double backticks.

e.g:

  [<Property>]
  let ``Reverse of reverse of a list is the original list`` (xs:list<int>) =
      List.rev(List.rev xs) = xs

7.

Australian language with free word order provides unexpected insights(scientificamerican.com ↗)

19 points · by julesnp · 3y ago · discuss

8.

A bug in MySQL, or working as intended? You decide(dolthub.com ↗)

5 points · by julesnp · 3y ago · 2 comments

comment 3y ago · link · parent

I've used this in the past, but switched to Vimium-C after this incident:

https://github.com/brookhong/Surfingkeys/issues/1796

comment 3y ago · link · parent

You wouldn't necessarily need to track every change, you could just have 2 tables, one which contains the last "saved" version of the document, and one which contains the last modified version of the document. Upon opening after a crash, if there is a more recent modified version, the program will ask if you want to load that version.

comment 3y ago · link · parent

Don't forget centi-, deci-, deka-, and hecto-.

comment 3y ago · link · parent

For my preferred layout in QMK, I have Caps Lock mapped to Caps Lock only on tap, and Control on hold. I also have the right Alt key mapped to Backspace on tap, Alt on hold, to give me an additional backspace which I can hit with my thumb, keeping the rest of my fingers on the home row.

http://www.keyboard-layout-editor.com/#/gists/4d894ef5848c4f...

13.

The Sinclair ZX Spectrum Keyboard (2019)(wordloosed.com ↗)

2 points · by julesnp · 3y ago · discuss

comment 3y ago · link · parent

Encrypted disks would be the key issue here, older CPUs likely can't handle the encryption work required.

comment 3y ago · link · parent

Ah, I hadn't thought about international keyboard layouts, yes, that sounds like it'd be a pain to type.

comment 3y ago · link · parent

If you already have Caps Lock remapped to Control, why not just use Ctrl-[ to get back to normal mode?

Ctrl-[ is the same keycode as escape in terminals, and it's much easier to reach. For me, remapping jk in insert mode results in lag after typing 'j'.

comment 3y ago · link · parent

I would say the core goal of most living organisms is to propagate, rather than survive, otherwise you would see males of some species like Praying Mantis avoiding mating to increase their longevity.

comment 3y ago · link · parent

You can use this plugin to get the same mappings in insert mode for Vim:

https://github.com/tpope/vim-rsi

comment 3y ago · link · parent

I use the 'confirm' option in my vim config, that way I can always use :q and then get a prompt on what to do if a file's been changed.

I also map <C-q> to :q to speed things up a bit.

comment 4y ago · link · parent

The automatic generics look at lot like how OCaml implements inference for structural typing.

21.

F# Fable 4 will offer compilation to Python, Rust and Dart(fable.io ↗)

2 points · by julesnp · 4y ago · discuss

comment 4y ago · link · parent

> I also think there are also exceptions to tolerance in the case of an emergency, with the distinction that it has to be an actual emergency universally (agreed on by logical people), and also temporary unless it’s really, really bad (like everyone dies once we stop). e.g. covid in January-May 2020. If we had a super strict, solid covid lockdown when the virus first broke out, we may have actually eradicated covid. Yeah we’d be violating essential freedoms, we’d have to lock up or possibly execute people who go outside, and may even have to curtail anti-science speech. But with said lockdown we may have actually eradicated covid, IMO that is worth being intolerant of dissent for 3 months.

I'm sorry, but this is just a bizarre argument. I don't see how the outbreak of a disease with a 1% death rate [1], or even the initial 3.4% estimate given at the start of the pandemic, could ever justify executing people for going outside. Even China never went that far, is this really something you believe "logical people" would agree upon?

1. https://coronavirus.jhu.edu/map.html

23.

Surfshark backpedals on Fake News feature after barrage of criticism(techradar.com ↗)

5 points · by julesnp · 4y ago · discuss

comment 4y ago · link · parent

To me that has to do with search results being tuned for relevancy, not due the the perceived quality of the information.

comment 4y ago · link · parent

If you don't need the old URL, I'd recommend this plugin:

https://github.com/inkarkat/vim-ReplaceWithRegister

comment 4y ago · link · parent

In Canadian English we use the "Antony" and "tortuss" pronunciations as well. For "often", I usually only pronounce the 't' if the word is stressed in the sentence.

comment 4y ago · link · parent

Having learned some Irish Gaelic in the past, I'd say it actually has much better correlation between spelling and pronunciation than English, it's just that it uses very different rules, which can cause confusion when the words are brought into other languages.

'S' for example is always pronounced like the English 'sh' if it's next to 'e' or 'i', and like a regular English 's' if it's next to 'a', 'o' or 'u'.

comment 4y ago · link · parent

We do in a different word: adept :)

comment 4y ago · link · parent

That's true for the -omb words, but I've never heard anyone elongate the 'u' in any of the -umb words, at least not in Canadian English.
12