HNHacker News
TopNewBestAskShowJobs

udbhavs

636 karma · joined November 19, 2019

submissionscomments
udbhavs··on MAI-Cyber-1-Flash inside MDASH
I've been noticing the uptick of beige + serif fonts + art with rough textures in this space. It feels like an attempt to humanize the technology and make it more palatable to people. Anthropic is the biggest example of this language with its ads and promotions.

Edit: I'm enjoying seeing all the other examples linked in the responses. I decided to make a public Semble collection (https://semble.so/profile/vadhub.bsky.social/collections/3mr...) to track more, feel free to add to this!

udbhavs··on If coding has been solved, why does software keep getting worse?
For some reason I have to deal with the opposite problem and have to click twice on a new window to get keyboard focus. Many times I'll switch windows (eg. from Messages to the browser), start typing and accidentally end up sending someone a message instead- even though the messages tab is completely out of view.
udbhavs··on It's getting harder to focus every day
OP is definitely not alone in this. It feels like I'm constantly trying to avoid "attention capture" when trying to do a task that involves browsing the internet - even going on LinkedIn or StackExchange for a specific purpose can get sidetracked by my eyes wandering to the sidebar or being drawn by updates in the feed. It's scary to realize how little in control I am of my own stream of thought.

I don't know if anyone has a solution that's not straight up quitting the internet cold turkey. My attempt so far has been meditating 50 minutes a day following "The Mind Illuminated" by Culadasa as a progress guide for increasing my mindfulness.

The most recent lesson I've learned is that allowing mind wandering and daydreaming can be a good thing. As a kid I read The Power of Now by Eckhart Tolle, and took away a misconstrued toolkit for dealing with an active mind. The whole book was about emphasizing the importance of being present in the moment, and I tried to carry that out by trying to silence my internal monologue and being frustrated whenever I found my mind thinking about something random and not processing direct conscious experience. That felt horrible and was completely counterproductive to being able to live normally, and now I'm trying to re-establish a relationship with my mind where I can welcome random thoughts while still being able to get things done.

udbhavs··on OpenAI Codex CLI: Lightweight coding agent that runs in your terminal
That's neat! I only asked because I haven't seen API keys used in the context of profile environment variables in shell before - there might be other common cases I'm unaware of
udbhavs··on OpenAI Codex CLI: Lightweight coding agent that runs in your terminal
Next, set your OpenAI API key as an environment variable:

export OPENAI_API_KEY="your-api-key-here"

Note: This command sets the key only for your current terminal session. To make it permanent, add the export line to your shell's configuration file (e.g., ~/.zshrc).

Can't any 3rd party utility running in the same shell session phone home with the API key? I'd ideally want only codex to be able to access this var

udbhavs··on ArkType: Ergonomic TS validator 100x faster than Zod
I was going to ask about how pure types would fill the gap for other validations in Zod like number min/max ranges, but seeing the tags feature use intersection types for that is really neat. I tried assigning a `string & tags.MinLength<4>` to a `string & tags.MinLength<2>` and it's interesting that it threw an error saying they were incompatible.
udbhavs··on Valentin Hansen: Creating an Infinite Sound
> At the time this article was written, the album consisted of 13,650 songs and had already surpassed the record held by Asha Bhosle, an Indian singer who recorded over 11,000 songs since 1947.

The latter is a prolific and renowned 91 year old Indian singer who has been singing for movies since the 40s in different genres and languages. This line in the article is good for putting the volume of the album in perspective, but I don't think generative music can be compared to her body of work.

udbhavs··on When Zig Is Safer and Faster Than Rust
Dart has pattern matching that is a lot more fleshed out than most C-family languages, you should check it out

https://dart.dev/language/patterns

Edit: while there aren’t full ADTs, it does have sealed classes which help with exhaustiveness in matching

udbhavs··on JSON Patch
I used this standard a long time ago to make a simple server -> client reactive state for a card game by combining it with Vue's reactive objects to get something like a poor man's CRDTs. This is a rough diagram of what it looked like: [1]. Although there was a reducer step on the server to hide private state for the other player, it's still probably wildly impractical for actual games.

[1] https://user-images.githubusercontent.com/50021387/184360079...

udbhavs··on Show HN: A JavaScript UI library for imperative JSX
> If we accept the fact that the web is inherently imperative, then I believe we can resolve most if not all of the above problems. We don't need to throw the baby out with the bathwater though, because JSX is fantastic.

Also look into SolidJS for dropping the "functional" component model while still retaining JSX - it looks similar to React but works more like Vue, running components as setup functions only on initial render and doing state updates with mutations via signals.

udbhavs··on Show HN: Multilspy – Cross platform framework to develop Language Server Clients
This is my first time reading about Gleam and it looks really cool! How's the experience of writing Vue components in it? Web frameworks like it and Svelte tend to liberally meddle with the syntax & semantics of JS through transpilation to have a specialized dev experience, so it can be difficult to use a different language and feel like a first class citizen since it's not like using a simple API anymore (unless there is special consideration given to it like ReScript and React).

