skysight-inc/HackerNews huggingface dataset:
What do you use unit tests for, other than verifying implementation details?

Perhaps we have a difference in definition. To me, a unit test for a function such as "parse_news_email" would explore variations in parameters and states. Because of combinatorial explosion, that often means at least some white-box testing. I'm not going to generate random subjects and senders, and received-froms, I'm going to target based on internal details. Are we doing smart things with the message ID hostname? Then what happens if two messages come in with the same message ID but from different relays? The objective is that the unit test wrings out the implementation details, and the caller's unit test doesn't need to exhaustively test them.

This white-box texting may require directly poking at or mocking internal functions or at least abusing how they're called. For example, parsing the news item might entail pulling up and modifying conversation thread cache entries or state. For some of the tests you may need hand-crafted cache state, it's not feasible to create unique states for each parameter combination you're testing, and testing a combination will pollute the state for the following combinations. Or maybe the function depends upon an external resource you can't beat to death with a million identical requests. So the least-bad, simplest solution may be to freeze or back out part of the normal state update in the unit test. Which would usually involve directly invoking the internal routines.

Can this lead to fragile, false-positve to the point of useless tests? You betcha. That's where entertaining two contrary viewpoints is needed :) Use experience and good judgement about pros and cons in the particular situation.
Well… there is no National Syringe Association to pay for a lobby group.
Thanks!

> qmlcachegen produces only bytecode, not compiled code.

Ho gotta. But I still wonder what's the additional performance boost qmlsc will give. I should test this some day.

Btw, are you on some social site? X? Discord? Would love to say in touch.
(9660)
One benefit that I can think of for inlined code is the ability to "step" through each time step/tick/whatever and debug the state at each step of the way.

And one drawback I can think of is that when there are more than something like ten variables finding a particular variable's value in an IDE debugger gets pretty difficult. It would be at this point that I would use "watches", at least in the case of Jetbrains's IDEs.

But then yeah you can also just log each step in a custom way verifying the key values are correct which is what I am doing as we speak.
How would they accumulate savings if they're living below poverty level conditions? I'd guess lots of them living in very cramped shared living spaces, but even then?
I guess you’re asking about the block part — it’s a minor syntactic convenience and not the main point of the comment. It avoids the word function/lambda or def-block and related syntactic inconvenience like parentheses around and at the end and interference with ASI (when applicable).
Here's the link where he discusses functional programming style:

https://web.archive.org/web/20170116040923/http://gamasutra....

He does not say that that his email is completely outdated - he just says that calling pure functions is exempt from the inlining rule.

He's not off writing pure FP now. His approach is still deeply pragmatic. In the link above he discusses degrees of function purity. "Pure FP" has a whole different connotation - where whole programs are written in that constrained style.
While Squey does not claim to be as versatile as Paraview (it is not designed to visualize 3D mesh data for example) it is on the other hand focused on conducting iterative analyses over massive columnar datasets to improve its understanding and find weak signals and anomalies through the use of parallel coordinates, data series and scatter plots.
Show HN: RepoGPT – Open-Source AI Assistant for Your GitHub Repositories
Hey HN,

I built RepoGPT, an open-source AI tool that lets you interact with your GitHub repos using natural language.

Ask it things like:

How is auth implemented?
List API endpoints.
What are the key dependencies?
RepoGPT aims to make navigating large codebases easier with AI.

Check it out: https://github.com/mbarinov/repogpt

You'll need Node.js, pnpm, Docker (PostgreSQL), and an OpenAI API key. Full setup in the README.

Feedback and contributions are welcome!

Also, I'm looking for remote roles in EU time zones.

Thanks!
No…not all typos are the same.

The nature of typo (messing up the name of the patent troll) is what made the reply very important.
Introducing Zirr AI, the cutting-edge solution transforming healthcare with AI-powered medical scribes. Zirr AI automates medical documentation, streamlines clinical workflows, and reduces administrative burdens, allowing healthcare professionals to focus more on patient care. By eliminating time-consuming data entry, Zirr AI enhances efficiency and accuracy across medical practices, helping shape the future of healthcare. With Zirr AI, healthcare is smarter, faster, and more patient-focused.
Damm Microsoft its crazy company
theoretically, compressing gas is energyless. Ie. you get back exactly the same amount of energy when decompressing as you got when compressing, so you should be able to do it with no loss.

Practically, that's fairly far from true for today's technology. Gas is so cheap that we're happy to waste a bunch of energy to make the plant cheaper.
Is this a guest writer? It doesn’t have the Wolfram tone at all. It describes a universe that isn’t centered on Stephen Wolfram, for example.
It's the same thing as firing older employees to replace them with younger ones that will ask for a lower salary. The goal is to reduce salary expenses, but the way that happens is discriminatory.
> At a national level, there are no single keys, there aren’t even major factors.

