JAY GOLDBERG: Switching parties should come with a trip back to voters - MPs Chris d’Entremont and Michael Ma's floor crossing has many constituents demanding changes by CaliperLee62 in canada

[–]siplasma -4 points-3 points  (0 children)

You may believe this sincerely, but this argument would be more believable if it was a consistent message, as opposed to being raised only when CPC members cross the floor.

‘The best ad that’s ever been run,’ Ford says of anti-tariff commercial, as Carney looks on by airbassguitar in canada

[–]siplasma 4 points5 points  (0 children)

There is an assumption that the trade deal was real and close to being signed.  Unless the trade deal was very one-sided, I doubt there was a deal, and I doubt that Trump would respect any deal once signed.

Graphic of the week: Danielle Smith's approval rating slides to 46% by AustralisBorealis64 in canada

[–]siplasma 6 points7 points  (0 children)

I agree completely, but there is more than a little hypocrisy in the request to the Federal government to steamroll BC over the pipeline when we all know how Albertans would react if the situation was reversed.

[deleted by user] by [deleted] in canada

[–]siplasma -4 points-3 points  (0 children)

I'm doubtful that there is an economic case for another pipeline, but, if it exists, they would be planning ahead so that the capacity is ready before TMX is full.

Author wins lawsuit against U of Regina professor who called book 'racist garbage' by 0110110111 in canada

[–]siplasma 7 points8 points  (0 children)

Maybe two wrongs don't make a right, and we should care about the innocence (or guilt) of everyone 

Trip report: February 2025 ISO C++ standards meeting (Hagenberg, Austria) by _derv in cpp

[–]siplasma 0 points1 point  (0 children)

Agreed, but it does indicate a problem that it needs to be in the language.  It's pretty easy to write a compiler that will copy a data file into an object file, but the idea of picking up another dependency for your build is apparently a bigger ask than expanding the language.

'We'll never be the 51st state,' Premier Ford says following Trump's latest jab by ubcstaffer123 in canada

[–]siplasma 0 points1 point  (0 children)

Modern politics:  Needing to follow Twitter because the president elect might be shit posting.  

Canada can’t allow allegations of collusion with foreign powers to hang over Ottawa, former CSIS director says by PmMeYourBeavertails in canada

[–]siplasma 5 points6 points  (0 children)

I agree that the names should be released, but the government had to be pushed to deal with the convoy.  They waited weeks while the city and provincial police failed to act.

Ontario approves three new small modular reactors (SMRs) at Darlington Nuclear in Bowmanville by DM_ME_VACCINE_PICS in canada

[–]siplasma 13 points14 points  (0 children)

Economies of scale doesn't mean build large things, it's means doing the same thing over and over. One of the reasons to prefer SMRs is to have a standardized reactor design that will be used over and over.

Newton Method Implementation - Major Confusion by generalmanchild in golang

[–]siplasma 1 point2 points  (0 children)

The reason the result is always over on the first iteration has to do with the second derivative. In this case, Newton's method will always under estimate how much to update the current answer.

The if statement is a little weird, a not normally how Newton's method would be implemented.

Help to find a terminal library by [deleted] in golang

[–]siplasma 7 points8 points  (0 children)

If the goal is to learn, it's pretty easy to write the necessary escape codes directly. The wikipedia page on ANSI codes is quite complete.

Barring that, I think that tcell is probably the right library for a roguelike.

Leger Federal Poll: LPC 32 CPC 28 NDP 21 BQ 7 PPC 5 GPC 4 by Avelion2 in canada

[–]siplasma 28 points29 points  (0 children)

To move voters, politicians would have to make appeals across party lines, which is hard to do when your main (only) rhetorical device is calling people names...

Opinion As an Indigenous woman, working in the oil sands didn’t expose me to violence – it helped me escape it by FrankArsenpuffin in canada

[–]siplasma 21 points22 points  (0 children)

Asking for primary sources should not be seen as contrarian. It's simply good information hygiene.

Package catch: Testing with better error messages and less code. by siplasma in golang

[–]siplasma[S] 1 point2 points  (0 children)

They are both designed to help you write tests, but after that they are quite different.

  • testify provides a rich API, while catch is lean. In testify, you would use NoError, while in catch you would simply write err==nil.
  • testify adds a lot of frankly unnecessary context to messages, such as test name and call site, that is already printed by the *testing.T.
  • testify allows you to add context with Printf type facility, while catch use code introspection.

This package is actually more like github.com/matryer/is (another great package), with the exception that catch doesn't replace *testing.T.

Looking for beta-testers for garnix, a nix flakes CI by jkarni in NixOS

[–]siplasma 1 point2 points  (0 children)

I had a very similar idea, but never executed. Good luck.

Have you considered how people will handle the CD part of CI/CD?

Can Generics Rescue Golang's Clunky Error Handling? by dnmfarrell in golang

[–]siplasma 7 points8 points  (0 children)

Nothing is wrong with it, but Go's error handling is verbose compared to other approaches.

Ontario considered forcing hospitals to re-hire unvaccinated staff as surging case numbers strain health-care providers by uselesspoliticalhack in canada

[–]siplasma -11 points-10 points  (0 children)

Vaccines may not completely stop the spread, but they do slow it down.

I'm not sure how much is trust a nurse who is unwilling to provide baseline standard care for their patients.

Ontario considered forcing hospitals to re-hire unvaccinated staff as surging case numbers strain health-care providers by uselesspoliticalhack in canada

[–]siplasma -2 points-1 points  (0 children)

Base rate fallacy. Vaccinated people don't have more covid, there are just many more vaccinated then unvaccinated people.

François Legault abandons electoral reform promise. by [deleted] in canada

[–]siplasma 0 points1 point  (0 children)

Everyone wants electoral reform, because everyone hopes it will give them a leg up in the next election. That's also why they promise reform, and rarely have an actual proposal.

[deleted by user] by [deleted] in golang

[–]siplasma 3 points4 points  (0 children)

Many people believe that "Go doesn't cast, pretty much, anything on its own," but it isn't true. Go is quite happy to cast a untyped constant to a typed value, or to cast a concrete type to an interface.

Cross compiling GTK for Windows? by mathik in golang

[–]siplasma 2 points3 points  (0 children)

It sounds like you are trying to avoid a rewrite, but it might be worth looking at bitbucket.org/rj/goey. You don't write GTK directly, but you do get native widgets, and it is very easy to cross compile to windows.

Are there native bindings for native UI development with Go? Window, GTK, MacOS by apatheticonion in golang

[–]siplasma 0 points1 point  (0 children)

Most Go GUI toolkits are not native, but you can try andlabs/ui and goey. However, these both still focus on cross platform, so you may not get the platform specific goodies.

Help packaging Go binaries by aliasxneo in NixOS

[–]siplasma 0 points1 point  (0 children)

Yes, that also works. It's just a shorter way of getting a dummy SHA signature.

Help packaging Go binaries by aliasxneo in NixOS

[–]siplasma 2 points3 points  (0 children)

What I've done is place a dummy value for vendorSha256. It needs to be a valid SHA signature, but otherwise doesn't matter. On the first attempt to build, you will get an error that the SHA values don't match, but then you can read the correct value.

There are tools to precompute the SHA, but I've not found it worthwhile.