HNHacker News
TopNewBestAskShowJobs

jomohke

508 karma · joined March 4, 2009

submissionscomments
jomohke··on Oscilloscope watch ships after 10 years on Kickstarter
I would bet money that the creator didn't make anywhere near minimum wage, if anything, from this. Add up the time of designing and getting this project done over ten years.

It's also a niche, specialist hardware project made in extremely small quantities. They probably should have charged more, not less.

jomohke··on The Python dictionary dispatch pattern
btw, Python has had pattern matching for almost two years now: https://peps.python.org/pep-0622/

If you support Python 3.10+ you can do this far more cleanly.

jomohke··on TypeChat
It takes a while to develop a product, and the world only woke up to them mere months ago
jomohke··on Red Programming Language
I'm surprised that I haven't heard of this line of languages before.

The home page of Rebol, which it says it's derived from, seems to do a much better job at stating its purpose: http://rebol.com/

jomohke··on Ask HN: What's the best self hosted/local alternative to GPT-4?
So if I embed a custom "special sauce" model in my phone app, to do inference faster on the device, my bigger competitors could simply extract it from the bundle and use it too?

Perhaps that's okay, I don't know, but it seems strange that the little pieces of client-side javascript are so copyrightable yet this other work isn't.

jomohke··on Tell HN: ChatGPT can reply like a specific Reddit or HN user, including you
This is a great example of its limitations. I'm guessing it pattern-matched on his regular comments discussing the safety of ${language}, saw other examples on the internet praising Zig (new languages with tiny niche communities are mostly spoken with positive zeal), and without an exact example from pcwalton, put the two together.
jomohke··on Wait vs. Interrupt Culture
Do you think it's the interrupting that's the issue here, or the fact that they're changing the subject? (and hence, not listening to you)

I think both "wait" and "interrupt" culture etiquettes involve supporting the current conversation, not ignoring the other person's input. The latter is frustrating in both styles.

jomohke··on Why are American workers becoming harder to find?
Many, many are. There’s still a notable squeeze, though: https://marginalrevolution.com/marginalrevolution/2021/05/fr...
jomohke··on Carving out a niche as a small artist on Spotify
Agreed. I think his view comes more from the pop section of the market. Everything I consume and discover is still album-based.
jomohke··on Flow browser passes the Acid tests
That’s not normal.

What plugins do you have installed? Maybe one is slowing it down?

And perhaps run “clear caches / restart” just in case there’s cache corruption

I run it fine on a Linux machine that has 4GB ram total — I’m curious how much memory you’re talking about.

jomohke··on Why the developers who use Rust love it so much
Yeah, it's surprising. A lot of Python people are in the community too, such as Armin, the creator of Flask.

I can't speak for Rubyists, but I find it a very strong complementary skill to Python, as it allows for writing things that are impractical in Python. And Rust feels friendlier as a Python-complement than C. Especially parallel C.

Receiving a compiler error in Rust is more appealing to me than debugging a segfault or race condition in C, especially since Rust will always tell me when one exists. Or more importantly, I can feel comfortable pushing new fast low-level code to production knowing it's not a risk. There's no ambiguity. "fearless concurrency" is not just a buzzword, it's partly what makes Rust fun and practical (for me). As well as the incredibly-fast start-up time of my Rust code compared to Python.

It is also appealing for Python programmers because of the increasingly-decent support for mixing the two languages without overhead, including publishing pure-Rust packages as python modules^1

1. https://github.com/PyO3/pyo3

jomohke··on Workman Keyboard Layout (2010)
Note that you can learn a new layout without forgetting Qwerty.

If you switch between layouts while learning, you'll maintain that ability to switch. Similar to how the brain can switch languages.

I found this to be an easier way to learn, as it didn’t interrupt life as much. All of my work stayed in Qwerty until my Workman was good enough. And I still use both.

Edit: The one frustrating switch is Workman's moved copy-and-paste keys. I do press the wrong ones by accident. I would choose Norman instead of Workman today purely for that reason.

jomohke··on Rust: Dropping heavy things in another thread can make your code 10000x faster
You can easily use a custom global allocator in Rust:

    #[global_allocator]
    static GLOBAL: MyAllocator = MyAllocator;
jomohke··on The Difference Between Amateurs and Professionals (2017)
Looking at Collins dictionary, I think the author is using the third definition of amateur: “a person unskilled in or having only a superficial knowledge of a subject”

And the second definition of professional “a personal who engages in an activity with great competence”

