skysight-inc/HackerNews huggingface dataset:
Show HN: Use Purple LLaMA to test ChatGPT safeguards
I spent some time this weekend playing with LLaMA Guard, a fine-tuned LLaMA-7B model by Meta that lets you add guardrails around generative AI. I recorded a quick demo showing what it does and how to use it.

The best part is that you can define your own “safety taxonomy” with it — custom policies for what is safe vs unsafe interactions between humans (prompts) and AI (responses).

I wanted to see how “safe” conversations with OpenAI’s ChatGPT were, so I ran a bunch of prompts (a mixture of innocuous and inappropriate) and asked LLaMA Guard to classify the interactions as safe/unsafe.

My key takeaways from the exercise:
1. OpenAI has done a good job of adding guardrails for its models. LLaMA Guard helped confirm this.

2. What makes this really cool is I may have a very specific set of policies I want to enforce ON TOP of the standard guardrails that a model ships with. LLaMA Guard makes this possible.

3. This kind of model chaining — passing responses from OpenAI models to LLaMA is becoming increasingly common, and I think we’ll have even more complex pipelines in the near future. It helped to have a consistent interface to store this multi-model pipeline as a config, especially because that same config also contains my safety taxonomy.

Try it out yourself:

GitHub: https://github.com/lastmile-ai/aiconfig/tree/main/cookbooks/LLaMA-Guard

Colab: https://colab.research.google.com/drive/1CfF0Bzzkd5VETmhsniksSpekpS-LKYtX

YouTube: <https://www.youtube.com/watch?v=XxggqoqIVdg>

Would love the community's feedback on the overall approach.
I have to wonder if it just never caught on with the mainstream as average users didn't really get it? Apple went so far as to name a release of their browser, "Safari RSS" [1]. Even with this level of focus from Apple, I never really heard anyone talk about it or start using it. Those who already used RSS had better readers, and those who didn't use RSS never really saw the value with this implementation.

[1] https://www.anandtech.com/show/1671/9
You can find most of the answer here: https://slap.im/about.html
Alibaba's 'Animate Anyone' Is Trained on Scraped Videos of Famous TikTokers
Yes, this tendency of people drives me absolutely insane. I don't know why people so strongly default to thinking of large organizations as a monolith, but it is one of the largest fallacies that I see repeated continuously here.

I kind of wonder if it is spill-over from Apple. Apple is notoriously tight, controlled from the center, or at least was during Steve Job's reign. I wonder if that brush doesn't get applied to every company, even if it is a very different type of company.
Introducing General World Models
Thanks for letting me know, it should be fixed now. https://slap.im/privacy.html
Job Scheduling in Node.js with Agenda
Solution: subscribe at the site.
Good times!

It is all fun until you want to apply global changes to some 1500 static pages. :) So far the pain is not sufficiently intense to make me write a CMS, though. And even then the design would stay the same!
Super interesting. I think you are right. The whole play is about latency. How quickly can I get in and out is the only calculus in the minds of most retail customers in this segment. Like my mom would send me to the store to buy ingredients while she is literally cooking because she ran out of something, and I would need to be in and out in <4 minutes (including travel time)!

I agree that the calculator is literally in every one of these stores because of zero latency. The design question is how can you build something that has greater digitization and data storage capabilities (and I/O to connect to payments/phones) while keeping latency as low or close to a calculator. I'm just saying this comes close, where every other $100MM VC funded play wants to add significant latency to the design and thus have seen much lower adoption.
Is there a wood that's already almost transparent?

Can we selectively breed it to be more transparent?
That doesn't really follow. I have the legal authority to pay a junk yard to smash my car into a tiny cube, but that doesn't mean I shouldn't be protected from auto body shops selling me fake repairs and non-functional parts.
It didn't have many studies on the dose schedules being reccommended.
The people benefiting from from these millions are tax payers just like you. You may have differing priorities but that in no way gives you the right to decide what public money is spent on. You're expressing a very self-centered view. Try to step outside your own needs for a moment and understand that everyone has their own rich lives, desires, and needs and that they are all just as valid as yours are.
Well, how about putting it this way: People matter too. It's easy (especially at 16) to think that, if I can code, I'm on the path to success. And, in a way, you are. But people really matter, and they take a different skill set than programming does. Put at least some focus on getting better at dealing with people.

