Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
throwaway858
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
throwaway858
3y ago
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 memory and to
2.
▲
by
throwaway858
3y ago
Haskell has equivalents to all of those libraries, and much more. And they are probably easier to use and more powerful.
3.
▲
by
throwaway858
3y ago
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 n
4.
▲
by
throwaway858
3y ago
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/
5.
▲
by
throwaway858
3y ago
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 design it is
6.
▲
by
throwaway858
3y ago
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).
7.
▲
by
throwaway858
3y ago
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... Bu
8.
▲
by
throwaway858
3y ago
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 copies v
9.
▲
by
throwaway858
3y ago
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
10.
▲
by
throwaway858
3y ago
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 simply cannot handle files
11.
▲
by
throwaway858
4y ago
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 freezes all hu
12.
▲
by
throwaway858
4y ago
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 "pure"
13.
▲
by
throwaway858
4y ago
> 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 ta
14.
▲
by
throwaway858
4y ago
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 values to out
15.
▲
by
throwaway858
4y ago
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 phone, but there is an ar
16.
▲
by
throwaway858
4y ago
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 directly sued).
17.
▲
by
throwaway858
4y ago
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 funded by corporations.
18.
▲
by
throwaway858
4y ago
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 costs or paying speci
19.
▲
by
throwaway858
4y ago
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.
20.
▲
by
throwaway858
4y ago
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 may be writt
21.
▲
by
throwaway858
4y ago
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 AWS just for S3 then
22.
▲
by
throwaway858
4y ago
> 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 often hea
23.
▲
by
throwaway858
4y ago
I think the Haskell bindings for wxWidgets is pretty good https://hackage.haskell.org/package/wx
24.
▲
by
throwaway858
4y ago
> 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
25.
▲
by
throwaway858
4y ago
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 they can be mer
26.
▲
by
throwaway858
4y ago
Here is another TypeScript library for validating types of SQL queries: https://github.com/MedFlyt/mfsqlchecker It uses the actual PostgreSQL parser against your project's database schema to give 100% accurate res
27.
▲
by
throwaway858
4y ago
C# has sum types
28.
▲
by
throwaway858
4y ago
There is also a Haskell port of the original PostgreSQL parser, implemented using megaparsec, which makes it highly flexible and hackable: https://github.com/nikita-volkov/hasql-th#implementation
29.
▲
by
throwaway858
4y ago
Video game companies are now hiring economists: "Game maker Valve appoints in-house video games economist" https://www.bbc.com/news/technology-18456171
30.
▲
by
throwaway858
5y ago
I agree with this from a practical perspective. But it is worth pointing out that it is actually possible to maintain "perfect" accuracy when doing arithmetic even when sqrts (or other irrational numbers) are involved. The idea is
More ›