Hacker Newsnew | past | comments | ask | show | jobs | submit | James_K's commentslogin

The idea of printing out one of those documents does not conflict with this.


I think the limit of this would be creating your own allocator that works with the stacks, but you could probably stop short of that in most cases.

It's not entirely mad to do it this way, and I can see some benefits. For one, you might have multiple of these pools across the program for different data-types, which would make allocating to any one of them a cheaper operation. It is much more reference safe since you are only ever freeing stuff in a certain context and you can still never have dangling pointers. When you look at memory safe languages, they all default to this eventually. Like Rust in the advanced case will have you implementing your own allocator, lot's of games use this thing called ECS which is essentially a kind of allocator. Goose would just have it be more common.


This is roughly what I do in Rust. I use different static types for values based on how long they'll live. Temporary values get one type; cached values get another. The allocator allocates each value in a different location based on how long the value will live.


This is disastrous. The president may need to take emergency measures to suspend the convertibility of the dollar into gold.


Then they can pay the higher rate for energy during the day, and if enough people want this it will be practical to build infrastructure to support them. This issue is they want it and they don't want to pay for it.


So why are insults permitted against other professions?


There are invariably 3 solutions to all “federated” web problems:

- Email

- Semantic HTML

- Web indexing services

In this case, it's mostly indexing and a little of the other two if you want to add social features. I despite ATProto with all my soul for taking a problem with such a simple and standard solution and totally obscuring it behind hundreds of layers of JSON, faux federated services, and technical jargon, all in service of creating an inferior version of Twitter. I guess it wouldn't be as sexy to offer a web indexing service instead.


Genuinely curious, how would you build it differently? Would you stick with atproto's indexing model and try to simplify it, or would you use another approach?


You send a request to a web indexer with a page you want added to the network, it scans your page for outgoing links and sends an email to the owners of any domains who are also on the service.

One can imagine making it a little more featureful, for instance indexing OPML blogrolls which would allow you to see whom a person follows and https://microformats.org/wiki/h-entry which would allow outgoing links to be categorised (like, reply, etc) so notifications filtered. With that, it would be possible to add a front-end site imitating one of the popular social media paradigms (Reddit-style or Twitter-style being the most obvious).

If there's one genuine design decision I would give for it beyond what is basically a cobbling together of existing interfaces, it would be to charge users per page uploaded. Likely very detrimental to growing the service, but I think one of the simplest ways to weed out spam and junk. A real problem with many web services is that the receiver of the message pays for it in terms of attention, where in other mediums the sender has to pay. Given that uploading crap is basically free, that's all you get. Increasing the cost of upload would weed out those endless AI summaries and lists of affiliate links.

The issue with ATProto is that it operates on too many layers. You can see lacking in what I have described here the concept of durable authorship, but this is a property of content not how the content is distributed. Perhaps someone will invent a standard way to sign HTML documents, in which case you could base user accounts on that instead of DNS. AT enforces this centrally but it does not need to. It is walling itself off from the common and decentralised software ecosystem of the web for no good reason.


Yeah that'd be interesting to try. If you extend the endpoints and the vocabularies around RSS/OPML enough, you could likely create a fairly robust dataset replication protocol. Microformats are a decent schema basis, but you might want to build upon them as well. If you want to make the users' sites reusable as a datastore across applications, you could introduce an oauth flow to enable 3rd party writes. You might also want to add content signatures so you can verify the data authenticity from third parties (e.g. to support the equivalent of reposts).


You would repost a page by linking to it from your own. As for uploading content, that is outside of the scope of an indexer. The user hosts their data with some hosting service, or independently. I believe signatures are already handled by XHTML which allows you to add XML signatures to documents, but regular HTML is sadly lacking here thought it would not be too hard to extend (or to just use the XML serialisation of HTML5).

I think it is generally bad to implement new features like this on the part of the indexer. It should just keep track of an existing web of documents rather than creating it's own format and walled garden.


> You would repost a page by linking to it from your own.

Ah right, of course. Fair enough. I think Dave Winer is trying some similar ideas, though I haven't looked at it beyond knowing he's trying to extend RSS to support these capabilities.


We already have those capabilities. My website has reposts on it. I just link to someone else's content from my Atom feed instead of something hosted on my own site. Then I attach a https://validator.w3.org/feed/docs/atom.html#category node indicating that those are reposts.


Isn't that how it already works but with different protocols that you don't like? You (a PDS) send a request to an indexer (relay) with a page (activity) you want added to the network.


The difference is one uses W3C recommended web interfaces and the other does not. I make blog posts to my website using HTML, anyone can open them using a web browser. I can host those pages one of many static hosting services with no need for a special protocol or anything like that. AT on the other hand reïnvents this entire thing. Can you type the AT URI of a resource into the browser and have it open? I do not believe you can. So if I want to publish HTML content I now need both my regular web server and an AT PDS running on my server. There exists, as far as I'm aware, no application that can view HTML hosted on the AT network so I have to produce all of my blog posts in an agnostic format or publish them to no one, or I can use one of the services that automatically posts a link to that HTML as a BSky post. So you have all of that architecture and what it accomplishes is posting a link to content hosted elsewhere.

Why, instead of creating an indexer that works with existing formats, did they choose to create one intentionally incompatible with 99.999% of web content? Because in practice it's not a web protocol, it's not a serious thing. It's just a whole bunch of bullshit for nerds to make blog posts about that serves as the back end of a Twitter clone. It is standards proliferation. It adds nothing and fragments existing efforts. Instead of contributing to the web ecosystem, it subtracts from it. It breaks the important rules of software development, to do one thing and do it well, to use existing solutions. Everything it does is duplicated, there's a new way to sign documents, a new way to host content, a new data format, a new exchange protocol, a new way to serve documents, a new way to send notifications, etc. It's not a tenable way of doing things. If every person looking to make a web indexer created an entire separate web ecosystem, that would not be sustainable. They're clearly not intending to replace the Web, so what are they doing? It's just a complicated way to store tweets.

