News for hackers. Stuff that matters.

jcora

Of all mathematicians who would qualify as unsung, von Neumann is the last...
Re:Running BGP in large-scale data centers on Tuesday October 05, 2021 @01:47AM (#28755864)
It seems like it is coupled in Facebook:)
Re:Rotations with quaternions on Tuesday June 01, 2021 @04:30PM (#27360872)
Sounds snarky but completely correct. Parent should look for a more diverse set of examples for vector spaces. In fact sounds like a good linear algebra course would be a priority over group theory
Re:Functional programming in C++ (2012) on Tuesday December 29, 2020 @04:44AM (#25568248)
It's the other way around. State (and side effects) are explicit in pure programs, and implicit in impure programs.
No lol it's not possible to learn any math subject in depth in an afternoon, unless you mean "get a surface overview that you'll forget most things about in a couple of weeks". Proper foundations for non-Euclidean geometry are at least a one-semestre undergrad class level of work, which will take you at least several weeks if you do _only that_
Re:Monads and GATs in Nightly Rust on Friday December 11, 2020 @09:05AM (#25385863)
Just learn haskell
Re:Monads and GATs in Nightly Rust on Friday December 11, 2020 @09:05AM (#25385859)
Do note this won't teach you actual category theory (and shouldn't)
No. You can write a compiler for any language in Scheme, but it's disingenuous to say that Scheme has that language's features. There are many languages with way more powerful features than Scheme if you're comparing type systems.
This is not a practical language with dependent types tho lol
Can lisps place arbitrary code in types and formally verify complex properties of stateful systems--all in the same language? Doubt it. Lisp isn't the epitome of power.
Re:Seven deadly sins of talking about “types” (2014) on Saturday December 14, 2019 @10:11AM (#21789826)
Actually with dependent types you totally can encode proofs that your logic is correct. But I don't really see that trickling down into mainstream programming anytime soon.
Re:Aldous Huxley Foresaw America’s Pill-Popping Addiction on Thursday December 05, 2019 @05:46AM (#21711349)
This is a completely meaningless comparison. Even things that behave waaay more similar than cocaine and coffee in terms of brain chemistry can have even more disparate effects. And I was talking about the effects.
Re:Aldous Huxley Foresaw America’s Pill-Popping Addiction on Thursday December 05, 2019 @05:43AM (#21711339)
I'll let you figure out the difference between 'exceptional and prolific writer' and for example 'stressed out social/office worker who others depend on':)
Re:Aldous Huxley Foresaw America’s Pill-Popping Addiction on Tuesday December 03, 2019 @06:44AM (#21691589)
Yeah absolutely not. You can certainly drink and work, just as it's possible to drive drunk without killing someone.

These isolated cases without incident don't really matter in the context of society-wide taboo, however.

Coffee and cocaine are worlds apart. Most people don't have jobs that would work with a coke addiction. Freud was exceptional and I think he did most of his influential work not under the influence anyway.

Re:It's Way Too Easy to Get a .gov Domain Name on Wednesday November 27, 2019 @07:31AM (#21647307)
Is moldbug your mayor/ceo?
Re:Fibery – yet another collaboration tool on Tuesday November 26, 2019 @09:54PM (#21644876)
He's being sarcastic.

"but I truly believe the internet is going to change the way we do business."

Re:Cryptoqueen: A woman scammed the world, then vanished on Sunday November 24, 2019 @09:11AM (#21620519)
What kind of people? Just gullible or something more specific?
Re:My years working on black programs on Wednesday November 20, 2019 @08:58AM (#21583903)
I don't see how you could actually come up with new stuff in PLT without a very heavy math background, specifically in logic. I mean it's not impossible just extremely unlikely.
Re:The Value in Go’s Simplicity on Sunday November 17, 2019 @04:47AM (#21557231)
I don't know man. I feel like there are places I know more than Rob Pike almost certainly. Like, I don't know, most of functional programming. I seriously doubt he knows what indexed monads are better than me.

So, at the point they were creating Go, I think it's perfectly reasonable they had even less exposure to fp, and didn't actually know about these better solutions.

Re:Nine-year-old child to graduate university on Friday November 15, 2019 @05:28PM (#21549422)
> One big problem with the plan, which a lot of people don't realize, is that your typical university math degree isn't that much more challenging than doing well in high school math.

I think this is very US-specific. Here in Europe there's definitely a huge difference. You enroll in a pure math-only 5 year degree, and are talking about topology in your third semester already. That might be a specific thing only my analysis prof does, but quite a lot of time is devoted to neatly delineating different levels of structure you're equipping a space with, proving things with as less structure as possible or at least discussing it. You are expected to juggle tricks on a totally different level, which takes a lot more qualitatively different practice than in HS.

When I talk to people who take math classes in the US it's usually not on that level of engagement until the graduate courses. Maybe it depends on their university, in smaller European countries you often have just like one main math program that is then high-intensity.

Re:An Intern's Experience with Rust on Tuesday October 22, 2019 @12:47PM (#21325806)
I use almost no lambdas in my functional code. I don't understand why they're thought to be paragons of FP in non-pure language communities. Maybe because there are no operator sections, currying, and the syntax is more verbose so it's not as easy to define helpers.
Re:Kim Peek on Sunday October 13, 2019 @07:18AM (#21239793)
This could be a case where cognitive functions were highly uncorrelated. For example he could've had enormous working memory but extremely low spacial intelligence. In most people these are highly correlated and so IQ can be an informative number but in his case, it might carry less information.
Re:Nietzsche’s Eternal Return on Wednesday October 09, 2019 @01:55PM (#21205878)
It is always a good idea to read a philosopher through Deleuze's words. If there's one philosopher whose main sticht was distorting others in productive ways, it's Deleuze. It is a pretty up-front distortion ("taking them from behind and giving them a bastard child"), but usually providing an incredibly useful new perspective
Re:What Is Good About Haskell? on Thursday October 03, 2019 @04:56PM (#21152108)
Or go all in and actually expose yourself to an entirely different programming paradigm, there is so much more to "FP" that you can only find in Haskell and beyond.
Re:The Myth of Commoditized Excellence on Thursday October 03, 2019 @04:43AM (#21144888)
> Now I present it as a geek thing that is of no relevance to the general public.

As you should. Linux shit DOESN'T work, for a defintion of work 99% of us use. It ate away so much of my time, with the various distros, until I realized how much simpler it is on Windows.

But this is clearly not a property of the particular notation, but lambda-calculus itself (and the way beta-reduction is defined). If you were to make it a constant-time operation in length it literally wouldn't be lambda-calculus.

Which actually makes me curious: what sort of change did you have in mind?

Re:Think in Math, Write in Code on Saturday July 20, 2019 @10:45AM (#20486036)
This isn't about modelling rather a programming technique, but check out Idris for its dependent typing. It lets you encode state machines in types, which means your programs literally will not typecheck if you try for example to withdraw money from an unauthorized ATM, or candy from an empty store. You can make verified network protocols and drivers like this.

Older »