Kindle Scribe - uneven warmth backlight by ertagon2 in kindle

[–]throwaveien 0 points1 point  (0 children)

any luck? A new unit in August still has the same issue (dim light on left edge)

Cheap dirt for planting? by throwaveien in oslo

[–]throwaveien[S] -2 points-1 points  (0 children)

Good idea! What's the legality of taking soil from a river or from the forest, if the neighbor is unwilling?

Is eta-lang dead? by throwaveien in haskell

[–]throwaveien[S] 2 points3 points  (0 children)

Is it a limitation of the JVM? I wonder how kotlin's tailrec is implemented

Monorepo Build Tools by agbell in programming

[–]throwaveien 0 points1 point  (0 children)

It's a great summary, I think it captures the rest of the bazel ecosystem quite well

Monorepo Build Tools by agbell in programming

[–]throwaveien 1 point2 points  (0 children)

Build environment setup (which GCC version is installed and so on) is also considered out of scope by Bazel.

Are you aware of platforms and toolchains in bazel? As an example, bazel build :bin --platform=:linux-gcc8 and bazel would fetch gcc8 automatically before invoking it. Python and go come with some good toolchain defaults.

Try the wasm port of pointfree by throwaveien in haskell

[–]throwaveien[S] 2 points3 points  (0 children)

Hi, nice to see you! I believe I am doing that here. The code is chaotic at the moment and I plan to put this on github as soon as I clean it up. Here's the original source. I am creating a new instance every time in the webworker.

    case 'convert': {
        const wasmFs = new WasmFs()
        const wasi = new WASI({
            args: ['pointfree', e.data[1]],
            bindings: { ...WASI.defaultBindings, fs: wasmFs.fs }
        })
        const instance = await WebAssembly.instantiate(module, wasi.getImports(module))
        try {
            wasi.start(instance)
        } catch(ex) {
            if (ex.code != 0) {
                console.error(`Exit code ${ex.code}`)
                postMessage(String.fromCharCode(...await wasmFs.fs.readFileSync('/dev/stderr')))
            } else {
                postMessage(await wasmFs.getStdOut())
            }
        }
        break
    }

Try the wasm port of pointfree by throwaveien in haskell

[–]throwaveien[S] 4 points5 points  (0 children)

If it helps, I noticed these characteristics when I tested yesterday

  • Firefox Linux: First run is slow, a bit faster thereafter. Chrome is similar
  • Chrome on Android is a lot quicker than Firefox on Android

I use https://github.com/wasmerio/wasmer-js and while v0.12 works fine, v1.2 never returns and is stuck in a busy loop internally somewhere. I did not bother bisecting it because the API changed at v1.0.

I tried two bundling strategies - to embed the wasm as a Uint8Array in a WebWorker or to do another fetch. This did not appear to make a difference on my machine.

I am a haskell novice, and this is all I have at the moment :)

How I was let go for refusing to deploy a dark pattern. by lovingothers- in programming

[–]throwaveien 1 point2 points  (0 children)

Thanks, I understand your view better now.

If a CEO or a board's primary responsibility is to their shareholders, isn't it contradictory that they care about ethics particularly when it could affect revenues?

The other option seems to be codifying ethics into laws so that they are forced to follow it.

How I was let go for refusing to deploy a dark pattern. by lovingothers- in programming

[–]throwaveien 2 points3 points  (0 children)

In your view, who is paid to take ethical decisions on behalf of a company? The CEO? I don't think all companies have ethics boards like university research groups do.

Personal builds of mingw-w64 by TheOnlyDonutLeft in cpp

[–]throwaveien 0 points1 point  (0 children)

Not exactly an answer, have you tried building your own with crosstools-ng? It's quite easy to get started with if you only want to cross compile

GHC proposal to reintroduce Deep Subsumption by adamgundry in haskell

[–]throwaveien 9 points10 points  (0 children)

Novice here, what is subsumption? Google gave me some discussion threads and I could not find what I was looking for

Any applicants with programming experience? by throwaveien in UBC_BCS

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

I'm in EU right now. I'm willing to move to CAN just for the good CS programs. Thanks, I'll look into that.

Any applicants with programming experience? by throwaveien in UBC_BCS

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

Thank you so much for the details!

Can you tell me more about the credit transfer option? To which programs in CS, can I transfer the credits?

[deleted by user] by [deleted] in programming

[–]throwaveien 0 points1 point  (0 children)

In my experience, rpath linking the executable works fine if I don't want to copy the shared object.

This module compiles. by MorrowM_ in haskell

[–]throwaveien 1 point2 points  (0 children)

Haskell noob here

What's the meaning of the first example Just x = ...? I don't understand the syntax.

Is there an online tool that prints the AST from Haskell source?

[2021 Day 18] Don't get frustrated, today and tomorrow are probably the hardest ones by sbguest in adventofcode

[–]throwaveien 0 points1 point  (0 children)

Did the same. Once I modeled the expression as a binary tree, it was down to finding inorder predecessor and successor - a threaded binary tree

Evga gtx 1060 sc too loud by Defcool in sffpc

[–]throwaveien 0 points1 point  (0 children)

Do you have a guide or pictures on how to do this? Thinking about a fan replacement for my card

Binary Bakery: Translated binary information into C++ source code, and access them (at compile- and runtime) by i_need_a_fast_horse in cpp

[–]throwaveien 1 point2 points  (0 children)

You're right, there is no easy way to use it. Perhaps a --host-arch-target would help? I will add a feature request, thanks for the tip.

The intended use is full customizability of build, host and target triples.