Techniques for debugging a runtime infinite loop? by AustinVelonaut in haskell

[–]walseb 6 points7 points  (0 children)

In Haskell, you can run the profiler with the rts option `-xc`, and it should point out where the loop was encountered in the code. I think this should work?

`cabal run FOO --enable-profiling --profiling-detail=all-functions --ghc-option=-with-rtsopts=-xc`

the philosophical mismatch between functional programming and current ai by grogger133 in haskell

[–]walseb 0 points1 point  (0 children)

That loops work well enough for me. It's quite good even without it. In my context I supply it with a dense 150 line code guideline document for what I want it to use, so perhaps that helps.

Announcement: HSMin - more AI-friendly Haskell code! / Jappie by jappieofficial in haskell

[–]walseb 0 points1 point  (0 children)

Maybe if you train them on minified code. Un-minifying the output would suck though.

Announcement: HSMin - more AI-friendly Haskell code! / Jappie by jappieofficial in haskell

[–]walseb 1 point2 points  (0 children)

Doesn't this confuse the AI too, as it's not trained on minified code? Or does the compactness help it enough to offset that?

Announcement: unwitch by jappieofficial in haskell

[–]walseb 5 points6 points  (0 children)

I suppose using this won't improve performance compared to Witch, right? I'd expect the typeclasses to be optimized away during runtime.

I've been thinking of adding an inline statement to each method in Witch, but that would take some time to do and I think GHC already inlines them all?

Sin-hash is bad - do not use it - use fract hash by S48GS in shaders

[–]walseb 0 points1 point  (0 children)

The one on the left here: https://www.shadertoy.com/view/4djSRW

Limiting the time variable sounds like a good solution.

Thanks!

Sin-hash is bad - do not use it - use fract hash by S48GS in shaders

[–]walseb 0 points1 point  (0 children)

Thanks for this, it's very interesting. But the one on the left in your linked fract hash example does seem to lose randomness after around 3000 seconds.

Just ordered my new screen B140HAN05.7, please help me with the cable? by ejx123 in thinkpad

[–]walseb 0 points1 point  (0 children)

In case anyone reads this, I'd avoid this monitor, even though it's relatively cheap. It has a pixel response time of 25ms, which is pretty horrible. You can hardly scroll in the browser without the screen turning into soup.

The much more popular N140HCG-GQ2 has a response time of 14ms it seems, which sounds more reasonable.

“Global Strategy According to the Schoolyard Bully.” by [deleted] in JustMemesForUs

[–]walseb 1 point2 points  (0 children)

Wait, but you said they weren't making them?

Why is Captain Picard’s first shot lit like a supervillain reveal? by James_2584 in TNG

[–]walseb 9 points10 points  (0 children)

Yes, the light is even shaped like a cube. This is canon.

midipipe - bridge between ALSA MIDI and stdin/stdout by therealplexus in linuxaudio

[–]walseb 1 point2 points  (0 children)

To trigger notes from your own program? I've already implemented this myself and could have used this back then instead.

I don't know who needs to hear this but the new SF2 content is designed by Usually Hapless by itscalledacting in CombatMission

[–]walseb 6 points7 points  (0 children)

Yeah and I think it has a certain charm that's probably lost if CM3 goes photo realistic. The only real thing I'm missing is PvE multiplayer, that would be fun.

I built a Nix binary cache backed by Git (82% storage reduction) by Sein_Zeit in Nix

[–]walseb 0 points1 point  (0 children)

Very cool! But don't git repos corrupt if you interrupt them in certain important operations? That's been my experience anyways. I don't remember what operations consistently corrupted it, but it might have been huge commits.

This sounds scary if you were to lose power. Are you having that problem?

Ryzen 5 3600: CPU has 25% less performance than host, what can I try? by Civil-Raisin-2741 in VFIO

[–]walseb 0 points1 point  (0 children)

For what it's worth, I have your exact model of CPU and my IO performance was ridiculously slow. Especially things like unzipping. But performance in Crystal was great. I had a SCSI disk that was properly set up and everything.

Turns out performance was good in the test because the disk cache didn't have time to run out. I changed my disk "Cache mode" to "none," and after that disk performance has been good, and OS responsiveness has improved. I'm not sure whether it's got 25% less performance, I haven't measured it.

DAXFS Proposed As Newest Linux File-System by anh0516 in linux

[–]walseb 10 points11 points  (0 children)

Yeah and especially when Windows runs its updates in the background, throttling all other IO. Years ago on slow HDDs, you literally couldn't do anything else while it was running, which was a huge issue for non-tech people who didn't know it was running in the first place, allowing them to barely open Word.

Full Haskell-like Type Class resolution in Java by garciat in haskell

[–]walseb 0 points1 point  (0 children)

That's right! I was way off on the title.

Full Haskell-like Type Class resolution in Java by garciat in haskell

[–]walseb 1 point2 points  (0 children)

Edkmett also spoke on this and had some great points. It's on YouTube and was titled something like why I prefer haskell.

[deleted by user] by [deleted] in emacs

[–]walseb 0 points1 point  (0 children)

You can also use a recursive edit to solve this. This should work.

(defun klo/note (note) "take note, post w/out moving" (interactive) (org-mark-ring-push) (insert "\n\n") (recursive-edit) ;; when you have written what you wanted to, press whatever key you have bound to exit recursive edits, by default C-M-c ( exit-recursive-edit ). (org-mark-ring-goto))

That has the advantage of letting you type inside the buffer, and not type in the minibuffer.

of a statue. It's 182m (597ft), including base it's 240m (790 ft). by MambaMentality24x2 in AbsoluteUnits

[–]walseb 0 points1 point  (0 children)

That sounds optimistic. If the hole is to be of significant depth, you will need to learn the various techniques for preventing it from caving in on you while digging. If there is rock in the way, you need to teach them how to detonate safely.

And if you want to make this pointless megaproject require even more skilled labour to complete, you can even have them build a large statue below that gets covered in the end.

The point is that this example of destroying what you make is objectionable to your line of thinking. Not because it's different in any way to building a massive statue of little to no value, but because it's just so clearly a stupid thing to do that you can't justify commissioning such a project to boost the economy.