These are implied by the question that begins the article: “Why is it that some people seem to be hugely successful and do so much, while the vast majority of us struggle to tread water?”

The author could have chosen better words, but I feel you’re missing most of the article by focusing exclusively on them.

jomohke··on You probably don't need a single-page app
> they simply become the OS but slower, more abstracted, and with less security.

I agree with slower, at least for computational tasks, but not security. Do you feel safer installing an organisation's native app than using their web app?

> The only positives are to corporations and institutions with profit motives...

What advantage does the web give to corporations that native apps don't? You mention spying, but the native mobile app ecosystem is filled with tracking and analytics code (and it's easier to hide it). The only corporation-level difference I can see is that native apps are heavily tied to a specific company's platform, while web apps aren't. This is a huge positive to the web - I've felt free to change platforms many times.

A second huge and underestimated positive of the web is backwards compatibility (ie. lower maintenance headaches). A complicated internal web app I wrote eight years ago is still running despite not being modified. The websites and lousy javascript I wrote as a kid in 1999 still run exactly the same as in 1999. Spacejam.com is unmodified from 1996. Yet I have many native apps from two years ago that no longer run correctly due to OS updates (especially on mobile).

jomohke··on My Struggles with Rust
"returns" and "is of type" are different concepts, so having different syntax for them makes sense.

- In your first example, foo is of type "Bar"

- In your second, foo is of type "function that returns Bar".

ie, if you stored your foos in separate variables they would be:

    let my_var: Bar = ...
vs

    let my_function: fn() -> Bar = ...
If they were to change it to your suggestion the latter would be either awkward (multiple colons?) or inconsistent (different syntax for types and declarations).
jomohke··on Windows Is Bloated, Thanks to Adobe’s Extensible Metadata Platform
Apple used Carbon for a lot of its own built-in apps, such as Finder, didn't it? (edit: and iTunes)

(Almost?) all other other major vendors at the time used it heavily too: Microsoft Office until 2011, FileMaker until 2010.

If Apple released the OS a year earlier, but without any available third-party software (waiting for almost-rewrites to happen), would they really have been better off? At this time they were on life support and would have had difficulty convincing third-party vendors to invest heavily in their platform, or to convince users to adopt it without any major applications available.

In either case, Adobe's sway clearly declined over the years, as Apple cancelled the 64bit version of Carbon while Adobe was still heavily built around it, forcing Adobe to switch (and an awkward year or two when the Mac, but not Windows, versions were stuck with 32bit memory limitations)

jomohke··on “We have decided to disable IMDb's message boards”
There is an import option for pro users: https://letterboxd.com/about/importing-data
jomohke··on Things You Notice When You Quit the News
Can you give an example? I suspect you're referring to the same short-term ones the author is deriding, not the journalistic kind that take time to research and prepare.
jomohke··on Things You Notice When You Quit the News
It sounds like you're taking it as an absolutist argument ("Why try to avoid refined sugar? It's everywhere, so you're always going to ingest some anyway.")

> Not watching CNN won't prevent other CNN-watchers from talking to you.

I think a conversation with a CNN-watcher is more interesting when you yourself have read slower sources than if you have both spent your time watching live broadcasts or reading live articles. You'll find you both have different kinds of points to bring to the conversation.

I've found a large difference between the daily (or 24-hour) sources and weekly/monthly publications. The latter are more removed from the day to day events, and so tend to spend more time on the issue itself and wider trends, and less on personality clashes or rare, once-off outlier events (which by definition, you don't need to be worried about^[1]). Relying mainly on them, you'll have heard less about what has happened in the last 24 hours, but likely know more about the major events and wider trends of the past year. The daily sources are particularly bad at portraying those wider trends: they will show a violent crime every night regardless of whether a hundred or only ten occurred.

[1]. The truly significant outlier events will still be covered by the slower news cycle and in normal daily conversations. There's no risk of not knowing that a 9/11 happened. I haven't found that it matters if I don't know about the latest disaster immediately: to the contrary, a conversation can be stronger when the other person explains in their own words what has happened, and I can ask questions with genuine interest.

Note that he's not advocating being oblivious to the world. See the third paragraph:

> To be clear, I’m mostly talking about following TV and internet newscasts here. This post isn’t an indictment of journalism as a whole. There’s a big difference between watching a half hour of CNN’s refugee crisis coverage (not that they cover it anymore) versus spending that time reading a 5,000-word article on the same topic.