It is possible to stare so hard at all the trees that you miss the forest, that’s true. But if you take a step back and look at the big picture it’s not that complicated. Adam Smith had most of it right in 1776.
It's the same as saying all whites are racist. Both are wrong.
> then later I had to fix a bug

How much later? Is it possible that by delivering sooner your team was able to gain insight and/or provide value sooner? That matters!
<input type="text" name="contracts.0.expenses.priority.A.employees.0.annualSalary"/>

What an amazing way of handling state!

Or the part where you use data tags for something that should be done with JSON...
Quick mental exercise on this.

If someone posed this question to you in an interview and you used these principles, would you get the job?

Probably not.
ELI5: I’m not familiar with the Google Drive API, but does this mean that even if I try to build my own tool as an individual, I have to go through all these steps? I'm asking because, with many API services, you have to declare an app during setup, even if it’s just for personal use.
It's hard to find, sorry. The contact info is here: https://www.hs-augsburg.de/searchwing/de/standorte/

Best to contact: philipp.borgers@searchwing.org
This should perhaps have [2016] in the title.
“What happens if we lose the generators?” is not a hard question to come up with. I have a great imagination and a long career built on, among other things, asking pointed questions. I would have asked that very same question, as well as “how unlikely?” as the next one.
So hopeful for the future! Congrats to you and the team!
I switched to a SSG for the ease of editing! Offline, version-controlled editing with regular expressions, linters and other text-based magic. When you maintain a few hundred pages for a living, this is a game changer.

For the average user though, you are 100% correct. You need a UI that they will understand. Explaining git to them is not a good idea.
Japanese isn't that hard to write though. Especially kana. yoou can learn to prounouce those in a week with flashcards (I did so in high school) and honesly, making your own flashcards are good writing practice. Even Kanji is surprisingly structured in how you write the strokes after you do a few hundred.

Now, reading kanji... that's where the pain begins.
makemkv itself is also tremendously useful.

Got some inconvenient to work with BD or DVD? Just dump it into a mkv file with makemkv, and now it is convenient to work with.
I don’t think you can say this is universally known in ‘game dev’. In fact just last week I stumbled using the UI in a game that let me enter a name for something, which it then displayed in uppercase.

