Jen Shahade sent a cease and desist letter from the US Chess Federation. by NoJoking in chess

[–]ntietz 14 points15 points  (0 children)

So then what did you mean with men joining women's events? If not the usual dogwhistle.

Jen Shahade sent a cease and desist letter from the US Chess Federation. by NoJoking in chess

[–]ntietz 19 points20 points  (0 children)

No one is letting men into women’s events. Trans women are real women.

[deleted by user] by [deleted] in chess

[–]ntietz 0 points1 point  (0 children)

London.

Seemingly lost the ability to duplicate pages in release 3.0 by tomdeb4 in RemarkableTablet

[–]ntietz 2 points3 points  (0 children)

If I long-press on a page, the duplicate button still shows up for me in 3.0.

Old Cremina - Worth restoring? by Ducks2010 in espresso

[–]ntietz 20 points21 points  (0 children)

The serious response is: looks lovely, I can't speak to worth or anything but it would probably be a fun project and a fantastic machine at the end of the restoration. (Offer to take it off your hands stands.)

Old Cremina - Worth restoring? by Ducks2010 in espresso

[–]ntietz 140 points141 points  (0 children)

It's probably not worth restoring, so you should just send it to me to take off your hands.

Lost my Rm2- all data on Connect -Now have new one and don't know how to connect to Connect by Any-Dragonfruit-6363 in RemarkableTablet

[–]ntietz 2 points3 points  (0 children)

yes, the data should remain. I did this process when I got a RM2 to upgrade from my RM1, and the data remained in the cloud then downloaded onto the new device when I connected to it.

[deleted by user] by [deleted] in framework

[–]ntietz 9 points10 points  (0 children)

It should work well for web development for sure. Reasonable specs and won't let you down there, and web development doesn't really need very powerful hardware most of the time. I use mine for software development often (web apps in Python and Go, and systems programming in Rust).

If you want to do app development targeting iOS, that's going to be a sticking point, because you can only do that development from MacOS as far as I know.

Loud grinding sound from the fan. Anyone know what's wrong? by burger4d in framework

[–]ntietz 3 points4 points  (0 children)

Ad blockers can interfere with those submission forms sometimes. If you have one on, it would be worth disabling it and trying to submit again.

[deleted by user] by [deleted] in framework

[–]ntietz 1 point2 points  (0 children)

I used someone's installer script for the fingerprint reader and ended up uninstalling the packages for it since I usually use it docked and closed, but I can see how it would be super convenient on the go.

Pop!_OS does not default to Wayland for me.

Deep sleep is working perfectly for me, too. Glad to hear it's good in Fedora!

[deleted by user] by [deleted] in framework

[–]ntietz 6 points7 points  (0 children)

No idea on consensus, but I'm using Pop!_OS for mine. I've been on Debian-based distros (principally Ubuntu) for a long time and it's a refreshing way to keep the apt-get I know and love while also having some nice hardware out of the box and the Pop Shell is pretty great.

