Hacker Newsnew | past | comments | ask | show | jobs | submit | boronine's commentslogin

Wow, this might be the best use of HSLuv so far, I'm going to add it to the examples page https://www.hsluv.org/examples/


Hi Alexei, thanks for your work on HSLuv! I love the simplicity of it, where you can use HSLuv as mostly a drop-in replacement for HSL which most designers are familiar with.

I keep seeing new tutorials on designing accessible palettes that still use HSL, where the WCAG2 contrast breaks and goes all over the place as you vary the hue and saturation. HSLuv makes life so much easier here and lets you focus on exploring colors that you know will pass, using a familiar looking color picker.


This. oklch requires you to be some sort of expert sage. HSLuv is so easy to grok.


I also used yabai for this purpose but found a solution that doesn’t require messing with security: https://www.boronine.com/2025/02/09/Instant-Workspace-Switch...


> Using native functionality, you have the option of a seizure-inducing sliding animation or an equally time-wasting fade

Amen.

I tried switching to Aerospace, but it would become visibly laggy when connected to an external display and switching a screen that had Zed open for some reason. So I've switched back to Yabai :(


I had some success experimenting with this: https://github.com/boronine/the-landing-pad#modeling-a-secti...


This is the correct answer. Pro-tip: use Django admin as a user facing interface in your prototype, then you won’t even need to write HTML templates, let alone client-side JS.


I have been using AeroSpace for this purpose for over a year. I simply disable all the tiling features in the config and only use two shortcuts: switch to workspace and move current window to workspace. It's absolutely essential when working on a small screen.

AeroSpace does indeed suffer from a performance issue but this appears to be inherent to the available macOS APIs: https://github.com/nikitabobko/AeroSpace/issues/131

The way you reproduce it is open Factorio.app and quickly switch between workspaces while the game is loading.

FlashSpace seems to suffer from this problem as well based on a quick test.

With regards to configuration, I think it's cumbersome to configure shortcuts per workspace. In AeroSpace, every letter and number on the keyboard is automatically a workspace and shortcuts are global.

All that said, this is a fantastic tool and I would prefer a tool like this that addresses the pain of macOS workspaces as its primary goal rather than being part of a tiling window manager.

EDIT: After more testing it appears that FlashSpace does not support having different windows of the same app on different workspaces, this is a dealbreaker for my workflow :(


Regarding the performance, the app uses native api to show/hide so I don’t think it is possible to make it faster than it is now. If it lags it’s probably not the app lagging but the system because of the heavy work going on.

Btw. I had the same adventure with Aerospace, I disabled whole tiling just to have workspaces, but they become unusable because anything going on on the computer could cause lag like 5 seconds between switching workspaces. And as a developer I often build apps and switch between workapaces.


How do you disable the AeroSpace tiling, are you just using the floating layout? Can you share your config?



SSH does some kind of lower-level multiplexing. Multiplexing is unavoidable here because the local server must maintain simultaneous TCP connections that must be somehow distinguished between each other whereas the tunnel is just a stream of binary data.


I understand multiplexing is necessary. My point is SSH tunnels already multiplex. If two people connect to the same port on the tunnel machine then that will be two seperate sockets on the destination machine. Since they are already two separate sockets what is the point of adding HTTP/2 protocol awareness at the tunnel level? Just let the endpoints handle it.


Oh looks like we misunderstood each other. The fact is that h2tunnel is not using SSH, because my goal was a minimal Node.js native solution. So I had to look for a built-in alternative for multiplexing and found HTTP2.


Let me know how to goes! And watch for an update this week. I'm writing thousands of lines of tests to iron out all the event handling quirks in case of bad network conditions etc. I want to make it rock solid.


I was able to keep my code small by leveraging existing protocols: TLS for authentication and HTTP2 for multiplexing, stuffing simultaneous HTTP1 requests onto a single TLS-encrypted tunnel socket.

Hopefully I'll make it on the hall of fame [1] :)

[1] https://github.com/anderspitman/awesome-tunneling


I think most of this is covered by a good Decimal API, currency stuff probably shouldn't be embedded into a language because it changes: currencies come and go, get redenominated etc. Although one simple thing that would be useful is keeping track of abstract units, e.g. throwing an error when attempting to do 10 USD + 10 EUR.


Don't we embed timezones, though?


Timezone conversions don't change by the minute. Currency conversions do.


Do most applications use the minute-to-minute conversions or some daily rate?

I'm fairly sure that for example for RON, the Romanian Central Bank only publishes daily rates, for example.


I am happily using a few other AWS services for this project, provisioned by CDK. I thought I could simplify things my getting rid of Heroku altogether but this turned out to be an incredibly frustrating rabbit hole with no solution in sight. Unless I’m missing something obvious, it seems that Amazon is incapable of this seemingly easy task.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: