HNHacker News
TopNewBestAskShowJobs

CreepGin

496 karma · joined May 18, 2016

Web and game dev. Creator of OneJS.
submissionscomments
CreepGin··on Show HN: I rewrote my Mac Electron app in Rust
Yep, we use Electron specifically because it gives us a locked-down version of Chromium with a consistent WebGPU implementation. Without that, we're stuck dealing with whatever browser version the user happens to have, and that completely wrecks the stability of our GPU pipeline.
CreepGin··on Electron Ain't Bad
Sure, for a quick run down:

1) Use Electron if stability and having chromium and v8 is important to you (i.e. for WebGPU, etc.). It has the biggest community and set of existing apps made with it. Largest base app size (~100MB). But should be acceptable for most desktop apps unless you are making small utility apps.

2) Use Tauri if app size is important to you. It's like Electron but with a slimmer runtime and a Rust backend. Still uses IPC.

3) Use Dioxus if you already think in Rust and don't need any JS framework. Everything is in one Rust process. No IPC. Smallest app size (~5MB). It's still very new though. Tooling is less mature (still uses a lot of other 3rdparty stuff for packaging, etc). Community is smaller.

4) Flutter has the best mobile DevEx. Uses Dart.

5) Wails is great all-around. Best tooling and JS bridge, IMO. I'd recommend going for it if you already know Go.

* Tauri, Dioxus, and Wails all default to using OS's webview.

CreepGin··on JavaScript's New Superpower: Explicit Resource Management
Need to dig into this more, but I built OneJS [1] (kinda like React Native but for Unity), and at first glance this looks perfect for us(?). Seems to be super handy for Unity where you've got meshes, RenderTextures, ComputeBuffers, and NativeContainers allocations that all need proper disposal outside of JS. Forcing disposal at lexical scopes, we can probs keep memory more stable during long Editor sessions or when hot-reloading a lot.

[1] https://github.com/Singtaa/OneJS

CreepGin··on Electron Ain't Bad
After trying out Electron, Tauri, Dioxus, Flutter, and Wails, I’ve come to the conclusion that when it comes to desktop apps and UI, nothing really beats the combo of the JS ecosystem, Chromium, and V8. It's just very powerful and well-supported.

Experienced devs or teams can easily keep perf overhead to be under 15% compared to native. IMO it's a great trade-off for the amount of dev time you save.

That said, native still has its edge in:

- ultra-low input latency

- battery efficiency

- memory control (especially GPU)

CreepGin··on The Deep Research problem
Agreed. Maybe we're moving toward a world where LLMs do all the searching, and "websites" just turn into data-only endpoints made for AI to consume. That'll have other big implications... Interesting times ahead.
CreepGin··on Trae: An AI Powered IDE by ByteDance
I'm pretty new in this, but a couple months back, I tried some direct AI code execution in Unity. It worked surprisingly well. Video: https://www.youtube.com/watch?v=0xCR4fiyugA

So I definitely think the value proposition of AI coding is higher when you have programmatical control over the workflow.

On a related note, the recent Cline Plan+Act function has also been a game changer.

CreepGin··on Stargate Project: SoftBank, OpenAI, Oracle, MGX to build data centers
Much less than a year, TBH. US spending on health care in 2023 was ~$5 trillion.
CreepGin··on Frosted Glass from Games to the Web: HTML glass UI inspired by AAA game dev
I feel that no one can compete with Skia in terms of feature-richness. But performance, it'll really depend on the environment, hardware, and what you are doing.

Unity's UI Toolkit, for example, is mesh and shader-based, so it can be highly performant for complex UIs.

Interesting note: If you use OneJS with the NodeJS backend, you can use the wasm version of Skia and render all kinds of cool stuff onto a texture in Unity. Obviously the performance with that is not ideal for animation. But I was able to quickly and easily render music notations and charts on my deployed Unity app on Android using that method.

> Why not embedding a browser directly though? How do you feel about the Flutter based UI Widgets?

Mostly to avoid overheads on both disk space and runtime performance. QuickJS is only ~20MB to embed. And I have no experience with Flutter, unfortunately. =/

