Better HN
topnewbestaskshowjobs
Log inSign up

exceptione

3,880 karma · joined Apr 2, 2013 (13y ago) · 1,322 submissions

ff6600
Submissions

comment 4mo ago · link · parent

  > Intent understanding: GPT-5.6 can better infer the user’s underlying goal and intended level of work without you specifying every step. Continue to state important constraints, approval boundaries, and success criteria explicitly.
I guess this has been achieved by training on user's chat history?

comment 5mo ago · link · parent

Canals were used for transport by boats/ships. My guess would be that railings would be a hindrance for loading/unloading.

comment 5mo ago · link · parent

thx!

comment 5mo ago · link · parent

Thanks, that would indeed be helpful.

  > (It's marijn, not merijn.)
oeps, sry!

185.

Wordgard Release 0.1(marijnhaverbeke.nl ↗)

2 points · by exceptione · 5mo ago · discuss

comment 5mo ago · link · parent

For people who have dealt with react, this part might give some insight into that topic (https://wordgard.net/docs/prosemirror/#h-transactions-and-ch...)? Nevertheless, it would be good if this could be addressed in the docs.

I am not sure if this makes things easier for react interop, but this piece might be of interest too:

  > One of the biggest mistake blunders in ProseMirror is that the editor view does not get access to the transaction objects when updating, just the state. Wordgard does not repeat this mistake, and makes updates take transactions, not just a new state.

  > This means that things like the DOM update logic and UI plugins can precisely observe what happened, and handle changes in a efficient and more effective way. The weird unexpected DOM redraws that are still a thing in ProseMirror should not occur. Only the precise DOM structure affected by the new transactions will be updated.


Anyways, it is great to see Merijn still going strong with his free work. Anyone needing interactive rich text on the web won't find anything better than his brain childs.

comment 5mo ago · link · parent

I think most people would love to the know the 'why'. This page discusses differences with prosemirror and is the closest I got to that question: (https://wordgard.net/docs/prosemirror/).

One thing to note is that there is not an upgrade path. Many concepts are shared with prosemirror, but it seems that switching means doing quite some work (correct me if I am wrong). Obsidian is based on Code Mirror so I guess they won't be switching, but tiptap.dev and others do.

@marijn, maybe you could address why wordgard is worth the switching cost?

EDIT: I see many points are addressed in Marijn's personal blog. I submitted (https://marijnhaverbeke.nl/blog/wordgard-0.1.html) to HN for better context.

comment 5mo ago · link · parent

Possibly, but I think what we wish for is a language with a nominal type system that lets you switch to structural typing when needed.

Luckily, F# has type providers, which lets the compiler construct nominal types based on the structure of real data (like json, xml or any format you want), saving you from the effort of building wrapper types by hand.

comment 5mo ago · link · parent

Yeah, in your example the structure is sufficiently dissimilar to a string for TypeScript not to confuse them for each other. However, if you also have an identity provider returning UserInfo objects in the form of {'domain':'example.com', 'user':'john-doe'}, you might not like it that now any email address is a valid UserInfo object. On the type level in TS, you cannot tell those types apart. But I guess you figured that out already.

comment 5mo ago · link · parent

Javascript doesn't have structs. The idea is that you have data on one hand and you have type witness about that data on the other hand. Type witness is something for the type system. But here you encounter the limits of structural typing versus nominal typing, because structural typing isn't able to witness that directly.

In sufficiently strong nominal type systems, I can hide the constructor for an EmailAddress type (as in: nobody can just construct an EmailAddress type). In Haskell speak, I can then export a function parseEmailAddress = rawString :: string -> EmailAddress. The function parseEmailAddress is the only place that has access to the constructor. Which means that the only way to turn a string into an EmailAddress is by calling parseEmailAddress.

Note that at runtime EmailAddress is just a string. The boundaries live in the type system, not on the value level. A structural typing system (as in TypeScript) does not enable that, it forces you to turn EmailAddress into something else than just a string.

Are you confusing Email vs EmailAddress? I think that in many cases people would prefer EmailAddress to be represented as a dumb string at runtime. But if you don't, you will easily find other examples where you have 2 structurally similar types, that you don't want to mix up.

comment 5mo ago · link · parent

It is nice the author mentioned F#, because if you want to target the browser (or any JavaScript runtime), you can do from F# directly from fable (https://fable.io). This allows you to program by default in a type safe manner without having to play tricks to circumvent the limits of structural typing.

comment 5mo ago · link · parent

I think your friend might have used portableapps.com, they offer many types of browsers . These programs are packaged to install under a restricted account, without requiring admin rights.

comment 5mo ago · link · parent

The logical conclusion is to shutdown Meta, Youtube, TikTok, Twitter to name the biggest offenders. And why on earth would algorithmic manipulation, brain washing and exploitation of adults be allowed via the same platforms?

I am not disagreeing with you, but the conversation to be had is far, far wider than "think of the children!". Part of any deal would have to be: privacy of citizens is not a business model. But then you are facing the full might of Corp Inc, including their legislative powers.

comment 5mo ago · link · parent

Possibly stupid question after skimming: libvirt provides a plethora of networking options, but some networking types require a physical ethernet adapter, so you are out of luck when you have wifi only. Would this make it possible to present libvirt an ethernet adapter that is actually backed by wifi?

comment 5mo ago · link · parent

Why do you think they don't want to do it? I find that a weird statement, and your given reasons don't make sense to me. This is one of their core programs, and as part of that have taken over some IP via espionage programs. China is actively trying to build one for quite some time now.

  > people overstate complexity of ASmL machines. They are not impossible to make or use, specialist work sure but its possible. The only reason why no one does it is: 1) IP laws, 2) Costs
Citation needed, if these were the real roadblocks China would have had the machines by now already. Even with all the parts at hands (don't forget: from a total of 5100 suppliers) the Chinese couldn't assemble one. It is complex with a lot of know-how involved.

The real reasons are: enormous complexity, lots of original research involved, deeply specialized supply chains. Recreating that takes lots of time and money. Even if you cut corners and steal IP. So that leaves China with 'time' as the real impediment. And who knows, AI will be a boost to get to that goal?

comment 5mo ago · link · parent

I thought the time frame of 10 years is the most recent forecast.

comment 5mo ago · link · parent

The comparison with cars and cellphones falls short for ASML machines. The former categories involved western companies transferring IP to Chinese counterparts. So far, the Chinese have succeeded in stealing IP from ASML, but this is complexity in its own category. Also, the whole supply chain is part of the solution. That is a lot to copy.

But I agree that, given enough time, China should be able to. But Volvo en Tesla handing over IP themselves, and phone makers letting China produce and assemble phones (maybe not as extensive these days anymore) is something different.

EDIT: I mentioned Saab when I meant Volvo. Not sure if people downvoted based on that, I have no info on Saab so consider that as a mistake.

comment 5mo ago · link · parent

  > If you visit a website you should ... see the website. See its content. Be able to read the article whose page you are attempting to visit. Showing a “subscribe to our newsletter” or “accept our fucking cookies” dickover to someone trying to read an article on the web makes no more sense than sending out an email newsletter that only contains a link to read the newsletter on a webpage. A webpage should show the webpage. An email should show the email. I should not have to explain this.
To continue the thread of obvious things back to the non-meta level, would for the given example the following idea qualify as obvious? `Downrank websites that exhibit user hostile patterns`

I hope so. I would love if search engines would do that.

comment 5mo ago · link · parent

Also, Anthropic will maintain and use data in user identified form if the law does not prohibit such privacy intrusion. At least this is a valid interpretation imho; note the absence of "explicitly" as adverb for "permitted":

  «Where data is de-identified, Anthropic will maintain and use this information in its de-identified form, and will not attempt to re-identify such information, except as permitted by law.»

comment 5mo ago · link · parent

I think you got the `900*9` wrong if you talk about experienced downtime. If you calculate discrete minutes

(900*4,5+100*1)/1000 = 4,15 min

(Unless you manage to inform the user since how long the website has been down already.)

This could be made more accurate if we calculate it over seconds, which would drive the experienced downtime even lower!

comment 5mo ago · link · parent

  > It's getting better, and Linux does have the advantage of having some powerful primitives to exploit, but the desktop suites come from a totally different world,

When opening the printer configuration page in the KDE configuration panel, I was pleasantly surprised to see it's process runs wrapped inside a bwrap session. Cups is a bit of old and dangerous; I'm glad they sealed that off inside a sandbox. If you ask me, I would make this approach the standard for any software. The configuration panel for fonts doesn't need network access, so at least `bwrap --unshare-net`

comment 5mo ago · link · parent

> doing their due diligence (and more)

Do you know how? This sounds like an unpractical high amount of time consuming task.

comment 5mo ago · link · parent

  > And what if upstream is problematic? 
That would be the same problem for official packages. Unless I am mistaken, the difference between maintainers for the official repos versus AUR, is that the former is a trusted/vetted person. But afaik, they also just package upstream software. I doubt they will read through tons of commits to see if there might be anything nefarious there.

It would be better if software would be forced to have something like a very advanced manifest file, with requested permissions. Malware has to eventually communicate with endpoints, so a declared whitelist of endpoints should definitely be part of such a manifest. Some wrapper program could set up a namespaces that allows just what is requested. Any software that requires `endpoints = [.*]` would make it obvious to the user that it is a really dangerous piece of software. Your code editor should not ship like that.

The first thing I can think of in this direction is flatpak, but that is really coarse grained, with defaults that are very lax. Also flatpak-like solutions do not expose an api to the wrapped application, which is both a pro and a con (a con when you consider installing application plugins requiring further permissions).

comment 6mo ago · link · parent

1. Neoliberal doctrine: government=waste, company=efficient, let's privatize.

2. The ruling party for over a decade is the VVD, a Republican Party with training wheels, with Tea Party like spinoffs in varying degrees over rabid idiocy. The VVD heavily depend on a small network of big donors and as such are strongly nudged to source the policy advice from those networks. The IT backbone of those government agencies are thus run by big corporate IT shops, which is also politically convenient as you can shrug of responsibility when it turns out there is some light between the theory and the practice of the neoliberal doctrine.

comment 6mo ago · link · parent

True. But the reaction also depends on how much money the leverage is worth and how much Solvinity has to offer here.

comment 6mo ago · link · parent

Indeed. The current crop doesn't have an idea for what they hoard their billions, it's just...emptiness. I propose we explain the tech's attachment to Accelerationism as a profound boredom and lack of purpose. "What does it mean to be human"--they don't value that question. Peter Thiel got interviewed a month or two ago, and he could not be brought to say that he sees value in preserving humanity. He would rather turn himself into a robotic contraption to extend his life.

When power fears death, some strange things happens.

EDIT: link to the interview with Thiel <https://xcancel.com/rcbregman/status/2036113528126394834#m>

comment 6mo ago · link · parent

  > much more compelling than those found in the various "manifestos" which come out of Silicon Valley.
Whenever I hear these "tech overlords", I am always baffled at the total lack of culture, the absence of taste, the empty visions and the implied complete subjugation of humans to ideals of "efficiency" or "quick and easy". Maybe they would have been more interesting people if they had been brought up in beautiful towns and cities, if they had lived in a rich cultural environment instead of being raised as consumer of cheap and flashy pop culture. Maybe we should tax bad architecture, it gives me headaches but others might incur heavier damage.

As an aside, at least Trump is drawn to the grandeur of high culture from historical times, but he also doesn't understand a jota about aesthetics, and so the White House gets turned into a tacky gypsy-style abomination with one dollar ornaments.

comment 6mo ago · link · parent

  > why not? i'm sure they can jump into the hustle.
Not so quick. Critical difference is the relationship between enterprises and the state. In China, the state owns the enterprise, in one way or another. High costs of memory is a threat to the established Chinese electronics manufacturers. The Chinese state can optimize returns at a higher level than the one some petty chip manufacturer operates at, especially if doing so means it could gain coercive geopolitical strength, aka blackmailing.
1
678
45