Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do you have a recommendation for learning HTML/CSS (and how it interfaces with JS) as well? JavaScript has never been a particularly hard language for me to grasp, it’s all the finicky bits of working with an actual browser that act as a deterrent for me to want to do much with browser UI. (Preferably the way to learn this would be based on standards that are generally implemented or have carve outs for how engines might behave slightly differently. I’ve wanted to do some things with Electron so I only have a single target to care about, but that barrier is still there to even begin to understand how to lay stuff out even with something like FlexBox)

EDIT: Also if you know any resources for writing high performance JS, that would be appreciate too. Not necessarily just number crunching optimizations, but also working with (potentially large) strings/Unicode. I’ve worked on something that might need to parse tens of megabytes of a simple plain text format including dates and likely (complex) Unicode characters, so making that as fast as possible is important to me. (I got it down to like 500ms for 30-40MB I’d text but I think I managed faster with a version on the JVM, with both being single threaded)



>Not necessarily just number crunching optimizations

JavaScript is not the language for that objective anyway. So, No!

It's all about I/O.


This is for a client application that is storing a bunch of plain text in a specific format, where the parsing would happen on a separate worker. If you have any advice for how to make faster JS or for how to learn HTML/CSS/JS interop with those things I’d appreciate it. Otherwise it’s not very helpful to just tell someone “JS is not for performance! No!”. As much as people dunk on JS, you CAN write performant code in it. Like there’s been some decades of work put into making it run faster or be able to make games or something in it...


This is going to be platform-specific to a degree. I'd expect there to be profiling tools around V8 and Spidermonkey that can help you figure out what the interpreter makes of your code, and potentially guides on what patterns to avoid. With JITed interpreters, these things can surprisingly specific.


I guess that sentence got a bit too imperative.

Regarding games, it uses subset of OpenGL API. You can use that to crunch numbers actually.

Anyways you'll have to use some external API/FFI for your job.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: