Last time I checked (a few years ago), it was cheaper to send letters and small packages from South Korea to Germany than from Germany to Germany. The delay was also not that big (maybe 1-2 weeks instead of 3-5 days). I already envisioned an arbitrage business for this: a simple page where people upload their non-urgent letters as PDFs, and I just print and mail them from Korea.
Was hoping this was about WebAssembly/WASM. You used to be able to import rust directly into your JS with Parcel, but sadly that feature was dropped in Parcel 2. Is there a simple pipeline for compiling and typesafe binding of Rust-WASM?
It's pretty straight forward to include the output of `wasm-pack` into a vite project. The output is a node module in a folder with the wasm files and a single "main" JS file.
Because I wanted to load WASM in a web worker for my project [1] I needed to use vite-plugin-wasm and `wasm-pack build --target web` but without that constraint you should be able to import the main JS file from the wasm-pack output directory using wasm-pack's default `bundler` target and no vite plugins.
I'm literally building a project right now that executes compiled WASM Components, theoretically written in any language but right now I'm using Rust for both parts (the "runner" and the WASM Components).
But, I did a brief exploration to see how I could compile those WASM Components in any language (including JavaScript), and as far as I can tell, if you could use ComponentizeJS + jco for compiling JavaScript to WASM Components, and if you need to run them in JavaScript too, StarlingMonkey seems to be able to handle that.
I'm not sure about the last part, typesafe bindings would require you to use TypeScript or similar, not just JavaScript. I don't use TypeScript myself so I don't know if the approach above would give you any type safety on the Component-implementation side.
Kind of tangential to this package, but I've always loved this filter query syntax. Does it have a name?
I first encountered it in Django ORM, and then in DRF, which has them as URL query params. I have recently built a parser for this in Javascript to use it on the frontend. Does anyone know any JS libraries that make working with this easy? I'm thinking parsing and offering some kind of database-agnostic marshaling API. (If not, I might have to open-source my own code!)
I also think about this regularly. I'm with the author regarding the metrics (time efficient, healthy, skill component).
But still, I find strength training extremely boring and going to the gym annoying. I tried a few times but it never clicked for me – what am I missing?
Does anyone have other ideas for incorporating exercise into my daily routine? I enjoy a bit of walking, cycling, and doing 5-10 minute mobility exercises, but is that enough? Maybe I could find one or two strength exercises I can do quickly without getting boring or too difficult, ideally without any gear.
Finding something enjoyable that keeps you moving can be really tough. Just gotta keep experimenting.
You definitely don't have to force yourself into the gym. It'l just frustrate you, and you won't progress as much as you could if you enjoyed it.
I've been weightlifting for 12 years now, but I HATED the gym for a long time before it clicked for me. (Doing the Starting Strength program was "it" for me. It was something I could progress with that didn't feel like bro-science, and I could do it alone, as I HATE working out with other people. I'm not saying this to push SS on you; the point is that you are much more likely to do something consistently if you enjoy it!)
I would say that 30m of activity per day is enough for most people as long as it's consistent and your food diet is balanced. Believe it or not, Americans work out much less than this on average! (Average Exercise minutes have been going up over the years, fortunately.)
To the latter part of your question, I would look into bodyweight compound exercises. These don't require gear (resistance bands at most) and can be WAY more challenging than loaded weight training. You can also fit a circuit into 10min/day easily. This is how I kept my strength levels from regressing too much during COVID.
Good weightlifting should rarely feel boring - maybe only one week in every 4 or 5 during a de-load week (when I'm aiming for 3-4 reps-in-reserve), but boring feels good then because you're resting after weeks of hard work. If anything, you should feel fearful when training. A good weight-centric workout, at least when targeting hypertrophy, hurts. I feel equal parts scared and excited. I think what you're missing is intensity.
Good tracking is the best way to make it interesting. If I know I did 120kg for 7 on the bench last week, I know I need to beat it either by increasing weight or increasing reps. I remember how hard it was but I've done it, so I need to beat it. It's fulfilling in ways that I find other workouts just can't be.
> If I know I did 120kg for 7 on the bench last week, I know I need to beat it either by increasing weight or increasing reps.
This is the case for some of us, yes, and for us, this is obvious.
What I've found, however, is that most normies don't actually have an internal drive to monotonically increase stats. For 90% of people, vanity is the only driver that works.
To be clear, when I said that I didn't mean the joy is in chasing numbers. That's a bit reductionist. Some people enjoy that, but I was implying that the downstream effects of chasing numbers are the exciting part; challenging yourself and going through suffering to get a good physique or lift heavier things. Increasing reps/weight is the way to increase workout difficulty, thereby stimulating growth.
I don't think there's a fitness discipline out there that can put you in as much 'injury-free' pain as strength training does - at least, not acute pain like after a heavy leg press. It's almost sadomasochistic, which is why I think calling strength training boring is a little off the mark.
> I was implying that the downstream effects of chasing numbers are the exciting part; challenging yourself and going through suffering to get a good physique or lift heavier things.
Again, I still don't think you understand the normie mind. They don't want a challenge. They don't want to suffer. They don't want to put in any effort at all. There is a very large market for anabolic steroids, SARMs, and GLP-1 agonists, and it's not because normies care about the struggle.
The only time I've ever seen a normie care about their fitness is when it's been connected to their vanity.
Nothing really, I think it's just a personality trait.
I have tried picking up pretty much every single form excercise the article mentions plus some more, and I just couldn't bring myself to keep on doing it. I even tried of really forcing myself and it made me feel more miserable. Now I essentially gave up and stopped trying to change myself in that area. Though I'm aware that it's not impossible that getting older might somehow put me mentally in a different state which doesn't make every repetitive excercise feel like an incredible chore.
Instead I just keep on doing what I like, but since I'm getting older I do in a slightly different way than I used to, to mimimize risk: excercise which requires technique, skill, creativity. Be it frisbee, skating, bmx, bouldering, ... A good session of those keeps my spirits up for several days. And it keeps the body in shape. But I do think twice before attempting things above my level, and usually just don't, and will back off in case something starts to feel wrong. Recovering from injuries takes waaay longer when you're 40+ than when you're 20 and it's just not worth it anymore for me. To be clear: sure, strength training has some skill to it, but let's be realistic here: it's not exactly in the same ballpark as what one needs for bouldering for instance.
Also nowadays bouldering is my main excercise and the thing is that unlike the OP I have a very good experience with it when it comes to health: I don't have pain, plus I have the impression that unlike typical strength training and basic yoga/pilates/... routines climbing at a somewhat decent level will make you use a ton of mostly upper body muscles you don't use otherwise (ok, you can do that with strength training but you're going to have to do quite a lot of different things to hit them all). And that seems to make the body more resilient against injuries. Anecdotal though.
Anyway, and now to the point: I'm convinced that as far as your body goes it's possible to make climbing akin to the mentioned 'boring tech' but without actually being boring. Do it long enough and become super aware about the moves, and there's no unknown failure mode.
Kettlebells are the first thing that comes to mind, for something that’s quick, effective, and convenient.
In a few minutes you can do some swings and Turkish get ups.
It’s the thing I’ve stuck with most consistently over the years. I think I heard about it from Tim Ferriss [0], and also found the book ‘Kettlebell Simple and Sinister’ by Pavel Tsatsouline to be a solid resource.
The idea that I could do something for just 10-20 minutes per week was appealing. From the link below:
”I…purchased one 53-pound kettlebell. I did nothing more than one set of 75 swings one hour after a light, protein-rich breakfast, twice a week on Mondays and Fridays. In the beginning, I couldn’t complete 75 consecutive repetitions, so I did multiple sets with 60 seconds between until I totaled 75. Total swing time for the entire week was 10–20 minutes.”
> I find strength training extremely boring and going to the gym annoying.
FWIW during the pandemic I bought a set of PowerBlocks [1] and a reasonably cheap folding bench, and I've never gone back to the gym.
I also do Myo reps for all my lifts except for the compound leg lifts: they're a lot faster to get through. The result is that most of my workouts are half an hour or less, 5-6 times a week, with no travel time.
As far as boring -- for one, between having a kid and working from home, that's about the only time I have to listen to podcasts or audiobooks. For two, I find the focus of having to push really hard to go to failure for a set requires a focus something like meditation. And there are so many different kinds of exercises you can do, I never really lose interest.
I would just like to add NÜOBELL as an alternative to the PowerBlock, as they're formed more like a regular dumbbell compared to the PowerBlock. Had mine for years, works just as good as on day one. Ultimately, doesn't really matter what your choice is as long as you're using them.
NÜOBELL is sold under the name SMRTFT[1] in the US, and as NÜOBELL in EU[2].
You don't have to lift, many other ways to be fit. But I have been lifting for over 10 years, and powerlifting is the reason why. I don't think I could do "fitness" weights routines, they lack a lot of challenge, progression and skill aspects of powerlifting.
Bodybuilding has certain vanity to it that I appreciate but don't participate in.
Every now and then I switch it up into functional stuff, usually aimed at mountain biking and climbing muscles.
But I always miss and come back to the compound lifts, the personal, sporting nature of powerlifting.
Depends what your goals are - if those include planning to be healthy into old age, then definitely not.
For me weightlifting is somewhat fun to figure out how to get control over my will to get my body to do things it doesn’t want to do. But it’s also rewarding in that I see changes in my body over time that make me feel good, and can only be achieved by putting in the effort; and it feels responsible long term since health outcomes in general are much better in people with muscle mass.
Yeah I find that when people say they are strength training and find it boring, it's usually because they aren't challenging themselves with heavy weight.
I agree. Loading up a bar you're not sure you can lift... staring at it, prepping form, breathing deep, planning your move, then pushing as hard as you - safely - can... it's very engaging.
My problem is with the rest period, not the lifting part. I wait 90 second between each set, it's really annoying. I read a book usually, or browse HN, but it's a very "interrupted" thing.
Nothing, TBH it's just not for everyone. I like how boring strength training is. I like listening to podcasts for a couple hours and taking long rests between sets with little bursts of dopamine rush getting the perfect reps. But IMO there's also big genetic component, some people don't respond well to strength training, and after a while, unless you dedicate inordinant time to progression it does feel like pushing rope. Some people hit the wall very early, and the rewards feel meagre. Alternatively, if you build a good base after a few years of training, you can do fuck all to maintain and accrue all the beneifts (look good naked, increased metabolism).
Depends what your goals are - if those include planning to be healthy into old age, then definitely not.
For me weightlifting is somewhat fun to figure out how to get control over my will to get my body to do things it doesn’t want to do. But it’s also rewarding in that I see changes in my body over time that make me feel good, and can only be achieved by putting in the effort; and it feels responsible long term since health outcomes in general are much better in people with muscle mass.
To be honest I don’t think there is any sport or physical activity that you can fully replace strength training with. All the fit-looking athletes you can imagine, also strength train to become that way.
My opinion on strength training being essential for health into old age largely stems from Peter Attia’s recent book Outlive [1] where he goes into great detail about the topic, and every piece of medical research I’ve ran into only seems to underline that having sufficient muscle mass is the single biggest intervention you can do to impact your long term health. Do all healthy old people do it? No, but if the question is what can you do to improve your odds, it seems silly to throw away the biggest lever you have (though it’s anyone’s personal choice to risk it and hope for the best).
(If you think he’s a quack and his message is wrong then I’d love to see some research pointing to the contrary, that having muscle mass is detrimental or at least does nothing significant for your long-term prospects)
The point about athletes is really more about pros, I should have been clear. I can guarantee you that almost every accomplished pro athlete in most sports, from running to swimming to cycling to basketball to gymnastics to soccer and the list goes on, incorporates a significant amount of strength training into their lives; there are probably some genetic freaks or sufficiently ‘roided mutants who don’t need to, but I assure you that Michael Phelps and LeBron James didn’t get their physiques purely by swimming and playing basketball.
And in case you think I’m talking about weight lifting for the purpose of competing at a bodybuilding show or strongman competition, that is not what I am referring to; I am referring to doing strength training to the extent that you have a reasonable amount of muscle mass. I don’t care if it’s traditional weight training or if it’s calisthenics or something else, so long as you don’t end up with no muscle tone and probably experiencing or prone to significant metabolic disease like most unfit people these days.
I agree that muscle tone is vitally important for human health and maintaining 'fitness' into middle and old age. However muscle tone and strength can come from many things, a lot of which don't need to deliberately include any form of 'strength training'.
I also agree that many modern professional athletes include specific strength training in their training regimes but this is a fairly recent phenomenon (e.g. tennis and swimming really only from approx. the 80s/90s on) and I don't see this as critical to them being 'fit-looking athletes'; it's only become necessary in a kind of arms race type of way, and in my opinion, with an unfortunate impact of modern competitive sport favouring 'power' over grace and technique. (I personally prefer the physiques of previous generations of athletes to those of most of the top athletes today, particularly the female ones.)
Why I responded fairly forcefully to your original comment is because it was a reply to someone who hadn't found strength training appealing and I perceived your reply as shutting down their thinking that some other option could be found that would build some strength and give other positive benefits of exercise to the questioner, including enjoyment and fulfillment.
I treat it as an exercise in understanding and pushing body. Like keeping track of different parts of my body feel. Is the load distributed evenly. Is there an imbalance in perception of load. Does the movement feel smooth. I think it all falls under proprioception. I even record my sets, sometimes, and review the movements. It becomes a game of understanding limits and pushing them. Although, the feedback cycle is slow.
While walking around look for a set of parallel bars/horizontal bar in a park near you. Typical exercises you could do with them both take little time and really load major muscles. Just hanging for a minute from a horizontal bar regularly is good for your spine column.
I pair it with something else I enjoy doing. Like listening to an audio book or watching tv show. Then I make a point of not watching that tv show out of the gym. If I want to see the next episode, I have to hit the gym.
To add another voice, lift even though it is annoying for 3 months, after that you will want to lift because you’ll notice how you feel (and look!) without it.
Best thing I ever did for exercise was hire a personal trainer. 1) I went to the gym with 0 thought about what I would be doing that day, just turn up and the trainer said "lift that 10 times" and I did. 2) I finally understood 'gym buddies' as here was I renting one.
100% this can be replicated without a trainer - but having a clear and exact excercise plan for each session and someone to talk shit with between sets makes a world of difference.
Music can help, but it's highly dependent on personal taste. I love all genres but hip-hop beats and high energy playlists help me trudge through my routines.
I like using the calorimeter on the cardio equipment because it can precisely quantify my progress (which is one of the few motivators I have). I've heard criticism that these aren't accurate, but as long as they are precise (I'm sure I'm mixing up the two, apologies) then they can measure progress.
Quantifying everything helps me count down, so I just keep saying "3 sets of 10 and I'm done on this machine". If I feel bored I'll go walk around the track and then do another 3 sets.
All of this is anecdotal noob drivel to anyone who seriously exercises, but I definitely speak from authority as someone who consistently struggles with motivation and has broken through it and relapsed into laziness multiple times.
Pretty neat! I appreciate the time that went into making the graph render nicely.
I was recently having fun with Reactflow myself. It took a bit of time to figure out custom nodes and edges. I found that ELK 'layered' (with some tweaking of settings) produces very nice layouts, but of course, we can't use its edge routing in real time if we want to allow users to move nodes around. Thanks for pointing me to @tisoap/react-flow-smart-edge ! I also came up with a similar `wasManuallyMoved` logic. https://github.com/3rd/tsdiagram/blob/66b186e85bf176e47128d0...
Reactflow's docs have a decent example for using ELK but I wish it went into a bit more detail regarding these choices.
Glad we share the same pain!
I'm not happy with the edge routing, it's ok in most cases, but it could be so much better. It's definitely where most of the upcoming development time will go.
I'll bite the bullet and make something custom with what I can learn from react-fow-smart-edge and https://medium.com/swlh/routing-orthogonal-diagram-connector..., I really really want the edges not to overlap, but be a bit spaced out, so it's clear where each one goes.
I've been considering adding a `select` function, but I was concerned with the overhead of recreating the select case each time, and wanted to reserve it for a time once I've mulled over my options (I'm aiming to avoid making breaking changes, even though it's pre-v1).
With receives, there's a value attached, and that presents some difficulties regarding typing (for TypeScript).
You have given me an idea, however: I _might_ be able to wrangle together a mechanism that avoids making it a two-step deal (get the index, then resolve the type). It'd probably support only a subset of the functionality, though.
It's on my list to add a simple example to the README using the `Chan` class. Communicating with a single channel (with or without abort support) is very simple, and I'm happy with the API for that.
In addition to my other comment, I agree with the parent here. I appreciate the attempt to mirror golang’s naming, but it would be vastly more readable if you used Channel instead of Chan, etc.
This is cool! Note that this problem is fairly specific to Berlin (and probably some other places in Germany). I just moved to Heidelberg, and this city offers registration appointments both via video chat as well as in-person, with slots available next day.
TIL. This actually solves my main need for custom scrollbars.
Now the only remaining use case is when designers don't design components around default scrollbars. Sometimes the default one just looks too big compared to the size of the component. But this can be solved with design (don't cram stuff into small fixed boxes that then need to be scrollable).
Hard to see a real-world use for this but reading the code and docs is pretty interesting. The code taught me some cool tricks. Good job!
Some of the binding API is a bit weird, like that object with `deps` (State-derived properties). Maybe providing a function for this would be more ergonomic.