1,115 karma · joined Mar 6, 2008 (18y ago) · 292 submissions
comment 1mo ago · link · parent
Millions of slips of paper are very easy to burn, and print...
E-votes just make it cheaper/easier to vote in free countries. I don't think we have invented a truly dictator-proof voting system available yet.
comment 1mo ago · link · parent
comment 1mo ago · link · parent
I, as a cake seller have a cost i need to pay to the network every month, from my total revenue it's some percentage (depending on ratio of cash vs card). I obviously add that percentage to my cake prices to make up for that. Both cash and card payers pay the same amount for the cake, thus they share the price hike equally.
comment 2mo ago · link · parent
In my experience it mostly comes down to the harness (or lack of) that you use. Something like 'superpowers' can be pretty verbose and hash out things for a long time (and use a decent amount of tokens) but the output is pretty decent. The better instructions and the more brainstorming you do initially the better - as the subagents encounter fewer issues.
Without a harness you could try a direct port (prompt: 'convert x to y, don't bother me') and if the languages are roughly compatible you could get a seemingly working port much quicker but likely with major hidden issues. A comprehensive testsuite is obviously a must.
comment 9mo ago · link · parent
comment 9mo ago · link · parent
EDIT: Missing fillets and chamfers we're also a big problem for me - probably I'm just a newbie maker and want unreasonable things, but still.
comment 9mo ago · link · parent
After doing the tut I can say that 1.1 is very nice, i can uninstall Fusion and Solid Edge finally :)
The guide i followed, no relation to it whatsoverer https://www.youtube.com/watch?v=wxxDahY1U6E
comment 1y ago · link · parent
Example: the loyalty card app for a local store chain - there's no money in it, I can just get some discounts when I use it. So an attacker would have to steal my phone, somehow unlock it, and then they can use my loyalty card (btw which is free to obtain for anyone and there are no tiers) to get some discounts. And for that, they have implemented a pretty decent root checker which i had to put in some effort to overcome. And there are many more like it.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
I am talking from some experience as I had to convert circa 40k lines of untyped code (dicts passed around etc) to fully typed. IIRC this behaviour would have masked a lot of bugs in my situation. (I relied on mypy at first, but migrated to pyright about 1/4 in).
But otherwise it's good to hear that this is still in progress and I wish the project the best of luck.
comment 1y ago · link · parent
Instead it could mark it as an error (as all the other checkers do), and if that's what the user really intended they can declare the type as list[str | int] and everything down the line is checked correctly.
So in short, this seems like a great place to start pushing the user towards actually (gradually) typing their code, not just pushing likely bugs under the rug.
comment 1y ago · link · parent
> pyrefly, mypy, and pyright all assume that my_list.append("foo") is a typing error, even though it is technically allowed (Python collections can have multiple types of objects!)
> If this is the intended behavior, ty is the only checker that implicitly allows this without requiring additional explicit typing on my_list.
EDIT: I didn't intend my comment to be this sharp, I am actually rooting for ty to succeed :)
ORIGINAL: I am strongly against ty behaviour here. In production code you almost always have single type lists and it is critical that the typechecker assumes this, especially if the list already has same-type _literal_ items.
The fact that Python allows this has no bearing at all. To me having list[int | str] implicitly allowed by the typechecker seems like optimizing for beginner-level code.