HNHacker News
TopNewBestAskShowJobs

cobbal

1,142 karma · joined April 8, 2010

submissionscomments
cobbal··on SQLite changed temp file prefix after McAfee users called devs to complain (2006)
Microsoft itself recommends developers use a "dev drive" where defender is partially disabled because of how bad it is.
cobbal··on Go and Java: Rethinking Type Safety for the Pragmatic Age
I'm not completely sure what this example is trying to illustrate. Most languages with proper sum types would have `Map<K, V>.get` return an `Optional<V>`. If V happens to be `Optional<Integer>`, then the result will be an `Optional<Optional<Integer>>`, which is a perfectly good type that represents the two ways a value may be missing from the map.

Am I missing something?

cobbal··on Zig's (.{}){} Syntax
It is an interesting question of definitions. Is control flow only at runtime? Is `#if` control flow in C?

If I had to define it, I would go with runtime-only, but I could see the other way too.

cobbal··on Create block devices on your computer backed by Redstone Memory
That's where low-profile memory comes in. If the space is only two blocks tall, then corruption is prevented.
cobbal··on How to get the whole planet to send abuse complaints to your best friends
It's a similar problem to swatting. It relies on authorities taking severe action against an unverified source of problems.

I suppose a difference is that they use unaffiliated parties to send the complaint, instead of contacting the authority directly.

cobbal··on Software engineer titles have almost lost all their meaning
It's even worse. Civil engineers are allowed to create structures that have 0 engines in them! We should restrict the title to its original meaning.
cobbal··on Apple Passwords’ generated strong password format
An important distinction that often gets lost is that entropy is a property of a probability distribution. A system to generate passwords has entropy, one specific password does not.

It's possible to read "hunter2" from /dev/random.

To infer entropy from a single password, the best you can do is to see if it falls within the domain of some known, low-entropy systems. This works ok in practice, but is very far from perfect.

cobbal··on C++ proposal: There are exactly 8 bits in a byte
Possible, but likely slow. There's nothing in the "C abstract machine" that mandates specific hardware. But, the bitshift is only a fast operation when you have bits. Similarly with bitwise boolean operations.
cobbal··on Forscape – A Language and Editor for Scientific Computation
Mathematica also has some fairly advanced typographic syntax. Matrices, subscripts, integral signs, with a decent input system to match. Type <ESC>dint<ESC> to get a definite integral with placeholders.

One particularly nice thing about it is that it's completely optional sugar over a lispy "FullForm" syntax, and it's easy to convert between the two.

I'd encourage everyone to play with it, but it's sadly non-free.

cobbal··on Java – Integrity by Default (JVMLS 2024)
Without watching the video, this seems to be about https://openjdk.org/jeps/8305968
cobbal··on The PermaTab Web Browser
Great news. I look forward to Microsoft installing this on my computer for me.
cobbal··on WebP: The WebPage Compression Format
I would love to try reading the lossy version.
cobbal··on Parsing protobuf at 2+GB/s: how I learned to love tail calls in C (2021)
More specifically, tail recursion is usually easy to turn into a loop. Tail calls can be difficult to turn into loops when they call a different function, or worse a function passed in as a variable.
cobbal··on Video with Alpha Transparency on the Web
You get 256 colors per frame. Want more colors? Use more frames! There's some really impressive software/gifs at https://gif.ski/ if you want to see just how far it's possible to push this terrible format.
cobbal··on .INTERNAL is now reserved for private-use applications
It's interesting that cert pinning cuts both ways though. It can also be a tool to give users power against the IT department (typically indistinguishable from malware)
cobbal··on Infinite Proofs: The Effects of Mathematics on David Foster Wallace (2012)
Given that proofs must be finite (or it's easy to prove falsehoods), maybe the title is appropriate then.
cobbal··on Tony Hawk's Pro Strcpy
strncpy is fine as long as it's not used in isolation. My preferred pattern (when I want the truncation) is to use it, and then unconditionally set the last byte of the buffer to null. This will always result in a valid C string.
cobbal··on GitButler is now fair source
Probably the widest accepted definition of the term open source is https://opensource.org/osd
cobbal··on Clang vs. Clang
Ah, but what if it writes so far off the array that it messes with the contents of another variable on the stack that is currently cached in a register? Should the compiler reload that register because the out of bounds write might have updated it? Probably not, let's just assume they didn't mean to do that and use the in-register version. That's taking advantage of undefined behavior to optimize a program.
cobbal··on Techniques used by developers to bypass App Store review
Calling a piracy app "malicious" seems like a huge stretch. Am I missing something, or was this written by the copyright holders?
cobbal··on FCC liability for radio pirates operating on your property
They have ways to deal with that too. https://www.cnet.com/tech/computing/man-put-cell-phone-jamme...
cobbal··on Python grapples with Apple App Store rejections
previous discussion: https://news.ycombinator.com/item?id=40815130
cobbal··on Compile-time JSON deserialization in C++
small note: "JSON in its pure form anarchic" is missing a verb
cobbal··on The zombie misconception of theoretical computer science
Maybe choice was stronger than I needed. Thinking about it more, I think the problem is that BB isn't even definable (that I can see) without LEM. There's an "either the machine halts or it doesn't" baked in to the computation of the integer.
cobbal··on The zombie misconception of theoretical computer science
Is there a variant of "there exists a program that prints BB(8000)" that doesn't rely on some sort of axiom of choice? Maybe the intuitionists have a more useful definition of computibility if it doesn't posit that such strange machines exist.
cobbal··on All I want for Christmas is a negative leap second
How deep in a gravity well are you planning to keep this cesium stopwatch?
cobbal··on Exploring biphasic programming: a new approach in language design
Racket has a sophisticated system for dealing with phases in its macro system: https://docs.racket-lang.org/guide/phases.html I don't know if other schemes use a similar system.
cobbal··on Writing HTML by hand is easier than debugging your static site generator
That's exactly what iframes are designed to do. Though they do have... downsides
cobbal··on How GCC and Clang handle statically known undefined behaviour
Not pointless to a compiler writer.

If a compiler is certain there's UB should it format the developer's hard drive immediately, or does it have to wait until the program is run before formatting to be standards compliant?

On a more serious level, should it emit a warning? If it knows UB is reached, a warning sounds reasonable, but it's pretty rare that a compiler is 100% certain something is reached, and that analysis is probably not worth the cost.

cobbal··on Show HN: Store Text in Minesweeper
With this you can even roll a QR code into a game of minesweeper: https://sdk.scroll.pub/treeComponentFramework/sweepercraft/#...
← PreviousPage 4 of 11Next →