9 karma · joined Aug 18, 2023 (3y ago) · 11 submissions
comment 1w ago · link · parent
The part that I find extremely valuable is using LLM's as a replacement for searching code documentation. If you're new to something, you don't always know how to phrase your search query. The LLM's do an excellent job at translating your novice-level language into the precise terms you need. This saves a lot of people's times. You don't have to ask your question on a forum or to your colleague, saving not just your time, but everyone else's time. That's a big gamechanger. We can spend more time on the task you care about and not on all these tertiary side-trips.
What I find extraordinarily disappointing, however, is the industry's reaction was not "Oh wow, look at how much more productive we can make our programmers.". The industry's first reaction was to tokenmaxx and make the LLM's do everything, from writing code, submitting issues, design, etc. It leads to codebases that seem fine on the surface, but as you study the code, you find all sorts of issues. As these issues get discovered, the LLM then has to fix a bunch of different code, which leads to these infamous thousand-line PR/MR's. Even if LLM's produce code that works, remember that the quality of the LLM's output degrades when the context window reaches a certain point, which will start costing you more in terms of technical debt, bugs, and the literal token cost. It's also worth pointing out that companies that provide LLM's are still not profitable, so when the arms race between Google, OpenAI, and Anthropic settles, we're going to see the real cost to run these LLM code harnesses, and it just might make you pause and think before reaching for the LLM again. On the other hand, if the cost of hardware finally comes down, running your models locally would be a viable option, so you only have to worry about the upfront costs and the electricity bill.
With all that said, I think there's a bright future with LLM's. They are extremely good at pattern matching, and I think the real business value is in the use-cases that fits cleanly into that role. LLM's might not be the best at writing code, but they're exceptional at finding issues with your code. Case in point, OpenAI recently published a ton of fixes for root privilege exploits in the Linux kernel. I think spending our time constructing and training LLM's on how to discover issues for your particular domain will provide far more value that simply having the LLM write code for you.
comment 2w ago · link · parent
https://democrats-financialservices.house.gov/news/documents...
I'm not going to comment on the AI bubble, nor if this bill would actually have an effect, but I think this certainly will have an effect on Wall Street's behavior.
comment 4mo ago · link · parent
I had a situation where the web service's writes were slowing down to an unbearable crawl because the number of entries in the database were reaching tens of billions of entries. Thankfully, the users never experienced the slowness. The website stayed nice and fast, even though the background updates were extraordinarily slow. The issue was fixed by sharding the databases.
comment 6mo ago · link · parent
I'm also reminded of video game forums where everyone argued whether the Xbox or Playstation is better, not because they're genuinely interested in the pros and cons of each system, but because they only have an allowance to buy one of them, so they're trying to gaslight everyone and themselves into believing the one they picked is better. In the case of programming languages, there's only so much time in the day, so the people who post on this site go all-in on the programming language they picked, and will rationalize any reason they can think of to believe the language they picked is better.
comment 6mo ago · link · parent
Arena allocators are a great way to automatically manage memory allocations. You malloc a whole bunch of memory and release it all with a single free, which makes it much easier to reason about your program's memory safety.
Casey Muratori has a good video talking about this. https://www.youtube.com/watch?v=xt1KNDmOYqA
And about Zig, you have an Arena Allocator out of the box: https://zig.guide/standard-library/allocators/ . And it's not just limited to that, you have debug allocators that detects memory leaks and gives you stack traces where they occurred.
This isn't to say that Zig is great at everything. I think Rust is great for things like kernels, high-frequency trading systems, and authentication servers where memory safety and performance is paramount. But for things like video games, memory leaks and buffer overflows aren't that big of a deal, and Zig's "Good Enough" approach is great for those types of applications.
comment 6mo ago · link · parent
Your nextdoor neighbor whose misbehaving child that's permanently on their phone? Help them out.
Your friend that joked about sending death threats to someone? Scold and report him.
That girl endlessly scrolling Instagram? Get her help.
Please take a step back and examine how insane the internet is and how it's affecting our everyday lives. Political violence and mental illness is increasing, and the internet is solely to blame for this.
"If men were angels, no government would be necessary. If angels were to govern men, neither external nor internal controls on government would be necessary." Federalist 51
We're all too familiar with the latter part of that quote, but we're completely oblivious to the former. At this point, we've all but proven that the government needs to step in and regulate internet access. And unfortunately for us, they're going to do it in the most dystopian, authoritarian way possible.
I want to be on the side of freedom and strike this bill down. But when it is struck down, everyone is going to cheer, go on their merry way, and continue to let demorilization, radicalization, and mental illness infect the psyche of the everyday human being, and do nothing about it. And then the cycle will repeat itself.
At this point, I actually hope this bill passes. Not because I want it to, but because maybe then everyone will stop using the internet for everything, and some sanity will return.
comment 3y ago · link · parent
* My dayjob where I sometimes need to query thousands of XML documents.
* For fun.
Support for HTML and JSON was recently added as well, and you can also use it in your Go projects.
I figured if it's useful for me, surely someone else will find it useful as well.
8.
Xsel: A XPath 1.0 Go library/CLI that can query XML, HTML, and JSON documents(github.com ↗)
1 points · by ChrisTrenkamp · 3y ago · 2 comments