HackerTrans
トップ新着トレンドコメント過去質問紹介求人

dbaupp

no profile record

投稿

A tale of two path separators

alexwlchan.net
66 ポイント·投稿者 dbaupp·26 日前·37 コメント

Open Electricity Dispatch – May 2026

openelectricity.org.au
1 ポイント·投稿者 dbaupp·29 日前·0 コメント

Scaling Sameness

gradientinstitute.org
1 ポイント·投稿者 dbaupp·3 か月前·0 コメント

Gell-Mann AImnesia

huonw.github.io
1 ポイント·投稿者 dbaupp·3 か月前·1 コメント

Write broken commits for better review

huonw.github.io
2 ポイント·投稿者 dbaupp·3 か月前·2 コメント

Great Docs: Beautiful Documentation for Python Packages

opensource.posit.co
1 ポイント·投稿者 dbaupp·3 か月前·0 コメント

Why don't multi-column indices help queries on the second column?

huonw.github.io
2 ポイント·投稿者 dbaupp·4 か月前·0 コメント

Staying engaged with AI plans: give inline feedback

huonw.github.io
1 ポイント·投稿者 dbaupp·5 か月前·0 コメント

Staying engaged with AI plans: give inline feedback

huonw.github.io
1 ポイント·投稿者 dbaupp·5 か月前·0 コメント

Exact significance tests for 2 × 2 tables

janhove.github.io
1 ポイント·投稿者 dbaupp·6 か月前·0 コメント

Screen Reader HTML Support – Lookup

tetralogical.github.io
3 ポイント·投稿者 dbaupp·7 か月前·0 コメント

Recursive Project Search in Emacs

lukeplant.me.uk
36 ポイント·投稿者 dbaupp·7 か月前·0 コメント

Magit-insert-worktrees improves status buffers

huonw.github.io
5 ポイント·投稿者 dbaupp·7 か月前·0 コメント

Context privateering: debugging custom instructions like a pirate

huonw.github.io
3 ポイント·投稿者 dbaupp·8 か月前·0 コメント

Git Rev News

git.github.io
1 ポイント·投稿者 dbaupp·8 か月前·0 コメント

Bracket City Builder

builder.bracket.city
4 ポイント·投稿者 dbaupp·9 か月前·0 コメント

Is that a deprecation? Or is it just removed?

huonw.github.io
1 ポイント·投稿者 dbaupp·10 か月前·1 コメント

コメント

dbaupp
·10 か月前·議論
UTF-8 encodes each character into a whole number of bytes (8, 16, 24, or 32 bits), and the 10 continuation marker is only at the start of the extra continuation bytes, it is just data when that pattern occurs within a byte.

You are correct that it never occurs at the start of a byte that isn’t a continuation bytes: the first byte in each encoded code point starts with either 0 (ASCII code points) or 11 (non-ASCII).
dbaupp
·11 年前·議論
> Swift is not garbage collected in the slightest. ARC is not garbage collection.

Reference counting and tracing garbage collections are two ends of the spectrum of ways to handle dynamic allocation graphs (aka "garbage collection").

http://www.cs.virginia.edu/~cs415/reading/bacon-garbage.pdf

> In any case, I don't see what garbage collection has to do with safety or the borrow checker.

The borrow checker is what allows Rust to be safe and performant without garbage collection. It's literally the feature that gives Rust that power.

> I think "you just promise the compiler that it's safe" is an accurate summary of that feature.

A lot of programming (not just in Rust) is like this: the programmer promises that the library interface they expose does what they say it does, promise that any use of ctypes (in Python, for instance) won't corrupt the interpreter state, etc.

This isn't much different. The standard library will follow those that guidelines (i.e. something in the standard library implements Sync if and only if it satisfies that definition) and we expect library/application authors to do the same. The rule is to provide the programmer with assistance, it's not just to be annoying. It's your own fault if you shoot your own foot off by disobeying it (hence throwing away the assistance the compiler can provide you).

In any case, Rust has the `unsafe` keyword, a structured mechanism for making promises to the compiler, allowing one to easily see the possible locations that could cause memory corruption/unsafety. Overriding the compilers judgement that a type isn't thread-safe is no different: it requires `unsafe`.

> the higher-cost fruit like multithread safety I don't want. I think those features are Bad (TM).

FWIW, I think the multithreading safety is the really interesting and awesome part of Rust. Pretty much no other industry language attempts to tackle the problem of writing safe, low-level, high-performance, highly-parallel/highly-concurrent programs. Rust's system for this is quite general and flexible.
dbaupp
·12 年前·議論
Any estimates for how much income that would provide?