Skip to content

Instantly share code, notes, and snippets.

View wylswz's full-sized avatar
🎮
Playing Starcraft II

Yunlu Wen wylswz

🎮
Playing Starcraft II
View GitHub Profile
@graninas
graninas / What_killed_Haskell_could_kill_Rust.md
Last active July 11, 2024 21:10
What killed Haskell, could kill Rust, too

At the beginning of 2030, I found this essay in my archives. From what I know today, I think it was very insightful at the moment of writing. And I feel it should be published because it can teach us, Rust developers, how to prevent that sad story from happening again.


What killed Haskell, could kill Rust, too

What killed Haskell, could kill Rust, too. Why would I even mention Haskell in this context? Well, Haskell and Rust are deeply related. Not because Rust is Haskell without HKTs. (Some of you know what that means, and the rest of you will wonder for a very long time). Much of the style of Rust is similar in many ways to the style of Haskell. In some sense Rust is a reincarnation of Haskell, with a little bit of C-ish like syntax, a very small amount.

Is Haskell dead?

@wylswz
wylswz / DFANode.java
Last active July 12, 2022 11:41 — forked from edokeh/index.js
佛祖保佑,永无 BUG
package com.xmbsmdsj.regex;
import javax.xml.soap.Node;
import java.nio.file.NotDirectoryException;
import java.util.*;
public class DFANode implements Matcher{
private static final DFANode EMPTY = new DFANode(Collections.emptySet());
@evantoli
evantoli / GitConfigHttpProxy.md
Last active July 20, 2024 03:29
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@kotakanbe
kotakanbe / ipcalc.go
Created September 17, 2015 02:59
get all IP address from CIDR in golang
package main
import (
"net"
"os/exec"
"github.com/k0kubun/pp"
)
func Hosts(cidr string) ([]string, error) {