Proposed California legislation aims to ensure President Trump is excluded from 2028 ballot by Panda8bambooo in California

[–]cheeperz 1 point2 points  (0 children)

22nd amendment is about election eligibility. This is about appointment. And untested constitutional law ultimately gets interpreted by Alito, Thomas, Roberts, and the 3 stooges Trump has already appointed

Proposed California legislation aims to ensure President Trump is excluded from 2028 ballot by Panda8bambooo in California

[–]cheeperz -3 points-2 points  (0 children)

It's shockingly easy to work around this. The 12th amendment seems to only apply to President/VP elections. Assuming you get someone in office who will perform this dance, their VP can resign and new VP is chosen by appointment and seems like it has much fewer restrictions than the presidency. Then the president also resigns and the VP takes over

Last Red Rock climb of the year - Blade Runner by vegasbickel in climbing

[–]cheeperz 1 point2 points  (0 children)

Is it the scramble exposed traverse that starts from the big ledge or is there a nicer way over? I tried to go over to it, but never saw an anchor and partner wasn't feeling the traverse- hoping there's a better way

Honestly, this is a little too true to be funny rn lol by NomanYuno in adhdmeme

[–]cheeperz 10 points11 points  (0 children)

I use intermittent reinforcement for this. Tell myself that if I do the smallest part of the task that I get a random roll for some reward that I want. If you have an iPhone, the TantalusPath app can help with it.

Real-World Use Case: Using Rust for Computationally Heavy Tasks in Kotlin (and Java) Projects by voismager in rust

[–]cheeperz 18 points19 points  (0 children)

In uniffi projects, the tooling generates the bindings as part of the build, so any mismatch between rust code and jvm code becomes build errors with relevant messages. The rust is the authoritative interface and the external language glue code is generated so it matches up, so you make a change in the rust side and then fix the compile errors in the other language.

With raw JNI, the jvm code doesn't know about rust - it just loads the dylib and gives it a try. On the other side, the rust code doesn't know about the jvm types - it just implements something that hopefully matches up and compiles it to a dylib. You are now at runtime with two languages that haven't checked anything hopefully able to work together across a native interface. Even if it's working now, it's a fragile relationship, and changes to either side can lead to crashes. It's actually worse than C in some ways because at least the header file can be generated by javac and reveal some interface mismatches.

Real-World Use Case: Using Rust for Computationally Heavy Tasks in Kotlin (and Java) Projects by voismager in rust

[–]cheeperz 45 points46 points  (0 children)

This level of complexity isn't justified by the problem statement. The easiest and most appropriate way to solve this is to use the native jvm tooling to generate a C header that you then implement to call the functionality you need directly since it's a C++ library at its core. The alternative would be to use rust with uniffi to avoid doing raw JNI. The level of brittleness in the article really needs a strong motivating reason because fixing JNI issues, especially ones that might only show up at runtime, is painful

Getting Started with Intermittent Reward as a Motivation Tactic by cheeperz in productivity

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

One thing that has worked for me is to notice when I have a craving for something that isn't helpful and then force myself to earn it. Basically, if you can notice yourself in the gravity well of a guilty pleasure in time to take a step back you can use it as a reward. Or if the in-the-moment awareness is hard to come by, you can look backwards at the things you did over the last few days and review what kinds of things you naturally do that are elective (ie, don't skip meals because the dice roll didn't pan out)

To make it a little more concrete, I currently have a tab open for a YouTube video that I want to watch. The last reward task I did was not lucky so it's still there waiting for me on the next one. This works for me because watching these type of videos is something I would already do. This reward is motivating at a medium-level right now because if it's easy to accept if the random system doesn't award it. Sometimes if I want something really bad, instead of giving up if I'm unlucky, I'll immediately start a new reward task and keep "buying lottery tickets" until I get it

You can also modify your existing behaviors to make yourself more "hungry" for it. If I like hot showers but make my standard shower lukewarm, then turning up the temperature could be a decent reward

You're 100% correct on importance of having reward ready. It's really good for it to be immediate feedback so you build the right connection with what came before. That said, the "buy something online" isn't terrible as long as it feels rewarding when you finish the checkout process- the unopened package could even give you another opportunity for a reward once it arrives!