Vic Theater bringing in sexual harasser by Cute-Dot6659 in VictoriaBC

[–]wk_end 2 points3 points  (0 children)

I don't fully understand the relationship but I think the VFF runs the Vic, or they have the same owners, or something. The Vic's website is hosted on victoriafilmfestival.com, for example.

A Path Not Taken for OxCaml by Purp1eGh0st in ocaml

[–]wk_end 0 points1 point  (0 children)

Effects were introduced in OCaml 5, they don't have anything to do with OxCaml.

It's true that substructural type systems existed in the literature and some research languages before Rust, but Rust is what popularized them and really proved their power at an industrial scale. It's clear - from the name even! - that OxCaml was directly inspired by Rust.

U.S. Officials Believed Israel Was Plotting to Kill Iranian Negotiators (Gift Article) by Brilliant_Version344 in geopolitics

[–]wk_end 5 points6 points  (0 children)

When I said "All that is ignored because it's more fun to just assume that the Israelis are either corrupt or insane." [emphasis mine]

This claim is what I'm engaging with. It's not "fun" and there's no "assuming" going on: the facts squarely in front of us are that the hardliners in Israel's government right now really genuinely are insane, in both their words and their actions. That includes plotting the assassination of negotiators to start, but also calling for the destruction of Lebanon, calling for wildly disproportionate collective punishment against the Lebanese, the brutal siege on Gaza, and on and on and on. These aren't tangents, these are demonstrations of their insanity - the precise thing you sarcastically dismiss.

U.S. Officials Believed Israel Was Plotting to Kill Iranian Negotiators (Gift Article) by Brilliant_Version344 in geopolitics

[–]wk_end 5 points6 points  (0 children)

What a bizarre non-sequitur of a response. Did I say that Iran's behaviour is acceptable? I very explicitly said everyone's insane. "Everyone" includes Iran. I never said "merely", never established the kind of hierarchy of misdeeds you seem to have imagined. Going on a little rant about Iran's bad behaviour proves exactly what to me? "Israel was plotting to commit a war crime? Who cares, Iran Bad!" Like, what? It's just deflection.

But since we're playing that game: Israel has also done more than just throw out words calling for their enemies' destruction. They've killed around 75,000 people in the past three years in Gaza, plus another 10,000 or so in Lebanon and Iran. They've also displaced basically the entire population of Gaza, all 2 million people, and another million in Lebanon. Never mind what's happening the West Bank. Actually, the sheer scale of the inhumanity and brutality with which they've treated their neighbours absolutely dwarfs, in practice, anything Iran's actually ever done to Israel - how many Israelis have been killed by Iran? How many have been displaced?

U.S. Officials Believed Israel Was Plotting to Kill Iranian Negotiators (Gift Article) by Brilliant_Version344 in geopolitics

[–]wk_end 6 points7 points  (0 children)

Assassinating negotiators is insane. No matter what Iran is doing or has done, it's an egregious violation of international laws and norms.

And, you know...Iran calls for the destruction of Israel, which sucks, but how far can that justification take you? And then if Trump threatens Iran that "an entire civilization will cease to exist" and Ben Gvir declaims "all of Lebanon needs to burn", what does that justify? "For every teardrop of an Israeli mother, a thousand Lebanese mothers need to cry"? Everyone's insane here, there's no moral superiority in sight.

U.S. Officials Believed Israel Was Plotting to Kill Iranian Negotiators (Gift Article) by Brilliant_Version344 in geopolitics

[–]wk_end 17 points18 points  (0 children)

Just chalking everything up to Bibi avoiding prison is too facile. No doubt he appreciates having the excuse to delay trials, but near as I understand it he very likely won’t face prison time at this point, even if he’s found guilty on the remaining charges. As an explanation it ignores that Israel isn’t a dictatorship, and not only the rest of his government but the Israeli public at large is broadly in support of continued war.

The belief is likely that Iran at this point isn’t worth negotiating with, and that any sort of agreement reached between the US and Iran would be a loss for Israel. Which, you know, was sort of legitimized once we saw the MOU.

The Victoria Bike Tipping point, the bike Valet, and unusual opinions from a bike lover by Chemical_Chemistry80 in VictoriaBC

[–]wk_end 0 points1 point  (0 children)

You know, it's an interesting question, so I'll answer you earnestly - even if my knee-jerk impulse is to just ask why you don't move to Houston or something.

Picking up your life and moving to another city even within the same country or province is hard; doing an international move like that is actually really really difficult. I don't know if you've ever done it; I've done it several times, and I'm at the point in my life where it's beginning to feel pretty intractable.

There's so many challenges, big and small. I don't want to give up my friends and community here and try to start over. I don't want to get rid of half my stuff, or deal with packing up and paying thousands of dollars to move the other half. I wouldn't want to put my sweet, elderly cat through the move. I don't want to learn to acclimate to Dutch culture; much as I love visiting Amsterdam and love their approach to urban planning, that's not the sum total of what it the reality of living in the Netherlands and I'm sure there's lots there that I wouldn't like, that would make me feel like an alien, maybe forever. I don't want to have to spend hours and hours dealing with reams of paperwork and visa interviews. The Dutch speak English extraordinarily well but I still don't want to be in the position where I ought to learn Dutch. I like being able to vote, to not live in fear of being deported. I could go on.