Also, what's the concurrency story like? Gleam does not seem to support async/await but apparently it has colored functions when compiling to JS, though I'm not sure how those interop with the JS ecosystem.

udbhavs··on React Labs: What We've Been Working On – February 2024
Learning about the auto-memoization feature when it was called React Forget made it seem like a pretty natural extension of the functional component paradigm - separating out and memo’ing parts within components based on info that’s trivially available at compile time (maybe not trivial, I’m not sure how much work is being done by the compiler here). Is this something that could be implemented as a language-level feature for some “dedicated” language for writing functional reactive UIs? Languages like ReasonML are meant to map more nicely to React’s model because of their expressiveness, but I wonder if it could be taken further.
udbhavs··on Build an iOS and Android app in 100% Kotlin with Compose Multiplatform [video]
This looks like an important milestone for cross platform dev! I've seen a lot of people wishing Flutter supported Kotlin, so I wonder if it will become as prominent in mobile development. Does anyone know of significant downsides with the platform (apart from not being mature enough) that could prevent it from joining the ranks with Flutter and React Native?
udbhavs··on Graphite: Open-source raster and vector 2D graphics editor
This is not exclusive to web apps though (especially open source ones)? I don't see how what you said doesn't apply to the Adobe suite which is native.
udbhavs··on How to build a website without frameworks and tons of libraries
The first hurdle in trying to make simple multipage apps with handwritten HTML/CSS is, as the author mentioned, getting to the step where you have reused components across pages and have to jump into a server-side templating setup like PHP, or use something that introduces a build step if you want to stay static. I don't know why there isn't a simple method for including HTML partials incrementally in handwritten sites without doing either of these. WebComponents and slots seemed perfect for this but they force you to define them with JS.
udbhavs··on I want to talk about WebGPU
I wonder if application frameworks like Flutter will move to WebGPU? I imagine it shouldn't be that hard to get Skia running on a wgpu backend. The current web target generates a lot of markup that isn't really semantic or representative of a web app's structure with lots of canvases anyway, so I imagine moving to a uniform render target will make things smoother. They're already experimenting with Dart in WASM instead of transpiling to JS as well.
udbhavs··on Htmx 1.9.0 has been released
This seems like a big leap forward for web apps! Proper view transitions are one of the biggest gaps in usability and perceived smoothness between web and native/Flutter apps at the moment.
udbhavs··on Ask HN: Who wants to be hired? (January 2023)
Not a recruiter but a current CS undergrad and your skill areas really resonated with me - GPU programming, HPC and scientific programming, and Audio/DSP are all things I wanna explore. Do you have any advice on where I should focus my efforts to get better in these areas? I've been looking into books and resources, and I'm not sure if I can pursue something like DSP on my own time without enrolling in formal college courses because ironically enough I'm a bit scared of math.
udbhavs··on Accessing WebAssembly reference-typed arrays from C++
Wait is interface types no longer happening or did I misunderstand your comment?
udbhavs··on Ask HN: How to make a native GUI with a modern language?
FL Studio is written in Delphi and the UI is very snappy and modern with a lot of animations.
udbhavs··on Google Launches Carbon, an Experimental Replacement for C++
I've been seeing a lot of references to this across youtube, reddit etc for a new experimental language. Is google putting their full weight behind this like Go or is the virality just incidental?
udbhavs··on It’s Like GPT-3 but for Code – Fun, Fast, and Full of Flaws
This could be useful for languages like Go where simple repetition and loops are preferred over clever language features like object or array destructuring that can add cognitive or performance overhead.
udbhavs··on .NET Myths Dispelled
Are there any demos or samples of MAUI? Last I checked it was in a very early stage and I couldn't find anything
udbhavs··on Apple M1 Ultra
And there is usually a premium for small form factor prebuilts
udbhavs··on Nintendo is removing switch emulation videos on Steam Deck from YouTube
Note that OP is probably talking about emulating it through CEMU, the Wii U emulator instead of a switch one.
udbhavs··on Brave Talk: Unlimited, private video calls, in browser
It works on iOS
udbhavs··on AppleScript (2006) [pdf]
See also: Hyperscript (https://www.hyperscript.org)
udbhavs··on SPAs Were a Mistake
I don't know why routing is the sole focus of the article. In all my SPAs it has been a set up once and forget about it deal. No one is constantly reinventing the wheel there, the churn is in other areas like reactivity and state management.
udbhavs··on Why Apple’s new M1 chips are essential for rapid iOS development
For a short while when the M1 macs first released, people were successfully sideloading the iOS versions of Discord and Slack on them which were significantly lighter, but I think Apple has patched it now and it's not possible anymore
udbhavs··on Mozilla Hubs
The real utility comes in when you can pin random media like images and videos to virtual objects. It's much more intuitive to work with stuff when you have everything laid out physically. It's literally a digital mind palace
← PreviousPage 2 of 7Next →