HNHacker News
TopNewBestAskShowJobs

cobbal

1,142 karma · joined April 8, 2010

submissionscomments
cobbal··on Trying to get past the 500 nits limit of the MacBook Pro (and failing)
How long before a plague of brighter-than-white ads, I wonder...
cobbal··on Cubic Bézier: From Math to Motion
For a really in-depth, online resource on Bézier curves, I constantly consult https://pomax.github.io/bezierinfo/
cobbal··on You click a link to a news site, to read an article that seems interesting
Goodhart's law kills again.
cobbal··on You click a link to a news site, to read an article that seems interesting
I never realized wikia was so closely connected to the wikimedia. I'm a bit shocked.
cobbal··on Never Use Black (2012)
blacker_than_the_blackest_black_times_infinity
cobbal··on Biomarker predicts severity of Covid-19 infection early on
It's not like this is a new thing. Those of us at high risk for COVID because of other conditions have been living in that reality for a while now. More so before the vaccine was available.
cobbal··on Xerox scanners/photocopiers randomly alter numbers in scanned documents (2013)
True. And the case of what upscaling does is technically truly interesting and nuanced... but that doesn't mean that people don't have a sense of what zooming in does to an image, CSI "zoom and enhance" be willfully ignored.
cobbal··on Xerox scanners/photocopiers randomly alter numbers in scanned documents (2013)
Most states use a form of common law, which is completely based on what is common practice and what is common sense. Or at least was in England hundreds of years ago...
cobbal··on Websites should not use dithered images
Not to mention the fact that dithering will look different depending on the display’s gamma calibration...
cobbal··on Are software engineering “best practices” just developer preferences?
“It’s not real engineering if someone can’t get hurt” seems like a strange definition to me.
cobbal··on How the Python import system works
What’s flexible for a dynamic scripting language is often cursed from a static perspective. Knowing what imports resolve to statically can be nice.
cobbal··on Impact of Undefined Behavior on Performance
The problem is that “radical” is in the eye of the beholder. If a language is so poorly specified that developers and the specification don’t agree on the meaning of a program, that leaves optimizers in an unwinnable situation.
cobbal··on How to end up with 500k commits in your log
That can be fixed by using “EDITOR=true git commit --amend --allow-empty”
cobbal··on The Suez Canal will be widened
Eventually, a long enough ship should be supported by 3 or more waves at the same time, assuming waves have some sort of maximum wavelength. (Disclaimer: no idea what I’m talking about)
cobbal··on Why Specifications Don't Compose
The fact that CompCert, seL4, and similar projects exist is proof that a large amount of composition is possible if you have enough time to spend on it. It’s true that you can’t compose arbitrary formalizations, but you can architect your formalizations to be composable. Functional or stateful matters less than the engineering work required.
cobbal··on Silicon MacBook could launch on 27 October and cost $800
The ISA alone doesn't mean much, but there's OS compatibility too. MacOS will run iOS applications out of the box.
cobbal··on Why the US military usually punishes misconduct but police often close ranks
So what you're saying is that we need more militarization of the police?
cobbal··on FBI used Etsy, LinkedIn to make arrest in torching of Philadelphia police cars
True... but I think it’s just called an “investigation” when done by the authorities.
cobbal··on Nearly 40% of Icelanders are using a Covid app, but it hasn’t helped much
You were downvoted because you stepped into a long-running and bitter ideological war: Bayesians vs frequentists.
cobbal··on Fuzzy Logic
As far as I can tell... Bayesian statistics is a model of the real world, fuzzy logic is just an easy to compute, bad approximation of reality that assumes everything is independent. (Someone correct me if I’m wrong; I’ve only studied logic and Bayesian stuff, not fuzzy logic)
cobbal··on Swift: Announcing ArgumentParser
Cool! I've recently started writing many of my shell scripts in swift [shameless plug], but nice command line argument processing was something I wasn't looking forward to tackling. Now it looks like I won't have to :)

[shameless plug]: https://github.com/cobbal/swsh

Description:

A shell-scripting library for Swift, inspired by scsh.

swsh makes writing shell scripts more fun by exchanging bash (or similar) for a better thought-out language like Swift. In the process, a small amount of conciseness is traded for better quoting, error handling, and access to libraries.

cobbal··on Wuhan virus will affect iPhone and other electronics production
That’s some good, bad sci-fi waiting to be written. A new strain of the flu spreads overnight across the globe once it is able to jump between people and the internet...
cobbal··on Show HN: SoundZoom – Microtonal and Isomorphic Keyboard HTML5 App
I can tell the difference at 12. There's a flash test at http://jakemandell.com/adaptivepitch/ and the (probably heavily sample-biased) histogram at the end suggests 10-20% of people can't differentiate 1/4 of a semitone and 60% ish can't differentiate 1/12.
cobbal··on How to explain infinity to kids
It's two different processes. Normal counting is saying, "take a thing and add one" (a successor ordinal). It's how we get from 42 to 43. If a number can be reached from zero using just this kind of counting, we call it finite.

The new type of counting also allows you to take a different step and say, "take a collection of things and add a new thing at the end" (a limit ordinal). It's how you get from the set of finite numbers to ω. There's nothing that's "one before" ω, but all the finite numbers are before it.

Repeat these steps as much as you want (making sure none of your sets are circularly defined), and you're counting with ordinals.

cobbal··on Pointers Are More Abstract Than You Might Expect in C
Call stacks are almost always used in implementations of functional languages as well, even those that support first-class continuations. Even implementations that use CPS as you describe don't necessarily lose call-stack discipline (e.g. guile); that's a separate choice that some (e.g. SML/NJ) choose to make.

The call stack provides very cache-friendly and gc-friendly memory. It's still a very useful construct in functional languages.

cobbal··on Gluon – A static, type-inferred and embeddable language written in Rust
Looks like a variant on ml-like `let`.

    let <variable> = <expression 0> in <expression 1>
will bind the value of expression 0 to variable in expression 1.
cobbal··on Emacs 26 Brings Generators and Threads
A likely reason is that it makes it possible to iterate through a list like `'((1 2) () (a b c))`. If you have to do in-band signaling, make it something unique and obscure.
cobbal··on Visual tour of classical electromagnetism
I was getting that error until I disabled the "HTTPS everywhere" extension for the page.
cobbal··on Unsafe RSA primes conjectured
Oops, looks like I made several mistakes in the above calculations.

For a 768 bit number the primes would be 384 bits each, gaps between numbers of the form "27a^2 ..." would be 10^58 apart, and weak primes would be at worst one out of 10^56.

Still extremely unlikely, but not by as much as I thought.

cobbal··on Unsafe RSA primes conjectured
Assuming at least 768 bits (an RSA number of this size has been factored), the gaps between such numbers are more than 10^232. Even if every number of this form was prime, the prime number theorem tells us we can expect one out of every 10^229 primes to be weak.

There could or course be a larger class of such easy primes, but it seems like it's extremely unlikely a prime of this particular form would ever be generated by chance.

← PreviousPage 8 of 11Next →