And the silliest part is that, if I recall correctly, they don't even have decentralised network yet since only they can issue PLC DIDs.


The W3C has been irrelevant for well over a decade, perhaps you mean the WHATWG. And why should we care about their recommendations?

For what it's worth, the W3C recommends ActivityPub (fediverse base protocol). Do you like that one or do you only like the HTML stack?


Something based on ActivityPub would be much more reasonable. I would not have nearly the same objections if it integrated with an existing ecosystem rather than carving up the already limited pool of people interested in the open web and locking a bunch of them into a different silo to the rest of us for essentially no technical advantage.


But ActivityPub works a certain way and it's different from how ATProto works. You're saying HTTP should've been a layer on top of email - how would that ever work?


Their primary goal was creating a Twitter clone, ActivityPub can do that. The federation stuff is really just a toy part of it, as you can tell from the fact that PLC DIDs are still issued from a central authority. Or they could have done it the way I suggested, with indexes of HTML pages. Both would be preferable.


Ironic that people without imagination write a page using AI.


It's selling you a product. It's spam.


Email.


I dislike when people use the term “power” to describe making code slightly shorter to type. Operator overloading is not in any meaningful sense more powerful than a language which lacks it.


You say that because you lack experience in writing programs for scientific-technical computing, where an abundance of complicated mathematical formulae are necessary.

Most programmers have seen only programs that do more data movement and comparison than actual computation, but nonetheless there are programs with abundant computations, the kind of programs that were originally written in Fortran, but nowadays they may be ported to other languages, or alternatives for them may be now written in more modern languages.

In such programs, overloaded operators do not make programs "slightly shorter to type", but they reduce the amount of text at least an order of magnitude or even much more.

The main advantage is not that you type less, but that you can read the source of some function in one page, so you can see it in its entirety, instead of having the source spread on many pages, forcing you to wander through all those pages continuously, when you try to understand what it does and whether it does it correctly.

I have written such programs, for instance which were full of long formulae where most variables were complex vectors or complex matrices (for computing some radiated electromagnetic fields with the method of boundary elements). Without the operator overloading of C++, reading them would have been extremely tedious and maintaining them would have been very error prone.

For myself, any programming language that lacks operator overloading, e.g. Java, is disqualified, because it definitely is not "powerful" enough.

Operator overloading also increases the safety of a programming language, because you can define distinct data types for each kind of physical quantity, allowing the compiler to detect and reject the invalid operations. Without operator overloading that would inflate too much the size of the source text.


> where an abundance of complicated mathematical formulae are necessary

I think what you mean to say is, a lot of linear algebra is involved. So multi-dimensional structures like matrices and vectors are expected to have linear arithmetic operators defined over them, because they're used quite a lot.

You don't need operator overloading for that. Your language should be providing them as primitive structures and extending operators over them. Think like how C has a polymorphic addition, where '+' doesn't discriminate between integers, pointers and floats.

There are a lot of problems with user-facing operator overloading, but I think Haskell is actually a really great example of how to do it sanely. At the point in which you have type-families, you can properly restrict the semantic domain of a polymorphic function but still keep it an open set. The addition operator being restricted over types belonging to the Num type-family as an example trivially allows you to use '+' for matrix addition.

https://hackage-content.haskell.org/package/matrix-0.3.6.4/d...

Now you've avoided the worst part of user-facing operator overloading (juniors creating incoherent DSLs by abusing the mechanism) while still providing the mechanism where it's useful.


I agree with you on overloading - the real word here should be "expressivity", which is defined by language constructs that could NOT be syntactic sugared into a local context. Those may occasionally be useful, though not by itself. E.g. gotos are more expressive by the above definition, yet it was largely deemed to not be a useful "power".


Certain kinds of GOTOs are indeed proven mathematically to be necessary to write certain programs, in the sense that eliminating the GOTOs can be done only by making the program more inefficient, i.e. by increasing the number of executed instructions and the amount of memory that is used.

Because of this, any decent programming language must include GOTOs, but in many modern languages they are not named GOTOs, because of the bad reputation of the word.

For instance the language Scheme does not have GOTOs, but it has mandatory tail call optimization, which means that a "tail call" is just an alternative name for "GOTO". For example, this allows the writing of a state machine in Scheme, exactly like it would be written in a language with GOTO, but using tail calls instead of GOTOs.

Other languages have labelled loops and they allow exit a.k.a. break with a label and next a.k.a. cycle a.k.a. continue with a label. Such instructions with labelled targets are just GOTOs with a bad placement of the label, which makes reading the source more tedious than with a classic GOTO.

For providing the benefits of GOTO, a restricted variant is sufficient, i.e. a GOTO that may jump only forwards and which cannot jump inside nested blocks.


With operator overloading you can provide same numeric operation interface to library types such as big integers. Sure, you can also define methods and make sure your primitive types also define those methods but now you have some confusions (like equals vs == in Java).


Maybe you've never been in a codebase that overloads the comma operator.


I think the better conclusion here is that most programming languages don't deserve Wikipedia articles. You wouldn't want one for every brand of screwdriver or kitchen appliance. Programming languages are likewise, just tools. An article restating the information on Odin's website is a net negative to anyone who reads it, as they'd be better served by visiting the website directly. A bad article should be deleted.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: