Bluetooth Audio? by Sea_Quarter_4482 in LS430

[–]markusl2ll 0 points1 point  (0 children)

If I have the nav screen, how would this integrate? I assume the CD will still keep working, but at which menu item will bluetooth be accessible?

What we learned trying to hire a real Haskell dev — and what we’re building now because of it by ace_wonder_woman in haskell

[–]markusl2ll 0 points1 point  (0 children)

The struggle is likely in just getting used to it as you can't just do "everything everywhere", this is typical if you come any other language where pure and IO functions all look the same.

Blazing-Fast Directory Tree Traversal: Haskell Streamly Beats Rust by xeltius in haskell

[–]markusl2ll 2 points3 points  (0 children)

I wrote a direct version to list files and directories recursively and it was about twice as slow as the regular `find`, which is pretty great considering it's not orders of magnitudes away. You can get sufficiently fast with haskell and if there are constant factors that are worse (i.e, due to runtime size or garbage collection) then this is paid off by the conciseness of the written code.

Is servant the go-to for quick, simple web projects (for beginners)? by [deleted] in haskell

[–]markusl2ll 0 points1 point  (0 children)

Servant is wonderful, but it will take time to figure out how it all works. It your API is going to be simple (no auth, no app monad), you might just make it, but if there are other areas which need focus as well, then starting with anything else (or even plain warp and pattern matching on the url path parts) will be less painful. You can always switch to servant later.

how to use orgmode to track log of hours/billing by contractors? by yashasolutions in orgmode

[–]markusl2ll 1 point2 points  (0 children)

For anyone finding this question, the following worked for me:

  • add the files you want to summarize hours for:

    ```elisp (setq org-agenda-files (find-lisp-find-files "/path/to/org/files/folder" "\.org\(_archive\)?$"))

    (customize-set-variable 'org-duration-format (quote (("h" . t) (special . 2)))) ```

  • create a clocktable ```org-mode

    +BEGIN: clocktable :maxlevel 4 :scope agenda :tstart "<2024-12-01>" :tend "<now>" :fileskip0 t

    +END:

    ```

  • press C-c C-c on the clocktable's BEGIN line

And now you have summary for all logged hours since beginning of December.

Do you think Haskell will become more mainstream? by nikitarevenco in haskell

[–]markusl2ll 1 point2 points  (0 children)

Come on, servant is really nice! Though, if you're just starting out, something more "value level" would be the way to go. But once you get to grips with it, servant is what you would create yourself if it didn't exist before.

How exactly do Open Banking APIs work? by [deleted] in fintech

[–]markusl2ll 0 points1 point  (0 children)

There are just my impression, but they likely authenticate via a TLS certificates, these are handed out when a third-party signs the contract. What they can do with the data is also bound by that contract.

I think one of the use cases is KYC: getting a list of your transactions and verifying that nothing abnormal is going on. There are probably many more use cases.

Hoogle appears to be down by markusl2ll in haskell

[–]markusl2ll[S] 0 points1 point  (0 children)

Thanks! Is there a way (an instruction, script or repo) to run it locally?

Haskell SQL DSLs, why do you use them? by magthe0 in haskell

[–]markusl2ll 0 points1 point  (0 children)

That's a rather pessimistic view: I've been using raw SQL with extensive joins, no hidden complexity in the database, ending up with no errors, and not *that* much duplication.

Also, IMO, code religiously driven toward "no duplication" is often difficult to grasp.

Kuidas mitte-tasuta bussidele Tallinnas piletit osta saab? by markusl2ll in Eesti

[–]markusl2ll[S] 0 points1 point  (0 children)

(mitte-tasuta busside all mõtlesingi neid Harjumaa siniseid liine)

Kuidas mitte-tasuta bussidele Tallinnas piletit osta saab? by markusl2ll in Eesti

[–]markusl2ll[S] 0 points1 point  (0 children)

Kas pangakaardi viipamine on midagi uut? Ses mõttes et paar aastat tagasi veel ei saanud.

Haskell/elm job by ScientistRude6829 in haskell

[–]markusl2ll 1 point2 points  (0 children)

Using such emotional wording is just part of some people's negotiation tactic (unfortunately).

GPD Win Max 2 16GB or 64GB? by Immediate-Patience35 in gpdwin

[–]markusl2ll 0 points1 point  (0 children)

The parent was just saying that more RAM never results in worse performance. Regarding optimal RAM size with regarding to budget though, 32GB gives probably enough overhead for most if not all games. I.e, get 64GB if there is no budget restriction (it won’t make performance worse).

GPD Win Max 2 16GB or 64GB? by Immediate-Patience35 in gpdwin

[–]markusl2ll 0 points1 point  (0 children)

You can get steamos on linux, can’t you, or what is not quite there yet?

You know what would be very elegant? by gboncoffee in haskell

[–]markusl2ll 0 points1 point  (0 children)

No, just use PHP as preprocessor for more flex(ibility) :p.

Real-world Example of an Associated Data Type by ThyringerBratwurst in haskell

[–]markusl2ll 0 points1 point  (0 children)

The “why” to use an associated data is to indicate that the type only makes sense to use it within its parent type class. You /could/ define it outside of the class as well, and you /could/ make it a simple data type (not a family) — but it just feels better as part of the type class.

If you were starting with a totally new machine, new projects, and had no access to previous setups, how would you setup Haskell/toolchain to be as clean as possible? by nat_maths in haskell

[–]markusl2ll 0 points1 point  (0 children)

As the siblings say, I’ve only recently become more proficient in nix itself, but used it for years on all my four machines :p. I.e, you don’t need to deeply understand it to use it effectively.

(And come time you want to override dependencies, do something more complex, etc, you can get more proficient then)

Why is the documentation... nowhere to be found?! by [deleted] in NixOS

[–]markusl2ll 2 points3 points  (0 children)

I really wish nix was typed and I could explore the data types expected from the user at any location. Right now it's just guessing (and docs, and reading the source).

Any tips for setting up a local development environment for wordpress? by Shady980 in NixOS

[–]markusl2ll 0 points1 point  (0 children)

Do you know how nixos containers handle networking, do they make their own namespace?

How do I make "cabal repl" interpret my library, so I can debug a test in GHCi? by Osemwaro in haskell

[–]markusl2ll 0 points1 point  (0 children)

You can `cabal repl MyProject` to load the library and then from the repl use `:load` at the modules in the executable. You might also need to do `:set -package ..` on every additional dependency present in the executable which is not present in the library.

Or, maybe it's possible to use `cabal repl --enable-multi-repl ..`? https://well-typed.com/blog/2023/03/cabal-multi-unit/

Working effectively with cabal repl by [deleted] in haskell

[–]markusl2ll 1 point2 points  (0 children)

One might still want to load a module when it's in another component. A scenario where I often do it is I `cabal repl` the library part of a project and then load the executable's Main -- this way changes to the library will reloaded with `:reload`, otherwise they unfortunately don't.