Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nv-vn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
64 ms
·
571.
▲
by
nv-vn
10y ago
Interesting, looks like this could even be used as a competitor for Swift (considering the large overlap in features). I'm surprised Microsoft didn't open it up earlier and use it for .NET/Xamarin.
572.
▲
by
nv-vn
10y ago
Why can't this be done as a module declaration? I.e. a file would be prefaced with `module Main;` to declare that it's a module and give it a name.
573.
▲
by
nv-vn
10y ago
Effectively the same thing considering the fact that a perfect rectangle would be impossible to make.
574.
▲
by
nv-vn
10y ago
I just wanna say, your project has an awesome readme! Thanks for sharing :)
575.
▲
by
nv-vn
10y ago
Misspelling the keyword happens relatively early in the compiler pipeline (during parsing). If your build hasn't changed very significantly (i.e. something along the magnitude of <1000 lines changed that aren't scattered across
576.
▲
by
nv-vn
10y ago
Compiler errors are much better than the alternative: a run-time bug that won't manifest itself until you put the program under the correct conditions for failure. Compile-time errors are something that programmers have added to compil
577.
▲
by
nv-vn
10y ago
Misspelling a keyword is a low-cost issue. The compiler will point it out to you immediately, and compilers are very fast these days. Nothing happening here is very catastrophic.
578.
▲
by
nv-vn
10y ago
I suggest giving some form of parser combinators a try for a more functional approach to parsing/lexing.
579.
▲
by
nv-vn
10y ago
I don't know, I think you can have an open platform and keep spam low. I have yet to encounter any spam on Telegram for the past 8 or so months I've been using it. I think that might partly be a result of the openness of the platf
580.
▲
by
nv-vn
10y ago
Came here to say the same exact thing. It's plain inconvenient to have to go to the github page to view an example when they hint towards it with the one line of code on the front page. Ideally, it would be nice to have a whole page on
581.
▲
by
nv-vn
10y ago
The problem with a browser extension is that it wouldn't count commits past 365 days. Would be better to leave the feature in and have a browser extension to opt out of it.
582.
▲
by
nv-vn
10y ago
Shitty as a high-school student at a school that doesn't have official student emails since they'll just immediately reject my application for the student pack :(
583.
▲
by
nv-vn
10y ago
OCaml is available on top of MinGW or Cygwin. The thing that isn't supported is OPAM (the package manager), and that's only for official support -- if you compile with MinGW or Cygwin you can get it working well enough for most ta
584.
▲
by
nv-vn
10y ago
Writing code every day doesn't necessarily mean doing more than a few short lines. I like to think of it as a mental exercise, like how solving puzzles every day helps you think better. Also, there are days where I have kept a streak j
585.
▲
by
nv-vn
10y ago
Definitely same here. I started working on some personal projects for Github this winter and ended up getting a long streak of about a month from it. Since then, I've been in the habit of getting long streaks and try to do 2+ commits e
586.
▲
by
nv-vn
10y ago
Interesting. I think Runescape still has this sort of thing in OSRS. Anyways, this sounds a lot like the Minecraft cheats community, which was somewhat more recently a big thing. Most of the cheats were poorly written client mods made by hi
587.
▲
by
nv-vn
10y ago
I haven't done anything ≥10k lines yet, but I do have a few projects between 1k and 5k lines that I've been working on and I've easily written 50k+ lines of OCaml in the past year. The development experience I've had is
588.
▲
by
nv-vn
10y ago
From what I can gather, it should work independently from the Mirage toolchain, but will remain compatible with all current OCaml tooling, so using Mirage tools will work as well.
589.
▲
by
nv-vn
10y ago
Try out the OASIS build system. It's very similar to Cargo/Cabal (although it's separate from the package manager) in that you basically declare what you're working with and it does all the building for you. It's su
590.
▲
by
nv-vn
10y ago
The idea is awesome, but it sort of loses its usefulness to people who aren't math experts. It's very clear by looking at the website that it's _not_ meant to be a Wikipedia for math. That's definitely not a bad thing, b
591.
▲
by
nv-vn
10y ago
>you should be using regexps all the time Personally, I try to limit my usage as much as possible. Regexes are basically only useful for things I do in my terminal and occasionally verifying that data is well-formed. For practical parsin
592.
▲
by
nv-vn
10y ago
The compiler doesn't just remove the type annotation, it has to go through and check that the annotations are valid and that the type safety is kept throughout the program. Type checking is often not a quick process, since it requires
593.
▲
by
nv-vn
10y ago
Semantically, it's probably closest to Rust (from my limited exposure). The syntax is slightly changed, but most things have a direct parallel between the two languages. Although Swift doesn't do ownership/borrow checking li
594.
▲
by
nv-vn
10y ago
I think the point of it is more as a kind of protest than it is to actually obstruct their ability to spy on people.
595.
▲
by
nv-vn
10y ago
And how would one know they're not going to be arrested if they meet with the FBI? You'll end up in a lot of trouble if you trust every word the government says, especially when it's something as secretive as this. And of cou
596.
▲
by
nv-vn
10y ago
Anyone have more information for the NS library included in src/Lib? It looks very similar to Batteries or Core so I'm interested in why Microsoft chose to develop their own solution instead. Also, Microsoft hasn't released i
597.
▲
by
nv-vn
11y ago
Still no more info on storage? I'd buy the $499 model in a heartbeat if it had a 32GB SSD (or if it was upgradeable). The fact that they haven't released those details yet makes me think the number will be rather unimpressive.
598.
▲
by
nv-vn
11y ago
It is as bad as they make it sound. WhatsApp is the biggest form of communication in Brazil. It would be effectively the same as SMS and phone calls being disabled in the U.S. (or maybe just like the effect of blocking StackOverflow for all
599.
▲
by
nv-vn
11y ago
How do these proofs work if code has IO? For example, if I read a number from the command line, how can I know that it's within a certain range? I'm only very familiar with this type of thing through languages with explicit IO (Id
600.
▲
by
nv-vn
11y ago
Haskell/OCaml style "fst" and "snd" functions can't index arbitrary tuples (they only work on 2-tuples/pairs): http://i.imgur.com/PbhNxmu.png .
More ›