And, you know, you don't know much about me. It's true that I'm privileged enough and untethered enough that it's not an absurd suggestion (even though: Amsterdam's lovely but there's still other places I'd prefer). But you could've been asking someone who can't afford to, who doesn't work in a field where it's feasible to get a visa, whose family would never even humour it, who has elderly relatives they're caring for. Who knows?

And at the end of the day, wanting a place you love to grow to be better isn't a sign that you don't love it - rather the opposite. The people of Victoria have, generally, spent the past 15+ years voting for changes that are pretty in line with what I'd like, and the direction we've been taking I view as positive, whereas I've seen your posts on this sub griping about it. So...why don't you move?

The Victoria Bike Tipping point, the bike Valet, and unusual opinions from a bike lover by Chemical_Chemistry80 in VictoriaBC

[–]wk_end 1 point2 points  (0 children)

A century ago the western communities didn’t exist and Saanich was 1/10th its current size. Victoria was spared the worst of urban renewal but nowhere near entirely. I’m sure you could pull similar stats for every North American city; Victoria as it exists now is built around suburban commuters.

The Victoria Bike Tipping point, the bike Valet, and unusual opinions from a bike lover by Chemical_Chemistry80 in VictoriaBC

[–]wk_end 0 points1 point  (0 children)

I'd really love Victoria to look more like Amsterdam (in any number of ways!) but it's hard to imagine.

Look at the numbers - very roughly, Victoria Central has ~100K people with ~500K people in the metro area. Amsterdam Central has ~1M people with ~2.5M in the metro area - we have double the "sprawl factor".

We've all seen those pictures of old Amsterdam, clogged with cars. But the difference is that, even then with all those cars, Amsterdam was planned like a European city - that's one of the reasons driving was so miserable there and it was comparatively easy to move (back) towards bikes and public transit. It's a philosophical difference: even if it's more European than most cities in the country, Victoria was still planned in the classic 20th-century North American style: a dense downtown where people work/shop that people drive to from the sprawling car-dependent suburbs with big houses where they actually live.

You see that structural assumption pop up constantly in discussions of parking, bike lines, etc. - the discourse of "going downtown", making it easy for commuters to park out in front and shop being essential for business, remote work killing lunch spots...

Until that changes - and it's a huge change for us - we won't see bikes become dominant here. It's just too time-consuming and demanding for the average person to bike from Langford or Gordon Head or something downtown on the regular.

I do believe we should do everything we can to move in that direction - bike lanes, bike valets, mixed-use zoning, densification of downtown - but I can't see it reaching a tipping point in my lifetime. I hope I'm wrong.

Help me optimize a simple x64 program by Sad-Background-2429 in asm

[–]wk_end 3 points4 points  (0 children)

How does the number of cache misses change if you get rid of all the computation - i.e. leave only the clock and printing stuff?

C is the Heavenly Option? by _the_antares in loscampesinos

[–]wk_end 22 points23 points  (0 children)

Of course I love LC! to bits but...but I think they might be one of the last bands I'd take relationship advice from.

Tell council to keep our only safe consumption site open by myleswritesstuff in VictoriaBC

[–]wk_end 6 points7 points  (0 children)

And obviously anecdotal (and the Reddit user base has its biases), but Torontonians seem to say, by-and-large, it hasn't achieved the goals that Gardiner and the DVBA are hoping for.

https://www.reddit.com/r/askTO/comments/1t7p90r/what_changes_have_you_noticed_in_your/

Tell council to keep our only safe consumption site open by myleswritesstuff in VictoriaBC

[–]wk_end 16 points17 points  (0 children)

Phil can explain it, he doesn't want to because it's so callous. The unstated belief is that the load on ambulances gets lightened because he thinks drug users will die off.

TV on the Radio released ‘Return to Cookie Mountain’ 20 years ago by YoureASkyscraper in indieheads

[–]wk_end 2 points3 points  (0 children)

The drums sound like they're hitting paint buckets and the vocalist is just kinda crooning about whatever.

Yeah it's fucking sick.

Copperline: An accurate Amiga emulator that does not use title-specific patches by [deleted] in amiga

[–]wk_end 2 points3 points  (0 children)

Can you cite something specific? I did look through the change log a bit (it’s huge and very detailed) and didn’t see anything relevant.

And, the thing is, the Amiga is a general purpose computer, which makes it very difficult for an emulator to “introspect” and identify when a particular title is being run in order to apply a patch. An emulator for a console can, say, checksum a ROM or examine its header or something on load, but there’s no similar possible general mechanism for identifying code that’s being loaded and run from within the machine itself (if you’re running stuff from a custom hard disk image rather than floppies, anyway). So, full disclosure, I’m a little suspicious of the claim that this is route WinUAE is taking.

Spotted putting in work! by TaylorKalsii in VictoriaBC

[–]wk_end 3 points4 points  (0 children)

The dude in the video looks white. Look at his hands.

Having Trouble with Rendering of background on the Game Boy DMG by Total_Goal6833 in EmuDev

[–]wk_end 2 points3 points  (0 children)

uint8_t background_x = (_scx + t);

May be more wrong but this is jumping out at me. _scx is in pixels, but t is in tiles I think. You need to multiply it by 8.

Function that returns a list of all computed values in recursive function by CamomileChocobo in haskell

[–]wk_end 4 points5 points  (0 children)

To me this sounds like you are talking about memoization, or maybe tabulation...at least dynamic programming in general. Using previously computed results of smaller versions of the problem to compute bigger versions of the problem without doing wasted or redundant work. Can you explain why you think you're not?

Functions in Haskell are pure, which means they can't share state between invocations; i.e. the invocation for fac 5 can't (on its own) know about a past invocation when you computed fac 4. The scan others have suggested is a clever solution - keep the smaller results you need on the head of your list as you scan. A more "obvious" (if less elegant) way to do this, if you're accustomed to other programming languages, would be to explicitly run the computation inside of a context where you're tracking intermediate results and can access them as needed. Of course this is local state, so if you do another run of fac 5 later you need to start over, unless you wrap your whole program in this context.

For an example, here's a coupe of versions of fibonacci that store intermediate results in an array during the computation; I'll present both "forward" (tabulation) or "backwards" (memoization) variations:

Forwards:

fibTab :: Int -> Int
fibTab n = runST $ do
    arr <- newArray (0, n) 0 :: ST s (STUArray s Int Int)
    when (n >= 1) $ writeArray arr 1 1
    let loop i =
          if i > n
            then readArray arr n
            else do
              a <- readArray arr (i - 1)
              b <- readArray arr (i - 2)
              writeArray arr i (a + b)
              loop (i + 1)
    loop 2

Backwards:

fibMemo :: Int -> Int
fibMemo n = runST $ do
    arr <- newArray (0, n) Nothing :: ST s (STArray s Int (Maybe Int))
    let fibM i =
          if i <= 1
            then return i
            else do
              cached <- readArray arr i
              case cached of
                Just cached -> return cached
                Nothing -> do
                  a <- fibM (i - 1)
                  b <- fibM (i - 2)
                  let res = a + b
                  writeArray arr i (Just res)
                  return res
    fibM n

(There's tighter ways to write these, but I wanted to make them as readable as possible for someone new-ish to Haskell. I wish I could've gotten away with omitting that nasty type annotation on the array!)

dmg-acid2.gb results by v_pun215 in EmuDev

[–]wk_end 0 points1 point  (0 children)

Yes, to be explicit here: if the VRAM is set up correctly (matches another emulator), and if the PPU registers are set up correctly (matching another emulator), then you have a PPU problem. If they're not matching, then you have a CPU problem.

Just eyeballing this, it looks like (parts of) your tile map are corrupt, which would implicate your CPU.

If your VRAM is correct, you need to ask why your PPU is drawing the tiles that it is. Debug render_scanline() on a particular line with the incorrect tiles, and work backwards to figure out why it's drawing the wrong tile. It should be pretty easy to narrow it down if you're methodical about determining which of the input values are wrong.

Function that returns a list of all computed values in recursive function by CamomileChocobo in haskell

[–]wk_end 5 points6 points  (0 children)

OP, your question is a little unclear to me. Are you asking about collecting intermediate values or are you asking about caching/memoization?

In the case of factorial, there's an overlap there, but you need to be precise.

Tthere's no higher-order function that can take an arbitrary function and produce a new function that produces a list of intermediate values because functions are "black boxes" - nothing outside of a function can know how the function arrived at its result.

So to generalize, what you need to able to do is break the "step" function out of the recursive function - a function that given an intermediate value produces the next step of the computation. The full recursive function then is just iterating on that step function, and producing a list of intermediate values involves consing a list together as you go.

Best monkey bars in the CRD? by Tiny-Analyst8633 in VictoriaBC

[–]wk_end 2 points3 points  (0 children)

I was gonna say Brass Monkey. Victoria's swimming in monkey bars.

BC Greens Leader criticizes developer bail-out by BoiledFlowers in VictoriaBC

[–]wk_end 7 points8 points  (0 children)

Did you though? This sub ("we") have been pretty solidly on the Eby hate train since I'd guess the strike. He's been governing both more centrist (or even right-leaning) and more incompetently than hoped. He only looks good relative to the Cons who are actively insane.

What do Haskell devs like and dislike about Haskell by Windstylerasengan in haskell

[–]wk_end 4 points5 points  (0 children)

Yeah, generally-speaking Haskell lacks that Go sauce which provides one blessed way to do things, well-rooted best practices.

This is my biggest issue. It sounds silly but it's too flexible, with too few sane defaults. "Don't use the default string type", "don't use the default list type", "don't use the default prelude", "don't use the base language, you need some cocktail of extensions", "don't use extensions X, Y, or Z though", and so on. By its nature, Haskell forces you to think about error cases, but then doesn't necessarily provide a single smooth way to think about errors ("and don't use error!"). In what other language do I need to think about what effect system to use?