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
HN user
udbhavs
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
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.
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.
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
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...
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.
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.
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.
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?
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.
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.
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.
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.
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.
Wait is interface types no longer happening or did I misunderstand your comment?
FL Studio is written in Delphi and the UI is very snappy and modern with a lot of animations.
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?
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.
Are there any demos or samples of MAUI? Last I checked it was in a very early stage and I couldn't find anything
And there is usually a premium for small form factor prebuilts
Note that OP is probably talking about emulating it through CEMU, the Wii U emulator instead of a switch one.
It works on iOS
See also: Hyperscript (https://www.hyperscript.org)
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.
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
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
Just chiming in to add some positivity. I love the idea, having a tangible space to play around in can make conversations with friends much more fun and dynamic than a boring old Discord voice channel. I understand where the hate is coming from given how tied stuff like this has become to the "Metaverse" but this seems like a harmless little experiment. Sad to see everyone trashing it
I do feel like current conferencing apps like meet and zoom are probably not the endgame for digital communication and adding a 3D spacial element can make a lot of interactions intuitive, even if it feels silly at first. like spontaneously breaking out a conversation into small groups if there is proximity based audio chat. You don't have to buy into the "metaverse" to see the utility in a fun little tool like this.
I’ve been working on a video game for several years, and I suspect it will be announced this year. So, commence speculation! (Note: it’s not for one of my properties, but something new that I built with them. It’s a game company many of you will have heard of, but probably not the one you’re thinking about right now. Not that other one either.)
Assuming the first guess was Bethesda, what about the second one?