Better HN
topnewbestaskshowjobs
Log inSign up

kerneloops

164 karma · joined Jan 4, 2022 (4y ago) · 34 submissions

Submissions

1.

Restricting automatic kernel-module loading (2017)(lwn.net ↗)

2 points · by kerneloops · 6mo ago · discuss

comment 1y ago · link · parent

Another one:

  const cast: <A, B> (a: A) => B = function <B> (): B {
    return arguments[0]
  }
  const n: string = cast(1)

3.

English-Centric Icons(geedea.pro ↗)

6 points · by kerneloops · 1y ago · 1 comment

4.

Experimenting with local alt text generation in Firefox Nightly(hacks.mozilla.org ↗)

3 points · by kerneloops · 2y ago · discuss

comment 2y ago · link · parent

See also: Well-typed music does not sound wrong (experience report), Haskell 2017

https://dl.acm.org/doi/10.1145/3122955.3122964

comment 2y ago · link · parent

A survey of some other languages:

C printf: MT-Safe locale.

C++ std::cout: safe, unless you call sync_with_stdio(false).

JVM System.out.println: safe in common JVMs.

C# Console.WriteLine: safe.

Go fmt.Printf: safe.

Rust println!: safe.

Ruby puts: safe.

So it seems that Python is the outlier here.

7.

Tell HN: Python's print function is thread-unsafe

13 points · by kerneloops · 2y ago · 6 comments

8.

Joint statement on data scraping and the protection of privacy [pdf](ico.org.uk ↗)

3 points · by kerneloops · 3y ago · discuss

9.

Bootstrapping the Compiler – Rust Compiler Development Guide(rustc-dev-guide.rust-lang.org ↗)

3 points · by kerneloops · 3y ago · discuss

comment 3y ago · link · parent

The only problem to me is that the "official" Joplin Server is proprietary: https://github.com/laurent22/joplin/blob/dev/packages/server...

comment 3y ago · link · parent

URL should be https://research.kudelskisecurity.com/2020/04/22/an-introduc...

12.

An Introduction to Oblivious RAM (2020)(research.kudelskisecurity.com ↗)

1 points · by kerneloops · 3y ago · 1 comment

comment 3y ago · link · parent

> Using these accessors, the VMs become able to do anything that JS can do.

In fact the source language is likely to be JS itself; a JS-to-some-sort-of-vm-bytecode-to-JS compiler is made. I know that Tencent has a similar VM; an interesting aspect of that VM is that the instruction set is dependent on the code being compiled (and the opcodes are dynamically generated and shuffled when compiling), so unused instructions are not generated.

comment 3y ago · link · parent

Another reason to use `void 0` is that "void 0" takes only 6 characters while "undefined" takes 9, saving some bandwidth. It is common practice for JavaScript minifiers to use this substitution.

comment 4y ago · link · parent

I usually give them 1970/1/1 as my birthday. That's easier to remember, since password managers don't work well with date inputs sometimes.

comment 4y ago · link · parent

Microsoft (at least used to) require account passwords to not include the part before @ in email addresses. My email address was a@(domain).net, and therefore I was prevented from using any password including the letter "a".

17.

HypeScript: Simplified TypeScript type system in TypeScript's own type system(github.com ↗)

202 points · by kerneloops · 4y ago · 82 comments

18.

Atom vs. Visual Studio Code – The Unexpected Consequence of Consolidation (2018)(i-programmer.info ↗)

1 points · by kerneloops · 4y ago · 1 comment

19.

The End of Config_Android(lwn.net ↗)

1 points · by kerneloops · 4y ago · discuss

20.

Race condition in Linux perf subsystem leads to local privilege escalation(openwall.com ↗)

1 points · by kerneloops · 4y ago · discuss

21.

AOT Compiling JavaScript, Part 1(rynco.me ↗)

1 points · by kerneloops · 4y ago · discuss

22.

A method for replacing Python tuple entries(lwn.net ↗)

2 points · by kerneloops · 4y ago · discuss

23.

The New Filter Mandate Bill Is an Unmitigated Disaster(eff.org ↗)

13 points · by kerneloops · 4y ago · discuss

24.

Coverage of Noto fonts on Unicode code points(notofonts.github.io ↗)

1 points · by kerneloops · 4y ago · discuss

12