The current implementation is not memory safe. Go uses 128 bit structs for interfaces and slices and assumes that they are updated atomically (when they are not). It's possible to exploit this to read/write arbitrary…
Haskell has equivalents to all of those libraries, and much more. And they are probably easier to use and more powerful.
The technique for "Make a textarea auto-expand" is obsoleted by a new CSS property("form-sizing"): https://chriscoyier.net/2023/09/29/css-solves-auto-expanding... Even without using this new CSS property, the technique…
IHP is a batteries-included web framework similar to "ruby on rails" for Haskell, with strong static typing. The website has lots of information and videos and beginner tutorials. https://ihp.digitallyinduced.com/
Thanks for this link. It seems to confirm things: "aren’t Conduits and Transducers then equivalent (isomorphic)? I am pretty sure they are." I view this as a good sign. When two independent parties arrive at the same…
I'm not sure why the parent was downvoted, this sounds exactly like the Haskell conduit library (or indeed plain laziness if you don't need IO).
The shake build system (a general-purpose build system similar-to/better-than make) has a "prune" feature for exactly this purpose: http://neilmitchell.blogspot.com/2015/04/cleaning-stale-file... But I think the best…
This reminds me of how book stores "return" unsold books to the publisher: Shipping boxes of heavy books costs a lot of money, and the publisher doesn't actually need the books back (because they can always print new…
There is this for Haskell, which automatically converts all shell commands (like "ls") to regular Haskell functions: https://chrisdone.com/posts/shell-conduit/ It uses a Haskell streaming library so you can do stuff…
If you ever need to use GNU make (still a popular tool) then you will be glad that you kept a policy of avoiding spaces in file names. There are places in Makefiles where no amount of quoting will help you, and it…
There is no reason to believe that the AI will have self-preservation or self-replication as its goal. One hypothetical example: it decides to "help" us and prevent any more human pain and death, so it cryogenically…
A common case is when you need to add logging to a function. There are 2 ways: 1. You cheat and use unsafePerformIO. This is discouraged and I won't go into the details. 2. You convert your inner function from being a…
> A "function" is a "function" if it always returns the same result for the same arguments, right? Yes. This matches the definition of a mathematical function that I gave above. > how can I call a function which takes…
That is not the definition of FP. There is no definition of what FP is that is agreed upon by everyone, but the key is the word "functional" in FP. This comes from a mathematical function, which is a mapping of input…
It could be done if the thief, after having been found guilty, is then forced to pay a fine equal to the cost of the investigation and court costs. Yes, this could end up being a fine of $10,000 for stealing a $150…
This isn't how it works. If a website is hosting content that infringes on some NDA, then you are supposed to sue the website (and not the person who posted it to the website -- who are often anonymous and can't be…
For every React there are 1000 other open source projects run entirely by volunteers. I am curious if there is actual data on the number of man-hours that are spent on open source per year, and how many of those are…
Lots of open source projects have a foundation that manages the money. The foundation decides how to allocate the funds based on what they think will provide most value to the community, whether that is covering server…
The Go runtime (and GHC runtime) use epoll from multiple threads and don't use SO_REUSEPORT and are highly efficient. I do believe that they use one epoll per thread.
The consumer did not actually agree to the terms of: "I, the consumer, will pay you $XX to download the film to my device, but you can delete it from my device at any time in the future without giving me a refund". It…
The one big thing missing from dedicated hosts is an S3 equivalent. Sure, you can get a huge hard drive for cheap but this will not have the durability requirements for storing your precious data. And if you try to use…
> we've been re-inventing the same concepts in computing since the 1960s. I think a lot of the re-invention is really being driven by hardware capabilities, languages and fashion. We're seeing it with Rust right now I…
I think the Haskell bindings for wxWidgets is pretty good https://hackage.haskell.org/package/wx
> 4% of the world population, and most of this site's users, live in the USA Does HN publish this statistic? My guess is that >50% of users/traffic to this site is outside of the USA
This can result in a broken master if there were new commits added to master since the pull request was submitted (but before it is merged). The solution is to require that all PR must be rebased/synced to master before…
The current implementation is not memory safe. Go uses 128 bit structs for interfaces and slices and assumes that they are updated atomically (when they are not). It's possible to exploit this to read/write arbitrary…
Haskell has equivalents to all of those libraries, and much more. And they are probably easier to use and more powerful.
The technique for "Make a textarea auto-expand" is obsoleted by a new CSS property("form-sizing"): https://chriscoyier.net/2023/09/29/css-solves-auto-expanding... Even without using this new CSS property, the technique…
IHP is a batteries-included web framework similar to "ruby on rails" for Haskell, with strong static typing. The website has lots of information and videos and beginner tutorials. https://ihp.digitallyinduced.com/
Thanks for this link. It seems to confirm things: "aren’t Conduits and Transducers then equivalent (isomorphic)? I am pretty sure they are." I view this as a good sign. When two independent parties arrive at the same…
I'm not sure why the parent was downvoted, this sounds exactly like the Haskell conduit library (or indeed plain laziness if you don't need IO).
The shake build system (a general-purpose build system similar-to/better-than make) has a "prune" feature for exactly this purpose: http://neilmitchell.blogspot.com/2015/04/cleaning-stale-file... But I think the best…
This reminds me of how book stores "return" unsold books to the publisher: Shipping boxes of heavy books costs a lot of money, and the publisher doesn't actually need the books back (because they can always print new…
There is this for Haskell, which automatically converts all shell commands (like "ls") to regular Haskell functions: https://chrisdone.com/posts/shell-conduit/ It uses a Haskell streaming library so you can do stuff…
If you ever need to use GNU make (still a popular tool) then you will be glad that you kept a policy of avoiding spaces in file names. There are places in Makefiles where no amount of quoting will help you, and it…
There is no reason to believe that the AI will have self-preservation or self-replication as its goal. One hypothetical example: it decides to "help" us and prevent any more human pain and death, so it cryogenically…
A common case is when you need to add logging to a function. There are 2 ways: 1. You cheat and use unsafePerformIO. This is discouraged and I won't go into the details. 2. You convert your inner function from being a…
> A "function" is a "function" if it always returns the same result for the same arguments, right? Yes. This matches the definition of a mathematical function that I gave above. > how can I call a function which takes…
That is not the definition of FP. There is no definition of what FP is that is agreed upon by everyone, but the key is the word "functional" in FP. This comes from a mathematical function, which is a mapping of input…
It could be done if the thief, after having been found guilty, is then forced to pay a fine equal to the cost of the investigation and court costs. Yes, this could end up being a fine of $10,000 for stealing a $150…
This isn't how it works. If a website is hosting content that infringes on some NDA, then you are supposed to sue the website (and not the person who posted it to the website -- who are often anonymous and can't be…
For every React there are 1000 other open source projects run entirely by volunteers. I am curious if there is actual data on the number of man-hours that are spent on open source per year, and how many of those are…
Lots of open source projects have a foundation that manages the money. The foundation decides how to allocate the funds based on what they think will provide most value to the community, whether that is covering server…
The Go runtime (and GHC runtime) use epoll from multiple threads and don't use SO_REUSEPORT and are highly efficient. I do believe that they use one epoll per thread.
The consumer did not actually agree to the terms of: "I, the consumer, will pay you $XX to download the film to my device, but you can delete it from my device at any time in the future without giving me a refund". It…
The one big thing missing from dedicated hosts is an S3 equivalent. Sure, you can get a huge hard drive for cheap but this will not have the durability requirements for storing your precious data. And if you try to use…
> we've been re-inventing the same concepts in computing since the 1960s. I think a lot of the re-invention is really being driven by hardware capabilities, languages and fashion. We're seeing it with Rust right now I…
I think the Haskell bindings for wxWidgets is pretty good https://hackage.haskell.org/package/wx
> 4% of the world population, and most of this site's users, live in the USA Does HN publish this statistic? My guess is that >50% of users/traffic to this site is outside of the USA
This can result in a broken master if there were new commits added to master since the pull request was submitted (but before it is merged). The solution is to require that all PR must be rebased/synced to master before…