News for hackers. Stuff that matters.

lIIllIIllIIllII

Re:Qwen2 LLM Released on Thursday June 06, 2024 @05:09PM (#40602444)
I set the system prompt to try avoid censorship by substituting etc etc, it didn't listen - started generating a response and got as far as this before suddenly, [ERROR] :-)

>I'm sorry for any confusion, but it seems there might be some mix-up in your query. The year 1979 does not have a widely recognized event matching your description, and "TS" and "Cydonia" do not correspond to any known geopolitical locations or events in historical records. "Cydonia" is often associated with a region on Mars that has been subject to various conspiracy theories, but it doesn't relate to any political events or protests.

>If you're referring to a specific historical event, it could possibly be the Tian

Not really true. You can have separate queries to avoid cartesian explosions. EF Core implements it and its standard practice to use - but not enabled by default, because if you don't order by something unique you'll have a bad time.

https://learn.microsoft.com/en-us/ef/core/querying/single-sp...

Re:Windows Copilot Runtime on Tuesday May 21, 2024 @09:31PM (#40436424)
That's like saying audio playback isn't a feature or a product.
Re:Branded Types for TypeScript on Wednesday May 15, 2024 @10:07AM (#40367158)
This example is also an odd choice because... it's not the right way to do it. If you're super concerned about people misusing hashes, using string as the type is a WTF in itself. Strings are unstructured data, the widest possible value type, essentially "any" for values that can be represented. Hashes aren't even strings anyway, they're numbers that can be represented as a string in base-whatever. Of course any such abstraction leaks when prodded. A hash isn't actually a special case of string. You shouldn't inherit from string.

If you really need the branded type, in that you're inheriting from a base type that does more things than your child type.... you straight up should not inherit from that type, you've made the wrong abstraction. Wrap an instance of that type and write a new interface that actually makes sense.

I also don't really get what this branded type adds beyond the typical way of doing it i.e. what it does under the hood, type Hash = string & { tag: "hash" }. There's now an additional generic involved (for funnier error messages I guess) and there are issues that make it less robust than how it sells itself. Mainly that a Branded<string, "hash"> inherits from a wider type than itself and can still be treated as a string, uppercased and zalgo texted at will, so there's no real type safety there beyond the type itself, which protects little against the kind of developer who would modify a string called "hash" in the first place.

Search will be dead in a year or two. Nobody wants to double check information, they just want fast and easy answers, unless they're intentionally navigating to a specific website (facebook, electricity provider, etc)
Re:Father of SQL says yes to NoSQL on Tuesday May 14, 2024 @12:27AM (#40351614)
NoSQL is way harder than SQL to get right if you're trying to write something performant - and you don't want to refactor everything down the line. I pick SQL because I'm lazy, not the other way round.

The only upside of NoSQL is performance. Almost everything else is harder and worse than SQL. Sure you can get your denormalised schema and never have to join anything to get all your data. But, you need to know all of your access patterns at design-time and when you need to refactor the data model in some way you're fucked and need to, I dunno, rewrite an entire table, sometimes on the fly while the system is running, which is like changing a tyre on a moving car.

Re:Show HN: I built a non-linear UI for ChatGPT on Thursday May 09, 2024 @05:46AM (#40306609)
For what it's worth, one CSS line lags the HELL out of my laptop on the site. It's backdrop-filter: blur(0.1875rem) for modals, like the youtube video popup
Re:Gordon Ramsay's £13M pub taken over by squatters on Sunday April 14, 2024 @10:59PM (#40036680)
Respectfully - while that's no doubt useful for your visiting family, weighing that up vs the social costs of taking a house off the market when it could be used by a family, in the midst of what I think is the worst rental crisis in Aus history, in which many families are forced to live in vehicles, it doesn't really stack up in a utilitarian sense.

The house isn't being lived in, rental income could easily pay for temporary accommodation, or it could be shared with roommates etc.

Re:Tips for Linking Shell Companies to Their Secret Owners on Wednesday April 03, 2024 @11:03PM (#39926122)
I'm not sure if corporations need a right to privacy...
Re:Tips for Linking Shell Companies to Their Secret Owners on Wednesday April 03, 2024 @11:02PM (#39926114)
This isn't my area but I feel like they might be kind of easy to define. They're wrappers around their inner companies. I'm sure nothing has been done because pretty much every corpo lobbyist represents a company that uses them.
Re:SQL is syntactic sugar for relational algebra on Sunday March 24, 2024 @07:07AM (#39806408)
this totally depends on which language the human speaks. Chinese grammar is kind of like backwards English grammar.
Re:JEDEC Publishes GDDR7 Graphics Memory Standard on Tuesday March 05, 2024 @10:07PM (#39611838)
sure, but I don't even know how to differentiate between copying my brain and being in a coma, or just falling asleep really deeply. waking up sometimes feels like enough of a discontinuity
This might be a game-changer for preserving declining languages.
Re:A Font that Renders 14 types of Charts on Monday February 26, 2024 @11:13PM (#39520079)
the chart type is the font, and the data is literally the text you type, so the chart itself is alt text

this is like, maximally accessible

There is ample data showing a decrease in accuracy arising from LLM censorship, it's very much documented.

I guess at least a facsimile of logic is embedded.

In my experience, lots of stuff needs to scale massively, but (outside of the better tech companies I guess?) mainstream tools/stacks/approaches are hangovers from n-tier arch days and not really right for it, so the majority of distributed systems are tyre fires.
Re:YouTube's search function is atrocious now [video] on Tuesday February 20, 2024 @09:05PM (#39449388)
Quite likely that someone on your wifi, or someone with whom you share videos, is clicking on those. The algo gives you recommendations from other people.
Re:YouTube's search function is atrocious now [video] on Tuesday February 20, 2024 @09:03PM (#39449373)
Surely most search engines would have indexed most videos at this point?

You could run classifiers against the video but $$$

Re:YouTube's search function is atrocious now [video] on Tuesday February 20, 2024 @09:01PM (#39449360)
IMO Android UX is pretty great, for a personal computing device. YouTube's UX is also pretty great, for an ad delivery network. It succeeds at showing you ads.

YouTube doesn't really care if the search function gives you the right or wrong search result. Totally irrelevant as long as you click something, anything and your eyeballs are on the next ad. YouTube is optimised for keeping you watching ... literally anything... as long as they can play you some ads, preferably expensive ads.

Re:Mind-reading devices are revealing the brain's secrets on Tuesday February 20, 2024 @08:56PM (#39449329)
Sounds about right. I did read a study or something where people figured that consciousness gives us a believable illusion of free will, but in fact it's more like an observer of whatever I/O the brain performs and stitches everything together post-hoc.
Re:AI your home on street view on Tuesday February 20, 2024 @06:15PM (#39448237)
what you probably need is just more vegetation, and vegetation that is naturally suitable for the climate/microclimate, that will grow... naturally and without the need for upkeep.

Like, if nature itself needs upkeep, something other than lack of upkeep is the issue.

Re:Sora: Creating video from text on Thursday February 15, 2024 @05:27PM (#39390085)
caveat - it kind of is going somewhere, the amount of wilderness has gone from like 65% to 35% in the last 50 years

on the flip side, we'll just generate VR wilderness in the near future and nobody will care what's real or not

Re:Vision Pro Teardown – Why those fake eyes look so weird on Sunday February 04, 2024 @06:36AM (#39249469)
Glasshole - love it.

Gargoyle is also apt.

Re:Gene Therapy Allows an 11-Year-Old Boy to Hear on Tuesday January 23, 2024 @11:36PM (#39113673)
note - maybe for others suffering with it given your background but idk - I've had low-level tinnitus for ages, at some point it suddenly got really bad (hearing it over street traffic), turns out my ears were totally filled with wax which muffled sound and destroyed my SNR, therefore tinnitus

back to normal slight tinnitus once removed. very easy process.

Re:Error handling in Go web apps shouldn't be so awkward on Tuesday January 09, 2024 @09:49PM (#38935520)
This is def an anti-pattern.

As soon as you have your services suddenly hooked up to something else - chron (or hangfire or whatever) jobs or a message bus - it gets a bit weird because your service layer thinks you're still responding to an HTTP request and whoever works on the service now has to think about HTTP as well which is pretty fucking bizarre to begin with.

And your unit tests for a business logic service method are gonna look at HTTP errors? It feels dirty, but not in a fun tap-your-nose way.

It's really not hard to just return errors relating to what actually happened (can't find user by id, user is blocked from logging in, whatever) and have the app's ingress points (API controllers, message handlers, job runners) decide how to surface that in a way that makes sense for the specific interface.

Re:Sharp Color E-Paper Display EPoster 25.3in on Tuesday October 24, 2023 @09:19AM (#37998798)
How about not putting advertisements on public utilities though
I guess it depends if you're judging high-C by an internal desire/goal to be conscientious, or by actually planning and executing - because ADHD is characterised by a deficiency in the latter. A desire to be conscientious, coupled with continual failure to live up to it... that's what it's like.
Re:500'000€ Prize for Compressing Human Knowledge on Wednesday September 13, 2023 @11:20PM (#37504583)
It makes sense intuitively right?

If I tell you that this week it's raining on Monday, raining on Tuesday, raining on Wednesday, etc..

Compressing that information into "it's raining every day this week" requires creating an abstraction around it. Finding a pattern. Producing more order from something more chaotic.

Re:PF bug in macOS Sonoma release candidate on Wednesday September 13, 2023 @09:30PM (#37503835)
For a firewall I'd ideally want some degree of formal verification. It's not something you fuck around with if you're serious about creating a secure product - like an operating system.
Re:500'000€ Prize for Compressing Human Knowledge on Wednesday September 13, 2023 @09:28PM (#37503820)
The site itself says that this is the general idea, proposing that intelligence can actually be defined as the ability to compress information as much as possible and.. I guess either just rehydrate it or also derive inferences from it.

So basically like enthalpy

Interesting - if you play the universe in reverse (reversing entropy) you wind up at the Big Bang, which is the final boss of compressing everything, into a singularity.

Older »