CreepGin··on Frosted glass from games to the web
[OneJS](https://onejs.com/) for Unity is a more modern entry in this space (Disclaimer: I'm the creator). Instead of embedding a browser/webview, it lets you use web techs and directly integrates with UI Toolkit (Unity's native UI solution).

A general drawback of using web UIs in games is the lack of support for performant 2D vfx. It's something I'd like to tackle in 2025 with [Spark2D](https://github.com/Singtaa/Spark2D).

CreepGin··on OneJS – functional, JavaScript-only, web/iOS/Android
Nope, I think it's a new project. Very confusing for me though because my project is also called OneJS (onejs.com), which is very different and provides Javascript support for Unity.
CreepGin··on Ask HN: What are you working on (September 2024)?
Tyty! To be honest, Godot and UE have been very tempting. I'm just too deep into Unity at this point. Even I'm surprised that their years of fiascos didn't shake me off. But it looks like things are getting better over there.
CreepGin··on Ask HN: What are you working on (September 2024)?
OneJS, JavaScript for Unity. Currently working on bringing "Jupyter Notebook" directly into the Unity Editor.

https://onejs.com

CreepGin··on Tailwind CSS vs. Pico CSS (2022)
I maintain OneJS which provides tailwind support for Unity (the game engine). Whenever I need to show people some code examples in Discord, I always use TW instead of, say, raw css, emotion, etc. This is because TW makes it possible to have everything in one file. And the utility classes are so short, it just make more sense to use them to save screen estate.
CreepGin··on SIMD Matters: Graph Coloring
I really appreciate the write-up and showing the most important code snippets.

Intuitively, this feels like a narrower version of using Z-order curve.

CreepGin··on Daniel Dennett has died
I also find it interesting that I graduated from Tufts (2011) and took a Philosophy class in 2010, and yet today is the first time I heard about Professor Dennett. I do wish I'd known him and his works earlier though. His notion of conciousness being a narrative created by the brain resonates well with me.
CreepGin··on Leadership is a hell of a drug
> Do I describe myself as a leader? Yes, I do; because the evidence of my life shows that to describe myself as anything else would be silly.

Are you quoting Dwight Schute?

CreepGin··on Tests find many popular omega 3 supplements are rancid
I think unopened sesame oil can have years of shelf-life. I certainly never had a problem with the smell and we use sesame oil quite a bit in our household.
CreepGin··on The anatomy of a Godot API call
The biggest problem for me in moving to Godot is the editor tooling. I find the @tool and EditorPlugin workflow to be very finicky. Editor restarts were needed to refresh/correct changes from @tool scripts. And a lot of what I needed to do in the scene view (context-free) required hacky solutions. Not to mention, they changed a lot of related APIs in Godot 4, most of what I google are still from Godot 3 and don't work in Godot 4 (no backward compatibility).

That said, I'm still enjoying Godot, the only fun part in the past week.

CreepGin··on Unity: We Have Heard You
"Not reflective of our core values"
CreepGin··on Apple supports right-to-repair bill
Just throwing my anecdotes here as well. My 3 Apple products:

1) Macbook Pro 2015: Still going strong to this day. To my suprise, the battery can still last ~30 mins after a full charge.

2) IPhone 6: Camera died for no reason after 1 year.

3) Macbook Air M1: Screen cracked for no reason after 2 years. Machine cannot boot up because of it. Quoted repair cost was $470. I'm probably gonna shelf it. What's weird is that I know a couple other people that had similar experience as well (spontaneous screen crack with the MBA M1).

CreepGin··on Unity Weta Tools
Had to read the youtube comments to understand a little what this is about. So it seems to be a suite of tools (Ziva, Speedtree, SyncSketch, Parsec, Eddy, Deep Comp) that's separate from the Unity Editor and aimed towards (film?) artists.

I don't know how accessible or useful these will be to most game devs using Unity (apart from maybe Speedtree).

CreepGin··on Twitter limits unverified accounts to reading 600 posts/day
Can't speak for the big advertisers, but as a small business owner, I'm more likely to spend ad money on platforms that take an active stance against bots. In general, advertisers (should) care about impressions by unique users, not total number of views.

I'm not sure about requiring an account to view contents though. That to me will just kill total usage across the board.

CreepGin··on Bark – Text-prompted generative audio model
I hear it too. I don't know if it's just background noise though. May be quality issues with the audio synthesis.
CreepGin··on Show HN: GPT-4-powered web searches for developers
Failed at this question:

> Who won "Champions Tour 2023: LOCK//IN São Paulo"?

Reply:

Unfortunately, the provided context does not include information about who won "Champions Tour 2023: LOCK//IN São Paulo". The context provides information about the tournament, its dates, prize pool and participating teams, but not its winner. However, we can still provide some background information about the tournament and its format.

... [few paragraphs of background info]

(Google gives you the straight answer right away on this one)

CreepGin··on Blender 3.5
Also a reminder of how tenacious you gotta be in order to have "open source done right". Remember Blender is almost 30 years old.
CreepGin··on The Io Language
The fading is unnecessary.
CreepGin··on Launch HN: Sidekick (YC W23) – AI support bot for developers
Most of Unity Asset Store publishers/devs have Discord communities. I'm the author of OneJS [1] and 90% of my support takes place on Discord. =)

[1] https://onejs.com

CreepGin··on The death of Rackspace’s ‘fanatical support’
> Digital Ocean had very little to do with their decline.

From my personal experience, Digital Ocean did pull away a lot of indie devs and small businesses away from Rackspace. Those folks did not need most of the features of AWS. They just needed simple cloud servers and maybe some load balancers.

My own small business used Rackspace in 2010 to 2013 ($5k per month op cost). When DO came to our radar, it was dead simple to switch to and cut the cost almost by half.

Another thing I remember about DO was their abundance of community articles (HowTo's and server setup tips, etc...) that were well-maintained and always kept up-to-date with latest linux distros.

CreepGin··on Twitter grapples with Chinese spam obscuring news of protests
Here's more analysis on the bot activities: https://twitter.com/AirMovingDevice/status/15970349692932710...
CreepGin··on Twitter grapples with Chinese spam obscuring news of protests
The rubbish hashtag #要要搞定個要 has been trending for at least 10+ hours (all spam/bot posts). Also, if you search Beijing or Shanghai in Chinese (北京,上海), you'll see a sea of escort/porn tweets in the Latest tab.

I was gonna make a post about it 6 hours ago, but thought surely twitter would be on top of it soon. Guess not.

← PreviousPage 2 of 6Next →