jomohke··on Western Digital unveiled its SanDisk 1TB SDXC card prototype
I think it's being treated as noteworthy due to reaching a milestone. It doesn't feel very long ago that we hit 1GB.

Edit: after a quick Google search: "Jan 29, 2004 - Sandisk ships world's first production 1GB SD card"

jomohke··on Servo Continues Pushing Forward
Spidermonkey compares very well with V8: http://arewefastyet.com/

(beats it in Sunspider, is roughly equal in others)

And it maintains the lead in ECMAScript6 support: https://kangax.github.io/compat-table/es6/

jomohke··on Harry Potter and the Methods of Rationality finished today
Can you recommend some alternative writers that fill the role better?

I think his writing has two particular things going for it:

- He explains concepts clearly with understandable examples.

- He presents concepts that aren't (or weren't) well known outside of academia to a wider audience.

jomohke··on The best practices of HTTP1 are harmful in a HTTP2 world
You'll still see performance benefits of HTTP2 while supporting HTTP/1.1 content.

HTTP2 requests have (sometimes significantly[1]) less overhead, and most sites following good HTTP/1.1 practices still make many requests.

Open the network panel in your browser and view a few large sites. Despite minimizing requests with sprites, concatenation etc, most still make dozens of requests, with some large sites pushing over a hundred.

(for example, I just loaded a page for a single tweet on Twitter and it involved twenty requests, with a size over 2MB.)

I think your list of options are incorrect:

- You can optimize for HTTP/1.1 and it will be fast over both protocols.

- Or don't optimize, and it will be fast over HTTP2 and slow over HTTP/1.1. The main benefit is saving development time & complexity. This will not be a worthy tradeoff until HTTP2 is more widespread among your users.

[1] The reduction in latency can be massive, for instance, as the HTTP2 server can push resources immediately without waiting for the browser to request them.

jomohke··on The best practices of HTTP1 are harmful in a HTTP2 world
I don't think the complexity would be worth it in most cases.

The article is misleading on this, but those HTTP/1.1 best practices aren't slower when served over HTTP2. HTTP2 will still be faster than HTTP/1.1.

- Spriting and concatenation will not be worse under HTTP/2, just (mostly) unnecessary.

- Splitting content across multiple domains will be 'harmful', in that you're enduring multiple TCP handshakes instead of one. But this is no worse than HTTP/1.1

- Minification is unchanged. It will still decrease the download size. Although I sometimes find that the difference after compression is trivial on many modern sites, so is often not worth the decrease in readability/debuggability.

jomohke··on The best practices of HTTP1 are harmful in a HTTP2 world
It does support compression of the message body, but not of the headers.

They designed a new compression algorithm called HPACK specifically to compress headers in HTTP2: https://http2.github.io/http2-spec/compression.html

In small HTTP/1.1 requests the headers can be much larger than the content, which is part of the motivation for combining files into one request.

jomohke··on HTML5 is done, but two groups still wrestle over Web's future
I don't have data on this, but it feels like solving the wrong problem. Is text parsing overhead a significant drain on modern systems?

The size difference over a wire between gzipped/deflated text and protocol buffers is also usually dwarfed by almost any other asset being loaded on the page (images, fonts, videos etc).

The benefits of human readability and simplicity probably outweigh those size differences, I think.

I do agree there's a lot of room for improvement in the html/css/js combination, though. They were designed for far less dynamic interfaces than those we're trying to build today.

The CSS model in particular is very conceptually complicated for a layout system. I say that having used it for 13 years.

jomohke··on Choose Firefox Now, Or Later You Won't Get A Choice
It did. But Microsoft disbanded the IE team after they won that marketshare, which gave other browsers years to catch up.

Things may have looked very different had they continued the heavy development pace after releasing IE6. IE had a fast and modern engine compared to contemporaries when IE6 was first released, but then it went five years without any major updates.

I'm undecided about Google's growing browser control, but in any case I don't see Google making the same mistakes as Microsoft.

jomohke··on Moving from Ubuntu to Debian
Debian stable releases come out roughly every two years, and are supported for an extra year (or so) after the following release.

Otherwise RHEL/CentOS have longer support periods (ten years).

jomohke··on Mozilla bug 923590: Pledge never to implement HTML5 DRM
You're right about DRM implementations in general, but note that the W3C standard isn't actually a DRM implementation, it's (afaict) a common API that allows web pages to supply their own DRM implementations.

An open source browser can conform to the W3C DRM standard ("Encrypted Media Extensions") and remain open source.

← PreviousPage 2 of 4Next →