TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

God writes Haskell

115 pointsby Ivoahover 1 year ago

31 comments

woolionover 1 year ago
With respect to the theological view of the question; this is always painful to me.— I am bewildered.— I had no intention to write atheistically. But I own that I cannot see, as plainly as others do, & as I should wish to do, evidence of design & beneficence on all sides of us. There seems to me too much misery in the Haskell world. I cannot persuade myself that a beneficent & omnipotent God would have designedly created the Haskell with recursive data structure yet leave the maximal size of tuples to arbitrary implementation details, have a restrictive typing system that would not include dependent types, or force the hand of the programmer to use the bang operator to manage memory manually to avoid consequences of laziness. Not believing this, I see no necessity in the belief that the Haskell was expressly designed.
评论 #37419603 未加载
评论 #37429264 未加载
misja111over 1 year ago
I would like to add that just like in our universe, in Haskell entropy only ever increases and never goes down. I.E., add more functionality to your program and the complexity will go up. This is true for all programming languages of course, but in my limited experience larger Haskell programs seem to become exponentially more complex.
评论 #37419222 未加载
评论 #37418154 未加载
评论 #37422806 未加载
评论 #37418418 未加载
评论 #37416353 未加载
评论 #37418586 未加载
评论 #37416451 未加载
trompover 1 year ago
&gt; Haskell beginners often use lists instead of arrays. You can’t do random access in a linked list, but only access the first element and then the rest of the list. The real world also doesn’t allow you random access, you are limited by the speed of light and have to go from one location to the next.<p>You don&#x27;t need arrays for random access though. Haskell trees give you access to 2^n leaves within depth n, which also exceeds physical limitations like the speed of light.
评论 #37416113 未加载
评论 #37417172 未加载
评论 #37417050 未加载
galfarragemover 1 year ago
I would bet that He writes Lisp. Ultimately everything is the same. Particles. Above it: particles made of particles.
评论 #37417103 未加载
评论 #37417132 未加载
评论 #37416627 未加载
评论 #37418326 未加载
评论 #37419146 未加载
评论 #37423783 未加载
评论 #37416610 未加载
kevinlu1248over 1 year ago
This makes me believe simulation theory even more tbh. Quantum mechanics exist to fuse operations, altogether making simulating our universe more computationally inexpensive.
评论 #37415983 未加载
评论 #37420394 未加载
candiodariover 1 year ago
Let&#x27;s face facts here: God just fell asleep on the keyboard, and by a staggering coincidence, or perhaps a weird shape of the head, the first 4 letters he typed were P, E, R, L.<p>He&#x27;s still sleeping.
评论 #37416307 未加载
评论 #37416072 未加载
评论 #37418738 未加载
fluoridationover 1 year ago
&gt;The real world also doesn’t allow you random access, you are limited by the speed of light and have to go from one location to the next.<p>&quot;Random access&quot; doesn&#x27;t mean that accessing an item always takes the same time regardless of the size of the collection, it means that, if the size of the collection doesn&#x27;t change, access times are uniform independently of which particular item is accessed.<p>For example, one might conceive of a storage device shaped like a sphere the size of the solar system, where an item is read by shining a laser onto the surface of the sphere and measuring how the laser is scattered on its way back. Such a device would be random access, even though it&#x27;s impossible to grow the collection, and even though a collection with twice the radius and four times the storage size would have four times the latency.
nurettinover 1 year ago
This kind of thinking happens when you are a strong expert in a field, but your frontal lobes stop receiving enough blood. When this happens, something simple as lazy evaluation becomes the key to the universe.
评论 #37416050 未加载
bmachoover 1 year ago
Actually She is written in Haskell too, but that&#x27;s ok, due to lazy evaluation (of Haskell and of God) mutually recursive definitions pose no problem.
评论 #37415979 未加载
skywal_lover 1 year ago
Mandatory xkcd: <a href="https:&#x2F;&#x2F;xkcd.com&#x2F;224&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;xkcd.com&#x2F;224&#x2F;</a>
评论 #37416055 未加载
archibaldJover 1 year ago
I want to ask God how to make my stack build process faster.. even turning off the optimization flag it still takes quite some time on my 2.6 GHz 6-Core Intel Core i7.. (or is it because I&#x27;m on a Mac? Does it build faster on Linux?)
Dudester230602over 1 year ago
<a href="http:&#x2F;&#x2F;steve-yegge.blogspot.com&#x2F;2010&#x2F;12&#x2F;haskell-researchers-announce-discovery.html" rel="nofollow noreferrer">http:&#x2F;&#x2F;steve-yegge.blogspot.com&#x2F;2010&#x2F;12&#x2F;haskell-researchers-...</a>
评论 #37417197 未加载
Xeamekover 1 year ago
So uh... When are we rewriting this in Rust?
评论 #37480413 未加载
PartiallyTypedover 1 year ago
&gt; Consider the wave-particle duality in quantum mechanics. Every particle behaves as a wave, as long as you haven’t interacted with it. Thanks to Haskell’s lazy evaluation values are also only evaluated once they are accessed (interacted with particles), and stay unevaluated thunks (waves) in the meantime.<p>Lazy evaluation is a beautiful thing, and in many ways, it is the solution self-reference.<p>Hofstadter in &quot;I am a strange loop&quot; and Gödel Escher Bach talks about this, well, he talks about many things, but he also talks about how Gödel&#x27;s numbers can map to proofs that are self-referential, and relates that to humans, how out of very basic building-blocks, if enough representational power exists, self-reference and therefore consciousness exists.<p>He posits that humans, while self-referential, don&#x27;t fall into infinite <i>strange</i> loops because they can assign the abstraction of &quot;self&quot; onto an &quot;object&quot; and evaluate only as needed. In essence, the &quot;self&quot; is lazily evaluated.
评论 #37416580 未加载
taneqover 1 year ago
If God wrote any variant of lisp he’d have mentioned it repeatedly by now.
mrkeenover 1 year ago
Dumb, but it&#x27;s fun hearing it from the other side.<p>If you ever make a &quot;Haskell is bad because it doesn&#x27;t use state but the real world uses state&quot; argument, this is what you sound like.
评论 #37415884 未加载
staredover 1 year ago
This view on wave-particle duality and the quantum measurement is a (very) leaky abstraction. It is a process, governed by decoherence - for a nice overview, see e.g. &quot;Decoherence, einselection, and the quantum origins of the classical&quot; by Zurek (<a href="https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;quant-ph&#x2F;0105127" rel="nofollow noreferrer">https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;quant-ph&#x2F;0105127</a>).
nice_byteover 1 year ago
forget grasping at straws, this is grasping at bose-einstein condensate :)
sssilverover 1 year ago
Haven’t we actually established that God DOES in fact play dice, that Niels Bohr was right, and that Einstein was wrong?
评论 #37420253 未加载
评论 #37419789 未加载
mbfgover 1 year ago
Interestingly i don&#x27;t think we know that the speed of light remains constants, nor could we devise a test to determine it.
评论 #37419742 未加载
valyagolevover 1 year ago
or maybe God is intuitionist<p>btw reminded me of the &quot;quantum-mechanical&quot; monad <a href="http:&#x2F;&#x2F;blog.sigfpe.com&#x2F;2007&#x2F;03&#x2F;monads-vector-spaces-and-quantum.html" rel="nofollow noreferrer">http:&#x2F;&#x2F;blog.sigfpe.com&#x2F;2007&#x2F;03&#x2F;monads-vector-spaces-and-quan...</a>
submetaover 1 year ago
Well, apparently „God“ writes DNA. And in the language of mathematics. All else is for mere mortals.
js4everover 1 year ago
God forbid H, ask hell
larodiover 1 year ago
Quantum this, Quantum that... Haskell
refaelvover 1 year ago
&quot;יצרם בדעת בבינה ובהשכל&quot;
评论 #37418204 未加载
评论 #37418343 未加载
ChatGTPover 1 year ago
Is the universe deployed on K8s?
评论 #37417109 未加载
koolalaover 1 year ago
God writes 4D X-L
评论 #37480432 未加载
jononomoover 1 year ago
God writes DNA.
say_it_as_it_isover 1 year ago
This explains why he allows genocide. &#x2F;s<p>Oh come on, this title begs for sarcastic responses.
评论 #37416835 未加载
CyberDildonicsover 1 year ago
I guess god doesn&#x27;t care about the order that things execute, pauses from garbage collection or making everything from granular linked lists even though they are obsolete in current software.
charcircuitover 1 year ago
&gt;He seems to enjoy writing Haskell<p>This article gives no evidence of this. None of the concepts that the article lists out are Haskell exclusive. Thunks and linked list can be made in C too.
评论 #37415921 未加载
评论 #37424879 未加载