Readit News logoReadit News
sweeneyrod commented on The Reluctant Prophet of Effective Altruism   newyorker.com/magazine/20... · Posted by u/mitchbob
rbanffy · 4 years ago
> more accessible and fun than deworming

It makes sense. We know how to deworm. That is an execution problem. The ones I find more interesting are in planning stages, such as how to we fix or supersede capitalism, how do we mitigate climate change, how do we persuade people in power those things need to be done before the problem is so big it becomes intractable.

sweeneyrod · 4 years ago
Actually it's very controversial if we should spend marginal resources on deworming. It may have very large economic benefits, but the evidence isn't clear (https://unherd.com/2020/08/what-worms-can-teach-us-about-the... has some details).
sweeneyrod commented on Real World OCaml – 2nd Edition (2021)   dev.realworldocaml.org/... · Posted by u/_benj
pkilgore · 4 years ago
I'm trying not to make this just about dune. Dune is curtainly BETTER than, say Make n friend to newcomers.

But there's a market for programming languages that OCaml is objectively losing. Can we really not agree that the most popular/recommended build tool requiring you to write a lisp to do basic config probably isn't helping draw new user into the fold?

I doesn't have to be cargo. But the more it rhymes with that degree of user experience, the more the "masses" will discover the things that make ocaml great.

sweeneyrod · 4 years ago
I agree that dune is worse in many important ways than the build systems of languages like Rust and Go (where they were developed at the same time as the language, rather than 20 years later). But dune config files aren't lisp. They're s-expressions, which have the same syntax as lisp but are just static data like json/yaml/toml (and once you get used to them, I think most people prefer them to those).
sweeneyrod commented on I analyzed 20k recommendations made by Jim Cramer during the last 5 years   old.reddit.com/r/options/... · Posted by u/lxm
xmprt · 4 years ago
How is that not the literal definition of insider information and trading on non-public information? I suppose they will claim that they make their predictions based on publicly attainable information and therefore anyone else could have made the same pick even before the announce it. But in that case aren't they admitting that releasing the information manipulates the market?
sweeneyrod · 4 years ago
It's fine to trade when you know something that the general public doesn't. Indeed that's really the only time you should trade: you presumably want to make a profit, and society wants relevant information to be incorporated into prices. The thing that's not fine is trading on secret information that belongs to someone else. Insider trading is about theft, not fairness. https://www.bloomberg.com/opinion/articles/2015-04-01/anothe...
sweeneyrod commented on Features of a dream programming language   dev.to/redbar0n/features-... · Posted by u/redbar0n
ianbicking · 4 years ago
This one is kind of interesting:

"Params: Function parameters must be named, but no need to repeat yourself, if the argument is named the same as the parameter (i.e. keyword arguments can be omitted). Inspired by JS object params, and Ruby."

I've grown fairly fond of JS implicitly named object parameters, and I always liked Smalltalk's named(-ish) parameters, and this seems like an interesting compromise. I'm not actually sure how Ruby works in this case? I thought its parameters were fairly normal. Are there other languages that do this?

But in the case of one-parameter functions this seems unnecessary, the function name often makes it clear exactly what the first parameter is. And if you are going to support Subject-Verb-Object phrasing (as suggested later) then the Subject is another implicit parameter that probably doesn't need naming.

Maybe another approach is that all functions take one unnamed argument, and there are structs with named members for any case when that single argument needs to contain more than one value. Which starts to feel like JS/TypeScript. The static typing to support this in TypeScript feels really complex to me (it's unclear if the language described uses static types).

sweeneyrod · 4 years ago
I believe Ruby and OCaml have both anonymous positional arguments and keyword arguments with punning (i.e. `f ~arg` expands to `f ~arg:arg` in OCaml).
sweeneyrod commented on Why asynchronous Rust doesn't work   eta.st/2021/03/08/async-r... · Posted by u/tannhaeuser
scotty79 · 4 years ago
From my very limited expeirience with Rust I noticed that it becomes way more easy and laid back language when you just skip using references and lifetimes nearly completely and just wrap everything in Rc<>. Then you are getting expeirience of fairly high level language with a lot of very cool constructs and features like exhaustive pattern matching and value types with a lot of auto-derived functionality.

Does Rc<> help this much with async as well?

sweeneyrod · 4 years ago
You can get those cool features in languages such as OCaml/F#/Scala/Haskell, and then you don't have to worry about managing memory because you have a GC.
sweeneyrod commented on What's the best SaaS starter kit?    · Posted by u/ochysp
srb24 · 4 years ago
"I'm pretty open for the language" - with the greatest respect you should checkout the relevant cost per hour for freelance devs for various languages - I think you will fimd that PHP generally wins (regardless of its faults) once you start growing hiring staff you may find you've tripled your wage bill if you use something "cool" but not "common" eg Scala, Erlang, Julia etc etc
sweeneyrod · 4 years ago
It is quite possible that an Erlang dev billing 3x more than a PHP dev will be more than 3x as productive.
sweeneyrod commented on Code Review from the Command Line   blog.jez.io/cli-code-revi... · Posted by u/winkywooster
sweeneyrod · 4 years ago
There is an interesting take on command-line code review from Jane Street here https://blog.janestreet.com/putting-the-i-back-in-ide-toward...
sweeneyrod commented on Kubernetes is our generation's Multics   oilshell.org/blog/2021/07... · Posted by u/genericlemon24
honkycat · 5 years ago
People love to pooh-pooh "complicated" things like unit tests, type systems, Kubernetes, GraphQL, etc. Things that are solving a specific problem for LARGE SCALE ENTERPRISE users.

I will quote myself here: A problem does not cease to exist just because you decided to ignore it.

Without Kubernetes, you still need to:

- Install software onto your machines

- Start services

- Configure your virtual machines to listen on specific ports

- have a load balancer directing traffic to and watching the health of those ports

- a system to re-start processes when they exit

- something to take the logs of your systems and ship them to a centralized place so you can analyze them.

- A place to store secrets and provide those secrets to your services.

- A system to replace outdated services with newer versions ( for either security updates, or feature updates ).

- A system to direct traffic to allow your services to communicate with one another. ( Service discovery )

- A way to add additional instances to a running service and tell the load balancer about them

- A way to remove instances when they are no longer needed due to decreased load.

So sure, you don't need Kubernetes at an enterprise organization! Just write all of that yourself! Great use of your time, instead of concentrating on writing features that will make your organization more money.

sweeneyrod · 5 years ago
Unit tests and "type systems" have very little in common with Kubernetes and GraphQL.
sweeneyrod commented on Etsy to buy fashion reseller Depop for $1.63B   reuters.com/business/etsy... · Posted by u/pseudolus
FlyingSaucer · 5 years ago
Depop isn't alone in this, Vinted[1] has a current valuation of $4.5B and is hugely popular in Belgium, Netherlands and France (maybe more places, but those i can definitely say).

In both platforms there is influencer-heavy marketing. Many fashion influencers(i really dislike this term, but it is the nomenclature) sell clothes that they wore very little in Instagram advertisements. This is a great business model for them, people follow them more tightly because they are actually able to buy for (mostly) affordable prices some of the clothes they see in pictures and they also get some additional under-the-radar cash.

[1] : https://www.vinted.com/

sweeneyrod · 5 years ago
It's interesting that they have a much higher valuation (and from some cursory research, moderately more users) than Depop, despite (AFAIK) being completely obscure in the US/UK.
sweeneyrod commented on Drunk Post: Things I've Learned as a Sr Engineer   old.reddit.com/r/Experien... · Posted by u/tosh
MaxBarraclough · 5 years ago
It goes too far though. The virtue of simplicity needs to be balanced against the virtue of making proper use of advanced language features.

A first-year student is unlikely to understand C++ template metaprogramming, or just about any Haskell code, but that's not to say they should always be avoided in production code.

> The best code is no code at all

This can be interpreted as advice to avoid the 'inner-platform effect' anti-pattern. Good advice, but personally I'd rather express it in terms of the inner-platform effect.

sweeneyrod · 5 years ago
There are various universities that teach Haskell or similar languages in first year.

u/sweeneyrod

KarmaCake day558June 9, 2015View Original