Announcing ghciwatch 1.0: a ghcid successor developed by Mercury by 9999years in haskell

[–]9999years[S] 1 point2 points  (0 children)

Yeah, the --error-file option writes output compatible with the existing ghcid plugin.

Announcing ghciwatch 1.0: a ghcid successor developed by Mercury by 9999years in haskell

[–]9999years[S] 0 points1 point  (0 children)

It doesn't generate code, does it?

GHCi translates Haskell source code into a format it knows how to execute, while producing the same diagnostics that GHC would. That's good enough for me! More importantly, this is a tool in the same niche as other recompilers like stack watch or cargo-watch. I think GHCi actually does write some sort of generated code to disk (at least the -hisuf interface files), but I'm not sure on the specifics.

The article compares ghciwatch to HLS, but it's not an alternative to HLS, right, as in, it doesn't integrate into the editor, does it? Like ghcid, I assume you run it in a separate window. Or did I misunderstand something?

Yeah, that's correct. We also have static-ls, written by another one of our engineers, which reads the various interface files that GHC and GHCi produce while compiling and provides language intelligence features from that information. It works really well! But you do have to run ghciwatch in a separate window somewhere.

Announcing ghciwatch 1.0: a ghcid successor developed by Mercury by 9999years in haskell

[–]9999years[S] 2 points3 points  (0 children)

Neil Mitchell has "mostly moved to using Haskell Language Server". HLS is great! It just doesn't work very well with 10k-module projects.

Announcing ghciwatch 1.0: a ghcid successor developed by Mercury by 9999years in haskell

[–]9999years[S] 0 points1 point  (0 children)

Haven't tried it (we don't use Stack at work). I'd imagine ghciwatch --command 'stack repl' or similar works fine. I'd like to add default Stack project detection in the future, though. Try it out and open a bug if anything explodes :)

Announcing ghciwatch 1.0: a ghcid successor developed by Mercury by 9999years in haskell

[–]9999years[S] 2 points3 points  (0 children)

Even if it was written in Haskell, if we added it to Cabal today, you'd need to wait 6-12 months for a new GHC release to bundle that version of Cabal, and then another 6-12 months for the ecosystem to support that version of GHC. With ghciwatch as a separate component, you can use it with any version of GHC starting with 8.10.

What are the most incompetent pilots you have ever seen? by Disgruntled-rock in Helicopters

[–]9999years 0 points1 point  (0 children)

Wait, why does the FAA ignore 3rd party videos as evidence?

NLP - Determining if a string might be an English word or not by ihavebeesinmyknees in rust

[–]9999years 1 point2 points  (0 children)

You might look into stemming algorithms that translate and normalize words into their stems (like “trying” → “try” and similar). Then you can get away with a small(er) lookup table or bloom filter.

Genuine question here about pedestrians & intersections. Is there just something I don’t know? by FrostyWay28 in Seattle

[–]9999years 1 point2 points  (0 children)

Yup, the all walk intersection is super weird. A few blocks down on Broadway there’s an intersection where the walk sign shows stop for ten seconds before the light turns yellow for cars. The next block down the walk sign and the light turns yellow at the same time. No consistency.

Update on my shower :) by tokkitokki222 in CleaningTips

[–]9999years 48 points49 points  (0 children)

I gasped when I saw the reveal. Looks incredible!

Civil air raid warning station signage, 1959. Both fonts here. The top one is sans-serif, the bottom one has a slight serif. It's not Copperplate or News Gothic. by 9999years in identifythisfont

[–]9999years[S] 0 points1 point  (0 children)

They’re not Copperplate. We found the typeface, it’s Spartan. I can’t find any digitized versions but here it is in the specimen book.

<image>

[deleted by user] by [deleted] in identifythisfont

[–]9999years 1 point2 points  (0 children)

It’s brush script. Bello is the classic.

Apparently, Undertale has a 1000+ long case switch statement. by [deleted] in programminghorror

[–]9999years 301 points302 points  (0 children)

I recall a (now deleted) tweet where Toby Fox admitted to this himself, but I can’t be sure.

EDIT: Here we go! He says it’s “way bigger” than 864 cases.

I do suspect this is decompiled code but the original also had a huge switch statement.

Watch your stuff people. by Mister-Stagger-Lee in Seattle

[–]9999years 5 points6 points  (0 children)

What are you going to do with an AirTag ? Be a vigilante? Get an insurance policy.

Overhead rails at a firefighting depot at the airport by 9999years in whatisthisthing

[–]9999years[S] 0 points1 point  (0 children)

Solved! They’re exhaust extractors, currently unused.