HNHacker News
TopNewBestAskShowJobs

yxre

90 karma · joined June 7, 2023

submissionscomments
yxre··on Flashing elements alienate users
One thing that annoys me and I was hoping to find in the article is layout shifts as you are trying to read the page. You see it a lot on low-quality news sites where you start reading then an ad appears pushing content down the page forcing you to re-adjust.

Its such a bad pattern, and it's so common on poorly coded sites.

yxre··on Ask HN: How do you implement censorship to a LLM?
They have a huge training set that is composed of two types of data. The first set of data is the raw data of text from the internet. The second set of data is questions and answers that it should learn from.

That second set can have a prompt "What do you think about this race?", and then the LLM answers. Using NLP, they judge the answer with a point based system to inhibit certain behavior or not. I think the dataset is very large. It includes some questions with the answer. They definitely have a training step that asks the question, sees how the model responds, and then judges the answer.

The LLM that they run is open source. The real secret sauce is the training data and process. They have revealed things here and there.

yxre··on PostgreSQL reconsiders its process-based model
Process isolation affects so many things in C. The strategy change is going to require changes to so many modules that it will either be a re-write or buggy.

In practical terms, if every line needs to be audited and updated, it is a re-write

yxre··on Modern CSS for Dynamic Component-Based Architecture
It's true, but for any serious project, you set up tool chains for utilizing those files in pipelines for local servers, commit hooks, and build steps.

Things like linters, unit tests, and rules-based code standards would also be included. Development environments have gotten increasingly complicated because CPU time is cheaper than Dev time.

yxre··on Modern CSS for Dynamic Component-Based Architecture
Sometimes I think I know everything that I need to know about web dev, but then I read something like this and learn about new features that I didn't know of.

I hope they think about deprecating some features or slowing down on adding features. Letting developers rely on transpilers is great way to keep the core language simple while letting people do anything they want.

yxre··on Ask HN: What are some of the most elegant codebases in your favorite language?
I think java is geared towards server applications because the JRE is so finicky about memory and other machine level details you can only control on your own services

Most major web services have java microservices that take on the performance critical and logic intensive parts of the business

yxre··on Modern CSS for Dynamic Component-Based Architecture
Flex was added in 2009, but it had bugs as late as 2017. It is one of the problems with adding features as fast as they are. There is no point in having features if they don't work or are broadly supported
yxre··on Douglas Crockford on JavaScript
Javascript is optimized for workloads to keep latency low and maximize concurrency while constraining itself for resources. This is pretty ideal for a GUI scripting language, and covers most use cases for the web.

It is hard to get performance perfect in all workloads. I have always been able to optimize my scripts to get the responsiveness that I need.

yxre··on The Surprising Power of Documentation
One thing said in another article that has really stuck with me on documentation is that it helps you scale yourself. You can only have so many meetings and so many discussions everyday. Maybe manage 5-10 people tops.

With good documentation, it can be used to scale yourself beyond what you can personally do everyday, and it works really well when you can convince people to search for answers before asking

yxre··on Douglas Crockford on JavaScript
Nobody will ever agree on an alternative. And, none of the attempted alternatives have ever taken off because the velocity of javascript's incrementalism is far greater than the velocity of any new shiny thing.

JS has the weight of the largest corporations in the world behind it that don't want to lose their investments

yxre··on Douglas Crockford on JavaScript
He has been saying this for a decade. I had to double check the dates to see if it was even relevant.

A problem is that the 3 problems that the articles highlights have been fixed with incremental fixes. Performance with V8. Object lifecycle management has had improvements from ES6 WeakMap and WeakRef although JS will never have RAII. ES6 also added more data structures.

No new alternative will be able to keep up with javascript's incrementalism

yxre··on The growing pains of database architecture
I was surprised that they went for database partitioning first.

Caching and optimization weren't mentioned at all, but I guess they already maxed out that path

yxre··on The growing pains of database architecture
I think JOOQ isn't a proper ORM, but it is splitting hairs on the definition. It calls itself an OOQ (object oriented querying)

ORMs become an antipattern when they try to abstract away the database completely by masking write operations and paging lists implicitly. Developers need to know precisely when these operations happen to manage performance.

JOOQ doesn't do that. Active record does. Hibernate does (but it's configurable)

← PreviousPage 2 of 2