2,427 karma · joined Jun 15, 2023 (3y ago) · 1,641 submissions
comment 1y ago · link · parent
I just think that more websites that sell tons of ads and whose administrators are more motivated by gathering eyeballs than building a community is not the solution to our problems with big tech
comment 1y ago · link · parent
comment 1y ago · link · parent
To me, we should be less concerned with how a platform is moderated and more concerned with the fact that the most successful, influential, and devious publishing empire in human history is essentially the personal property of one man.
comment 1y ago · link · parent
Facebook is completely different from cable news. Nothing in history has encompassed marshall mcluhan's idea of the global village quite like modern social media has. The grip that Facebook has on our central nervous system is unparalleled and we talk about it in terms of "fairness" and "representing viewpoints" and not "biologically, neurologically, how is this technology fundamentally changing what it means to be a human being".
I don't know how to pass legislation to do so, but I believe it's in our best interests, as a society, if the maximum natural size of a website is like, 100k users, MAX. With the diversity of communities available, fairness of moderation will no longer be as important because you have more alternatives than the billionaire consensus factory
comment 1y ago · link · parent
I did no such thing. async is already a keyword in F#, I'm just saying they should drop the brackets and remove the required return statement.
> In language design there are always tradeoffs but I'm unable to see how your suggestions would improve the language in the general case or even in your specific case
It would make the language easier to read, for one, and would reduce the amount of specialized syntax needed for specific features. It would preserve the original ML-style syntax for an extremely common operation and not force users into wrapping anything upstream of an async call in a computation block, which is the ugliest syntax feature of F#
> Computation expressions are a generalized concept which are there to add the exact kind of syntactic sugar that you're after
I understand that, and my argument is they failed to do so. The syntax looks bad. They could keep it for all I care, but they should add even more sugar on top to make it not look so bad.
comment 1y ago · link · parent
let foo id = async {
let! bar = getBar id
return bar
}
I would prefer let async foo id =
let! bar = getBar id
bar
or even something like let async foo id =
getBar! id
So that computation blocks don't feel like you're switching to an entirely different language. Just wrap the ugliness in the same syntactic sugar that C# does. As it is, C# can achieve arrow syntax with async methods more elegantly than F# can: async Task<string> foo(int id) => await getBar(id);
This, to me, is also part of a larger problem of F# introducing unique keywords for specific language functions instead of reusing keywords, like member this.Foo = ...
and member val Foo = ...comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
var post = await _postService.getById(id);
in F# the equivalent is basically let getPostById id = async {
let! post = blogPostService.getPostById id
return post
}
let post = getPostById 42 |> Async.RunSynchronously
But not really, because RunSynchronously isn't the same thing as `await`. Realistically if you wanted to handle the result of an async computation you would need to create continuations. F# isn't the only ML-family language to suffer from this; Ocaml does as well. It always seemed to me like the pattern with any asynchronous operations in F# is to either:1. Do all logic in ML-syntax, then pass data into a computation block and handle I/O operations as the last part of your function, then return unit OR
2. Return a C#-style Task<> and handle all I/O in C#
Either way, ML-style languages don't seem like they're designed for the kind of commercial CRUD-style applications that 90% of us find ourselves paid to do.