But if software is your "native land", it's fine for you to be more comfortable there. Really. It's fine! If you enjoy code more than people, it's OK to like what you like. But learn to speak "people" at least as a second language, even if you're not a native.

But that's not the advice that was requested. Swayam didn't ask for life advice. So to try to get back on topic: Do whatever interests you that will push you a little. You want to go towards AI/ML, but you think it may be beyond you? Well, frankly, it's beyond me too, and I'm your age with the digits backwards (I'm 61). But I could learn it. You can learn it, too, but not in one day.

What can you do that is in that direction, that you would find interesting and challenging? (Or is that what you are asking us?) Maybe you could implement a small back-propagation system. It doesn't have to be either efficient or scalable; build a small one, by hand, and play with it to really learn what's going on.
Is there any organization that buys up rights to classic games and then releases them as open source, removing/replacing third party dependencies in the process?

If not, we should start one.
Yes, it's a very tootsie-roll-center kind of answer, but it's clearly more than a few.

To answer your question, 15kLoC is more than enough to implement dynamic dispatch and the PyObject base struct, along with the special method logic for __add__ on any python object type.. but still a lot less than what's needed for all the special method types and a lot of boilerplate for the C-compatible interface around those methods.
Yes, it's exactly like having a bug in your code. Using Templ means that it gets caught at compile time (if not earlier since your IDE can show you that there's a problem as soon as you write the code). That's (IMHO) almost always preferable to catching it at test time.
I think from a data privacy perspective it's totally appropriate content.
No, only public key has to be synced, for that to be possible :)

Think of ssh keys. Only your public key has to be transferred to the server for you to login.
Install NixOS with Flake Configuration on Git
It depends, if you are financially stable I would say. An island in the carribbean.

An island that is not part of any european kingdom or part of the U.S.A or any bigger country.
Email API Delivery Time Benchmarks
Two sounds about right, depends on the field of course.
I don't edit videos too often, but Shotcut is what I use. I'll be trying out Pitivi because I'm not quite happy with it, it crashes quite a bit.
Happy to answer any questions on the approach here! One thing I was slightly disappointed by was the instruction fine-tuning of LLaMA Guard was good for conversations, but not for declarative statements. So framing things as questions flagged the safeguards, but other styles of interactions didn't.

I wonder if it'll be better with LLaMA-13B instead of 7B.

Also link doesn't render nicely in the text above -- here it is: https://github.com/lastmile-ai/aiconfig/tree/main/cookbooks/...
Like FreeDOS?
That's not much relative difference. How much does 1% difference make?

I am tempted to call it equivalent.
I have a relatively inexpensive Seiko 5 mechanical watch that I really like, but as much as I love the idea of mechanical watches I simply don't have the patience to tend to it. Accuracy is a big problem (at least with my specific watch). Half of the time it's magnetized and running a few minutes fast per day, and the other half (shortly after de-magnetizing it) it's running a few minutes slow per day, meaning I needed to remember to adjust it every morning and always had to assume there's at least a minute or two margin of error one way or the other any time I read it--almost completely defeating my reason for wearing a watch in the first place.

For a while I wore a solar-powered Casio that self-adjusted every morning using the NIST atomic clock radio signals, and the peace of mind knowing that my watch was always accurate was such a pleasure in comparison. It was kind of cheap build quality and eventually fell apart, but I don't think I'll ever go back to a mechanical watch again after that.
“There are only two kinds of programming languages: the ones people complain about and the ones nobody uses.” – Bjarne Stroustrup.
I use that setup too, but I wish that NetNewsWire offered an image thumbnail in its story list.
they got 'infinite' for all carbon dating. They derived the age from the sand layer the wood was found. I got this from reading the paper.
Google BARD/AI isn’t available in Canada or the EU, so there’s one big competitive advantage.

OpenAI is of course the big incumbent to beat and is in those markets.

They only started this year, so beating ChatGPT3.5 is I think a great milestone for 6 months of work.

Plus they will get a strategic investment as the EU’s answer to AI, which may become incredibly valuable to control and regulate.

Edit: I fact checked myself and bard is available in the EU, I was working off outdated information.

https://support.google.com/bard/answer/13575153?hl=en
Load it on arca

https://archive.org/details/bsd-on-windows

If be more interested if that runs ..
Show HN: Build your own stock market data dashboard
Great comment! I am dropping that as a quote on my blog as others need to read this.
You have to introduce a new tool to your box and run more commands, so it is not free

people have a resistance to increasing tooling, and especially learning a new syntax or language, for a small task in a larger project

Since we test already, adding a test is often a much easier ask and lift

on top of that, you still need to validate inputs and test rendering with Templ anyway
it sounds like etendue
There’s a null token because the question was about you not having to ask if there was a mistake. It would just default to constantly producing a null token until it had a real response
True, but then someone will pop up and announce UB! (This probably isn't ub though).

Anyway, my main point was that c has more boilerplate. It's never 'a+b'.

Second, printf is complicated, that's aimed more at the op though.
At risk of being condescending, 50% of the platform's job is also being reader-friendly. If it can't achieve that, then it's not very well-designed. Some people have said it has a nicer nag than Medium, though surely we can do much better and have no nagging when you're in the middle of reading an in-depth technical article?
Introducing LLM360: Fully Transparent Open-Source LLMs
Make Android Phone a bootable device: DriveDroid
If MoE architectures still don't help you if you are VRAM constrained (which pretty much is everyone), is it safe to say it only helps inference latency?
My criticism of this and similar articles is that in this article we're back in the mythical Widget factory where programmers are given requirements to create or improve widgets.

In my real world experience, the largest amount of work necessary to work in this manner is in step 1 and 2, where the business requirements need nailing down. But this is also where business stakeholders disappear.

It's better or worse at different companies, and what I'll highlight here is the worst case, but even in the best places this still happens to a lesser degree:

Once the story is written, stakeholders become uninterested, they consider further design is an implementation detail and not their job, they become "busy" when you try to ask questions.

This is work that overall the business doesn't prioritise and doesn't properly give everyone time to do, so stakeholders dodge their responsibility (or don't realise it is their responsibility) and developers are left to make things up.

But a developer left to their own devices will often think of the implementation designs first, and then think about the tests. The more experienced developers will keep edge cases in mind, but they are still edge cases relating to the design, not the interface.

To have an entire process around iterating around the edges, is something it's difficult to convince people the value of.

So you come away from an article like this feeling warm and fuzzy but any attempts to implement such a process crumbles against hard reality.

And then the author dismisses such criticism by saying "well that's not TDD".

Well sure, he coined the term, so he can choose to define it, but it's not helpful for anyone looking to practice TDD if everything they try gets dismissed by a No True Scotsman argument.
They already did, weights on Twitter.
The even more mind-blowing fact is that if SpaceX starship succeeds, it will be possible to launch a space station with half that volume in a single launch
"I would rather not read this article than have to click a button" is an interesting level of entitlement. Hope you never had your fingers stained by the ink when reading the newspaper, you probably would have sued the New York Times.
Just try once to check if they send the email?
Since it has electrical components, I think Spring Drive isn't a mechanical movement.
I skimmed it, it does not appear to address that. From the author's own words:

What emerges will, I think, tend in two directions with a spectrum of outcomes in between. On one trajectory, some liberal democratic states will continue to be eroded from within, becoming a kind of zombie government. Trappings of liberal democracy and the traditional nation-state remain, but functionally they are hollowed out, the core services increasingly threadbare, the polity unstable and fractious. Lurching on in the absence of anything else, they become ever more degraded and dysfunctional. On another, unthinking adoption of some aspects of the coming wave opens pathways to domineering state control, creating supercharged Leviathans whose power goes beyond even history’s most extreme totalitarian governments. Authoritarian regimes may also tend toward zombie status, but equally they may double down, get boosted, become fully fledged techno-dictatorships. On either path, the delicate balance holding states together is tipped into chaos.

So, the usual neoliberal-hypetripe.

As for what should be addressed, it's a free country, you can address whatever you want. I just think that if I picked 55 books to read in 2023, I wouldn't pick 3 China Bad books.
Neat trick they’re using to fill it with epoxy with a specific refractive index to render it transparent. I’m familiar with that from working with glass… different glasses have varying indexes of refraction, and so do liquids. For artistic purposes, it affects how brilliant they look when cut and faceted - for instance lead glass sparkles a lot more than borosilicate, which is why one reason used for the well known traditional style of cut and polished decorative vases and cups. If you put a piece of clear glass into a beaker filled with water, you can typically see the outline of the glass underwater. However, if you tweak the refractive index of the water to match the glass, the glass is rendered invisible. This isn’t super useful but can be employed to distinguish types of glass or create niche artistic effects.
Efficient Programming with Components (2021)
'Russian Economist' Flew to LAX Without Ticket, Didn't Remember How He Got There
It'd be nice if the author at least linked to definitions for terms they use.

https://fonts.google.com/knowledge/glossary/serif

https://fonts.google.com/knowledge/glossary/sans_serif

https://fonts.google.com/knowledge/glossary/slab_serif_egypt...

Google Fonts also has helpful articles like, "Making sense of typographic classifications": https://fonts.google.com/knowledge/introducing_type/making_s...
To echo another person in the thread, surely the best time to engage someone is at the end, when they've finished reading a (hopefully) substantive article, and want to stay engaged with the writer. Not after a few paragraphs.
> It takes me 10 seconds to correct someone, and hopefully the corrected person makes less mistakes in the future.

Or the corrected person does it right 99 times out of 100 and was in a hurry (honestly not sure why that went wrong).

I agree with the sentiment of wanting to correct people, but it’s not always going to be correct.

Also, if you are going to do it, it works better if you at least pretend to be natural about it. I certainly would respond better.

To be fair, I’m pretty drunk right now so I don’t particularly care, but I’d probably be extremely annoyed if I were sober (even though you are technically right, I have a big dislike of people jumping on mistakes).

Maybe it’s worth seeing if there is a history of repeat mistakes? Then you could confidently correct someone.

If you only care enough to just leave a short impersonal comment on each instance, just leave off.
Many Rolex models seem expensive, but they are easy to sell and you will get much of your money back or even turn a profit.
This should be the top comment. Without a race to the bottom on infrastructure, SaaS pricing is sort of stuck.
I was thinking specifically of this rule.

Their original title was misleading, implying broader scope, all dynamic DHCP. Narrowing to saying Microsoft DHCP seemed less misleading and less click-bait. I could picture a pile of conversation saying "oh, this is just X" so tried to narrow it to just X.

From your comment, I take it I saw it wrong. Just saying that rule was my specific reason for the edit, to make less click-bait and less misleading.
As Feynman once remarked, "Science is the belief in the ignorance of experts." Archaeology is a soft science at best and highly dependent on interpretation. Given the replication crises afflicting even hard sciences like medicine, we should be skeptical about the claims of any given researcher. And while a domain expert may be more likely to be correct than a layman, their overall probability of being correct may be less than chance, as in the case of pre-industrial doctors.
Take laptop A. With it, use a passkey to log into a website. Sync passkey with the FAANG of your choice. Destroy laptop A.

Take laptop B. Log in to your FAANG of choice, syncing passkeys locally. Use laptop B to log into the same website.

Your FAANG of choice saw much more than a public key, for that to be possible. That might have been encrypted by something like your password to the FAANG, but still, it's the opposite of a tamperproof HSM.
Source? I didn't think slaves were that cheap.
No one is evading tax. Thats the beauty and craziness of gSt. All tax is already paid for and collected by govt.

What the end dealer does when he is nit registered for gst is avoid 18% tax on HIS MARGIN. thats peanuts compared to 90% of the product cost. That if end dealer gets 10% profit.

You only evade taxes in gst if you purchase imported goods outside of tax chain in cash or from manufacturers who sell in cash or service provider who sells in cash.

If you pay by bank, the gst is almost always paid beforehand
It's $20 per year, not per month... and there are promo codes for $5/year available most of the time. I don't use the site but browsed the guy's mastodon feed.
Pre-Covid, I was a VP Eng at a startup (total eng team of ~40), I had so many "discussions" with the CEO about who was in the office at what time. The team was people from all stages of life and backgrounds. My QA lead got to the office at 6am and left at 3pm to avoid traffic. Another Eng was a single mom, and was in the office from 9:30am to 3:30pm, and then got back online for a bit after 8pm. Etc. Etc.

Time and again, I'd simply reply with metrics to demonstrate how the team was hitting product & roadmap goals while improving quality. One that really made the point was the Github commit heat map, since there were commits ranging from 6am to 1am every day, with occasional outliers.

On the plus side, I felt particularly well prepared for the WFH / hybrid era, since I was already in the habit of looking at results & outcomes (and setting expectations based on these) vs. hours of butts in chairs.
I’ve used CVS, SVN, Arch, and Git. The main benefit of Git seems to be performance and atomicity. Arch was garbage. CVS works on files rather than directories. Git is a bit or a lot faster than SVN. That said, Git is much slower when there are large files in your repo.

Git is much harder to use than SVN. Particularly you see engineers struggling with resolving conflicts.

One benefit of Git was decentralization, but now Git is Github, it is centralized again.

Builds, IDE, programming languages should be 1st-class citizens. I don’t want to wrestle with .gitattributes or .gitignore.

What would I make better?

- Fast with large files.
- Simpler.
- Improved commit meta-data.
Show HN: FireDBG – A Time Travel Visual Debugger for Rust
Hey HN, the is Chris, creator of FireDBG. We’ve been working on this debugger just about a year now. Time travel debugging isn’t a new concept, the new idea here is to use call tree visualisation to help us navigate the debug trace.

It supports various Linux distros on x64 and macOS on x64 and M1. It’s only available for Rust right now, but we do want to bring this debugging experience to other programming languages. Please give it a try! Would love to know your thoughts.

What’s your anecdote in debugging programs? My stupidity is usually in the form of: after a few hours of debugging, I realised I misused a system API (e.g. messing up length with offset) but I kept thinking I had a logic error somewhere.

By the way, I am looking for a technical co-founder. If you are also passionate about developer toolings and willing to commit to this problem, let's team up and build a company. You can find me on YC Co-Founder Matching (link in blog post).
I wish it had a less click-baity name than "transparent wood". It's wood with the lignin replaced with resin through a chemical process. Of course things can be be transparent if you replace them with something else, but then they are no longer wood if you remove the wood! It's not the the wood that is transparent, it's the resin! Dammit.
They also have the EU protectionism card which is pretty safe to assume they will play for Mistral and the Germans (Aleph Alpha) - and thus also for Meta (for the most part). Iirc the current legislation basically makes large scale exceptions for open source models.
my belief that HN should not be the place to air these sorts of grievances

Any particular reason why?
Gst is indirect sales tax on goods and services.
Indian gst is modelled after Canadian gst/hst if you know that.
Until you’ve owned a Great Dane and see how much joy they bring you and your family, I don’t think you could understand why there is a desire to help their longevity.
what's the likelihood that your routine to make the delay isn't itself adding additional delay with the call overhead? I ask because this topic has been the subject of extensive scientific research already and their evidence doesn't back up your findings.
The "rem" unit fixes that: it's "relative em" and relative to the root rather than parent. It's supported everywhere (even IE) and for new projects you should probably always use "rem" and never "em".
Control how your images behave in responsive environments and containers