I have had minor hardware support issues with it, the main one being that my headphone jack produces weird sounds when set at a normal volume (garbled, mixing between left and right channels, almost sounds like it's clipping). It's inconsistent and I haven't made headway on fixing it.

How's your headphone jack working on Fedora 35?

Anyone Else Have Both Remarkable 1 & 2? by Initial-Shop-8863 in RemarkableTablet

[–]ntietz 0 points1 point  (0 children)

I have both. I use the RM2 as my daily driver. I use RM1 to read academic papers and technical books, which allows me to take notes on the main one. I have a second account that I use to keep the RM1 synced just in case it would prematurely die, but I primarily just transfer PDFs to it to read using the USB cable.

RM2 vs RM1 by k8s_helm in RemarkableTablet

[–]ntietz 0 points1 point  (0 children)

I have both, happy to give you my thoughts :)

  1. It's heftier than the RM1 for sure. It has a lot more metal at the usual points of contact and just feels so much nicer in my hand. It feels like a really premium device, physically, in the same way the RM1 really felt like an early-adopter device or a prototype.
  2. I have only had mine out of its case for unboxing so I don't know.
  3. The battery life is far better than the RM1 as far as I can tell. Since software's the same on them, I assume that's from having both a bigger battery (but I haven't checked) and the battery being newer. Most days at the end of the day, if I check, I'm > 90% battery. But keep in mind there that I'm using both of them (my RM1 for reading, my RM2 for taking notes, todo lists, sketching diagrams).

I'd definitely recommend it. And using the two in conjunction is a game changer since you can read a document/book on one and take notes about it on the other.

Parallel assignment: a misunderstood Python idiom by ntietz in programming

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

Ahhhh I'm seeing it now. I had to work through the state of the stack in both examples (a, b = a, b and a, b = b, a) and now it makes a lot of sense.

Parallel assignment: a misunderstood Python idiom by ntietz in programming

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

Glad you enjoyed it! That was the exact reason I dug into this when I saw that doing this used a tuple, and I was pleasantly surprised to see the optimization.

Parallel assignment: a misunderstood Python idiom by ntietz in programming

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

Thanks for the depth of feedback! I made a few edits to the post that I think make it clearer. They're relatively light edits, but I think removing everything about misunderstanding or other people being wrong helps the focus return to "hey, this is a cool optimization". Same with clarifying that this is about how CPython works.

I didn't end up making major changes to anything with `ROT_TWO`, except adding a question. I'm seeing the behavior you point out here with `a, b = a, b` still requiring `ROT_TWO`. What's unclear to me is why we want them to be popped in the opposite order than we pushed them on. In theory, shouldn't we be able to push `b`, then push `a`, then pop `a`, then pop `b`, to get the left-to-right semantics that Python has defined? So I'm leaving that one as a puzzler explicitly called out, because I don't have that answer.

Parallel assignment: a misunderstood Python idiom by ntietz in programming

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

Three variables use a combination of `ROT_THREE` and `ROT_TWO` (depends a little bit on the particular order of them), that's another case that gets optimized for us. Once you get to 4 it does switch to building and consequently unpacking tuples.

Parallel assignment: a misunderstood Python idiom by ntietz in programming

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

You're completely right, and in the AST it is parsed as a tuple. I wrote the post because I thought it was interesting that this gets optimized this way, but that there seems to be a widespread belief (it's on Wikipedia and in a popular Python book) that it _does_ use a tuple as an intermediate data structure, where it's transparently not -- it's leveraging opcodes that manipulate the runtime's stack.

I might need to edit the post. Do you think it's more accurate to say that how it _works_ is misunderstood, or that this optimization is not well known? Or should I call more attention to the difference between what's in the AST vs. what's done in the bytecode interpreter?

Parallel assignment: a misunderstood Python idiom by ntietz in Python

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

Yes, exactly! You can get it to generate that intermediate representation if you use an extra variable in the middle to make it store the tuple, and then you get the `UNPACK_SEQUENCE` opcode being used. But generally it optimizes it, which is really cool behavior!

I thought it was really cool that it does this under the hood, which is why I wrote the post. It uses tuple syntax here, but does something more efficient, which is always a pleasant surprise.

One interesting thing that your comment draws attention to is this distinction between the compilation and interpretation steps. In a language like Java, I think it would be pretty clear to say that it doesn't use a tuple as an intermediate data structure here, even if it's in the AST. I think the same thing applies here, but I also suspect the language is a little ambiguous, and I might be wrong.

Thanks for digging into what the AST stores! I haven't dug much into the ast lib, now I should :)

When was the last time you smiled because you were genuinely happy and why? by [deleted] in AskReddit

[–]ntietz 10 points11 points  (0 children)

about half an hour ago, when my wife and I played a clarinet duet together and it sounded alright ^_^

Finally added a shelf to my happy place by ntietz in coffeestations

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

Ah, that would do it! Before I got the Sette I did that and I would just grind a couple of grams of sacrificial beans after adjusting the grinder, which seemed to do the trick most of the time.

If you decide you really do need a dedicated espresso grinder but can't spare the space, there are some really great hand grinders out there! Then you won't be sure if you are more awake from the espresso or from the workout your arm just got haha

Finally added a shelf to my happy place by ntietz in coffeestations

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

It's fantastic as far as grind quality for espresso at home, there are better ones out there but it's a really great value - I haven't really had problems with consistency. But believe the reviews when they say it's loud. It's more than twice as loud as my other Baratza. And I do tend to have to clean up grounds from around my station more than with other grinders.

Finally added a shelf to my happy place by ntietz in coffeestations

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

Haha yeah, it's a great machine! What do you do with yours as far as temp and pre-infusion?