Game UI is the place I’d expect to most likely come across horrific abuses of localization precisely because game UI is such a cobbled together layer of hacks on hacks.
I converted a 60-year-old tractor to electric [video]
Australia Speaks App
You are actively advocating for the death of people. This must be deleted by the OPs ASAP. What is even going on.
you can try outscale.ai (disclaimer: i'm the founder). if you like, we can work on providing you an api
Heh, similar issue once, only no battery backup and the main breaker would trip instantly. So, we had power, but it wasn't coming back up. After an expensive discovery that the issue wasn't on our side, the power company had to get into the junction box and discover that the wire had melted to the metal. We were 'this close' to losing everything due to a fire. Especially because once the metal cooled down enough, the power could come back on for a few hours.
That's exactly what I try to do. I think it's an unpopular opinion though, because there are no strict rules that can be applied, unlike with pure ideologies. You have to go by feel and make continuous adjustments, and there's no way to know if you did the right thing or not, because not only do different human minds have different limits, but different challenges don't tax every human mind to the same proportional extent.

I get the impressions that programmers don't like ambiguity in general, let alone in things they have to confront in real life.
I know you meant this sarcastically. BUT, when traveling, my phone has a free 3g, unlimited data plan. So, you run into these problems even in modern society.
It’s nice to live in a world with no crime, right?

There are plenty of countries like this.
> That database can be as simple and easy to host/backup/manage as a simple sqlite3 file and would still be more efficient than a git repo as a storage backend.

With git you will have the latest version of the file in the filesystem, that must be more efficient than retrieving it from sqlite3, mustn't it?
you'd be surprised. It really comes down to how tightly you couple yourself to engine features.

It can be as easy as copy/pasting your code or so annoying that a fresh re-write is faster.
> It's basically intel's only selling point in the homelab/home server space

In the homelab/home server space I always thought the OOB management provided by AMT/vPro is probably the biggest selling point. Manageability, especially OOB, is a huge deal for a lab/server. Anyone who used AMD's DASH knows why vPro is so far ahead here.
I've built a RAG app. now what?
i've built an advanced RAG app which works on top of your Google Drive. can help you query your documents in near real-time with a hybrid search functionality. but i see that many companies are working on similar systems. what could be some good use-cases to differentiate our solution? where we can potentially build some moat in long term
Yeah,I was going to point out that a software block is unlikely to help against bad-usb stuff that infects the USb firmware?
Python is absolutely typed. By default, it's really dynamic, though.
Some people say it to mean that. But another perspective is that there can be racist structures which do not sit in any one individual. So you can be personally non-racist but somewhat trapped in such structures. If you go against the grain, you can risk life-and-limb (hey, Godwin!) or in a less extreme setting, socially ostracized.
when you have a monetary incentive, this quickly falls apart. Either you need to focus on what people will pay for or what companies will pay you to do for them. That's sort of why I'm eternally stuck between keeping on top of engine knowledge (even though I have no plans to use those engines for my own game one day) while toying around with a Vulkan renderer here and there.

Graphics programming was already hard to hire into, and I'm not even convinced there's more than a few dozen legitimate positions out there in these times.
Demand Elasticity vs. Inelasticity: What's the Difference?
EUV lithography? Probably has had a bigger impact on AI today than Hopfield networks and Boltzmann machines combined. And also: it’s actually physics.
You can’t notice decline in quality when the quality is already so bad that any change feels like an improvement while still being bad.
That needs more use! It needs to be an easy to use locale on Linux, and KDE needs to respect the locale which version 6 still doesn't!
This could be implemented via Delay-Torelant Networking protocols.

https://en.wikipedia.org/wiki/Delay-tolerant_networking
I have worked with many developers and I have seen them follow two distinct paths when encountering complex code.

There's one camp that wants to use abstractions and names, and there's another (in my experience, smaller) camp which prefers to have as few abstractions as possible, and "every gritty detail visible".

I think both strategies have advantages and disadvantages. The group that likes abstractions can "ignore parts of the code" quickly, which potentially makes them "search" faster. If there's a bug that needs fixing, or a new feature that needs to be added, they will reach the part of the code that will need modifications faster.

The detail-oriented people can take a bit longer to identify the code that needs modification, but they also tend to be able to make those modifications faster. They also tend to be be great "spelunkers". They seem to have a "bigger cache", so to speak. But it is not infinite. They will eventually not be able to hold all the complexity in their heads, just like the first group. It will just take a bit longer.

I am firmly on the first group and that is how I write my code. I have been fortunate enough to encounter enough people from the other group to know not to diss their code immediately, and to appreciate it for its merits. When working in a team with both kinds of personalities one has to make compromises ("please remove all of these 1-line functions, Jonathan will hate them", and "could you split this 3k lines function into 2 or 3 smaller ones, for easier review?").
Earth's oldest continental crust is disintegrating
I'm really happy to see people _Make Qt Great Again_. This was my first framework I've ever worked as a professional, and it was really good. Moreover I'm a really big fan of natively written windows/linux/mac apps (as opposed to something that will launch a fully fledged browser and consume ~500MB at start).

It's really depressing how we all strive to have everything on the web, in the cloud, etc., but have nothing on our own. I still tend to write quick applications in PySide (free Qt for Python) that stay in my tray, behave very well, are very quick, and occupy about 60MB instead.
How people don't get bored of this same exact thread in every single one of these posts is beyond me.

But also as someone who does fullstack in a pretty much even 50/50 split, this is such a tired meme by this point seemingly from people who just refuse to actually sit down and think about the FE ecosystem for longer than 3 seconds and end up parroting this same talking point.

You could make a similarly dramatic post about the backend world. There you're even fighting which programming language you want to pick. PHP, Ruby, Go, Elixir/Erlang, C#? What about the recent mess with ElasticSearch and Redis? Where and how do you host your backend? Which DB do you use and why? Mongo, anyone?

At this point in the FE framework world, you've got 3 very stable players that have been there for a decade. Angular, React and Vue. And sure, they've each gone through some sort of reworks in the past, but nobody's forcing you to pin your dependencies `@latest`, you can pretty much always keep trucking along with whatever version you were on. We've got a huge app still running along on Vue 2 (not even 2.7 which backports the very nice Composition API) and we see no reason to bump versions to 3. I've even had some nightmare scenarios trying to update Rails and Laravel in the past that dwarf any problems I ever encountered in the frontend world.

Also, vanilla JS, HTML and CSS still exist and work just fine if you're building some small toy thing, but you'll quickly realize why these frameworks exist in the first place (or you'll do the dumb thing of building your own as some do) if you're doing anything more complex than a brochure website.

And the tooling has only gotten simpler if anything with Vite. Want to start a new frontend project? It's literally just `npm create vite@latest`, and you get a nice TUI with which you get to fully customize what you want and don't want. The README even comes with a nice little list of commands for you to run, and hosting can be done literally anywhere where you can deploy the `dist/` folder to, just like the "good" old days.

For people who always claim superiority for being the genius backenders they are, they sure seem to be having a lot of trouble with something that they will themselves say any coding monkey coming out of a bootcamp can do with relatively few problems.
>I also want to add, making a game-engine is easy compared to making a game. Why? Because all the things to you need are well known. You need a 2d renderer (UI), a 3d renderer (assuming you need 3d), image loaders, model loaders, sound players, music players, keyboard input, joypad input, entity systems.

That's also a benfit for if you want to break into the industry. There's a ton of gameplay positions, but a lot less people who want to work with the tooling or the tech art or sound engineering. So that's another thing to keep in mind if you are choosing a direction.

I say no matter what you choose though, you stick with it. chasing two rabbits and all that.
Surely that's logic/maths where accepting the axioms means that the conclusion has to be accepted? Philosophy tends to be far less rigorous and can have very dubious steps so that there's often arguments where you don't accept the conclusion despite accepting the axioms.

e.g. https://en.wikipedia.org/wiki/G%C3%B6del%27s_ontological_pro...
Open source distributed, versioned backups with encryption and deduplication
I do not understand “… is in culture X” same as “all X are …”
You wouldn’t need to cite specific scientific papers when explaining common knowledge and the very basic laws of nature.
For me, the title of the "Most Polarizing (Luxury) Watch Brand" would go to Richard Mille.
I think the general point stands though. While nothing is perfectly secure, having small and understandable components that are fully audited should allow a high level of safety

If a network stack on a modern computer is too dangerous, then use a modem (silly example: apt install minimodem) and an aux cable from the one computer's speaker to the other's mic jack, or a serial connection (not very familiar with those, can't say how complex the driver is there) or something similarly basic that you can audit a memory-safe implementation of
I’ve been very interested in forming a union lately, this is just another straw on the camel’s back.

The US Tech Workers site seems to be full of reasons why it is necessary but it cannot be a US movement alone, all tech workers need to have solidarity so these companies can’t shift production to another country in the event of a strike.

My search for an organization solely focused on *tech workers* and protecting our trade was fruitless — is there any such organization?

If this all sounds interesting to you let’s talk, hn.droop582 @ passmail.net
my confusion is why it's their requirements that need to get met, not say, the readers' requirements.
There are like 220 hiragana/katakana. You can't learn those in a week.

Reading kanji is easy, the problem is looking them up. Jisho has a terrible kanji recognition engine. The one from sljfaq.org works amazingly well, but it is not a dictionary so you have to ugh, copy every kanji by hand, making the process take forever for each word.
Rather longwinded personal intro, followed by

due to the war, my grandma was allowed to become a dentist without actually going to medical school!

YAY! What a horror story.
>> that there can be racist structures which do not sit in any one individual. So you can be personally non-racist

This is exactly what I understand under “racist culture”, certainly not “all indians are racist”
I chose the second option and I am really happy for it. I already had a server for my Nextcloud instance and adding one more Nginx reverse proxy to it was essentially free.

I didn't even use a framework and chose to just use libraries and implement the features only if I need them. Probably it took more than just using a framework but it's pretty minimal and I know all the parts of my toolchain. And I learned much more than I could learn if I used a framework.
That doesn't seem likely. If there was nothing happening, then how could you determine one instant from another - without any change there can be no concept of time.
You can do this in C++, too, but the syntax is a little uglier.
It's not clear to me that we have "made sand think like a human" (yet).
A free and open internet shouldn't come at the expense of privacy
Run Linux Containers on FreeBSD 14 with Podman • Gyptazy.com – The DevOps Geek
In practice there's always a trade off between getting some result out and published and rigorously exploring every avenue of optimisation in research. Sometimes you have to say 'this is good enough and long enough already'.
India is a lot more than Hindu.
I think you missed the point. It's not the developer's convenience. It's the readers.

Each blog post is going to get written once, but read (hopefully) thousands of times. Why are we optimising the writing experience and not the reading experience?
“Lenat argues that we just don't have the data needed to reach common sense through these newer methods. Common sense isn't written down. It's not on the Internet. It's in our heads. And that’s why he continues to work on Cyc.”

“At one point, Lenat remembers, it suggested he could win the game by changing the rules. But each morning, Lenat would rejigger the system, pushing Eurisko away from the ridiculous and toward the practical. In other words, he would lend the machine a little common sense.”

Really enjoyed this 2016 article.

For safety-critical applications that use black-box ML models, I feel like a rules-engine paired with a knowledge graph needs to kinda sandwich the ML black box —- to “prompt engineer” the input and ensure the output aligns with common sense and safety standards.

Edit: clarity
I thought it was L Sammenden or something.
> However, having people of similar cultural/linguistic backgrounds helps a lot with communication, both inter-personal and for business.

It helps on communication, definitely - but it is a detriment against "fresh ideas" or when testing out new products.
I don't think that tools like ReaR (Relax and Recover) would agree with retiring ISOs..
Everyone on Blind says this all day, and thats basically an Indian social network