charje

joined 1 year ago
[–] [email protected] 1 points 10 months ago

This exact thing happens to me.

[–] [email protected] 1 points 11 months ago

JS doesn't do any type inference. Ocaml Connor l type checker knows all the types and is completely type safe without type annotations.

[–] [email protected] 1 points 1 year ago (1 children)

This version is definitely a bit harder to follow what is going on.

[–] [email protected] 1 points 1 year ago

Many farmers growing plants for animal feed. Also there are Deer farms that raise deer specifically for the hunting industry.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (4 children)

Instead of storing intersect-p as a variable and keeping it until the end of the loop, you can return early as soon as you find the first intersection.

Even though a hash table has better symtotic run time, you might find after benchmarking that the O(n^2) is faster for your use case. If you are set on using a hash table, you might consider setting the initial size to something a bit larger (relative to the input lists) to avoid having to dynamically grow the hash table.

I think also the return value of the inner loop is never used...

I personally like to keep my tests assertions top level so I can interactively run each one by itself.

[–] [email protected] 4 points 1 year ago

I think the bigger problem is that they are hard to write and sometimes break tooling.

[–] [email protected] 2 points 1 year ago

I'm pretty sure they operate on tokens not AST.

[–] [email protected] 11 points 1 year ago

proprietariable just means the code can be taken and rerelased as proprietary (no freedoms all rights reserved).

[–] [email protected] 3 points 1 year ago

You can sell GPL licensed software. You don't have to publish the source code publicly online.

[–] [email protected] 14 points 1 year ago (3 children)

You still own the code you release under GPL. the restriction you are describing is actually caused by the non-copyleft licences you claim to prefer. If you choose to use MIT, you are limiting which libraries you can use. If you had picked GPL to begin with, you can use any library.

[–] [email protected] 96 points 1 year ago (11 children)

Copyleft licences are the only true free software licences. All other open source licenses are just proprietariable.

[–] [email protected] 1 points 1 year ago

I would love to hear your answers too [email protected].

view more: ‹ prev next ›