Thanks that’s good to know
HN user
LecroJS
I had this problem too until I forced myself to use the `gcm` alias from oh-my-zsh’s Git plugin. IIRC it checks out to master if it exists, else main. It has almost entirely removed this distinction from my life.
Thanks. Do you have any places you would recommend buying from? I am guessing Amazon might not be able to meet this criteria.
So is that post’s sentiment: https://news.ycombinator.com/item?id=43725229
What did you dislike about connecting to Postgres from AWS lambda?
Well said. This can go even further by defining JavaScript code as functions in a sheet. For example, if someone pays you back, you click a checkbox in the corresponding cell, and it runs your code to send them a thank you email.
+1 for Rectangle. It’s the first thing I install after homebrew on any new Mac. I came from Spectacle after EOL and was pleasantly surprised at the additional features (like window snapping) + support for Spectacle binds. If you want to try it out, it’s as easy as `brew install --cask rectangle`
Super smash brothers melee, and it still has a strong grassroots competitive scene. It’s a work of art made in only 9 months
Thanks for the extra details, I think I understand what you’re looking for.
Have you looked into something like this[1] for generating the macro as an ahk file? Full disclosure: I have not used it, but it seems like what you’re looking for. If you find that it suits your needs, I’d use that to record the macro and then wrap it in a loop from 1..N where N is based on the Fn key you press. That should do the trick unless I’m misunderstanding.
I wish I could be of more help, but this repo seems like a decent starting point for your use case.
Apologies if the formatting is poor as I am on mobile.
This is hilarious. The “final thoughts” section really hit home for me. Thanks for sharing
I have an adjacent, simple scripting story.
Battlefield 2042 recently had an XP glitch where you could go into a server with BF3 settings, throw ammo to a teammate and get XP for the resupply. Naturally there were several servers dedicated to this with 128/128 players and everyone on one team all standing at one objective.
Rather than actually play the game to level up and get the weapons/gadgets I wanted or even play this accelerated XP mini game, I wrote an ahk script to automate the equipping and dropping of the ammo crate so that I could do other things.
I only had to let it run for a few hours before I was max level, and the 10 minutes of scripting gave me the benefit for something I wouldn’t otherwise subject myself to.
Can you expand on “from a specific moment till done” and possibly provide an example? What’s the exit condition? Time? A ui change? Seems like you could write a do_macro function and bind a key to loop it till “done” but I may be misunderstanding
Good to know. Thanks for taking the time to share your insight
Any recommendations for a under desk treadmill? I’m purchasing a standing desk soon and this seems like a great addition
Any source for this? I’ve never heard of this and am curious to learn more.
I owe you for indulging in your recommendation - thanks! The lecture quality is unrivaled when held up to the YouTube tutorials of today.
For anyone else considering investing the time: I am extremely satisfied with the 2 hours it took to learn + practice the basics. As far as high-yield learning investments go, I’d already put awk up there with my time spent learning Vim and Git.
Any recommendations for one from OP or anyone else with one they’re pleased by?
Gotcha, thanks for the insight. Quick background on LSP: I believe vscode either created or popularized accessible LSP integration for other editors. Not sure which it is though
What makes you prefer GoLand over another editor with LSP integration? I don’t write much Go but I’m curious if it provides other features for when I inevitably learn it
That’s why I use a Jira board for my life goals /s
This was the first thing this post made me think of. You blew my mind with this back when I was a kid in school. Extremely memorable. Glad to see I’m in good company in this thread.
Thanks. So what does it mean for a program to be memory safe if it can still memory leak? An example or pointing to a resource for further reading would be much appreciated.
I have only dabbled in Rust and have no experience with C++/Java/Go. Can you help me understand how those languages would be more memory safe than Rust? My understanding was that safe code was a solution to memory leaks. What’s the benefit to safe rust code if it isn’t getting rid of memory leaks?
Thanks for taking the time to write that up–I appreciate the explanation.
My only adjacent knowledge here was when I checked the V8 implementation of the `sort` method on the array prototype and saw it changes the sorting algorithm used based on array length (IIRC insertion sort for length < 10 and merge sort otherwise).
Thanks for the V8 resource as well.
Would you mind elaborating on js arrays intelligently changing their internal structure based on use? My background is only JS/Python and have never touched C++ so I don’t have the context of how these differ.
Yes! This would be great
Had the exact same thought, but after reading another comment it could make sense assuming it’s a 3rd party service integrated with tiktok
A valid concern. My experience is that by now, most apps/projects have support for m1 Mac’s out of the box. For the minority that don’t, I always find a solution that fits nicely in the first gist shown by google. I honestly don’t even consider it to be an inconvenience when I hold it up next to my experience with wsl. Not to mention that the support for new Mac architecture will only continue to improve + be a priority given the market share.
Don’t forget that even if you somehow run out of avenues for support on a mac, you can always dual boot linux on it. You could probably even bootcamp a mac to run windows and then run wsl inside it (I’m kidding but you get the point).
I bounce between WSL2 running on windows 10 and an M1 mbpro max.
TL;DR is buy an M1/M2 Mac if you want to buy a laptop. I like both setups, but only because I’m done jumping through most of the wsl hoops.
If you go with windows, be sure to use Windows Terminal as all other terminals I’ve used (haven’t tried hyper) suffer performance-wise with wsl.
The biggest issue with wsl is easily the memory usage. No one seems to talk about this part of wsl, but if you use vscode, you’ll quickly fill up 16gb of ram while also doing things like running discord/slack + a dozen chrome tabs. I’ve since transitioned to (neo)vim and the experience is much better RAM-wise. Bare minimum for any windows computer running wsl is 32gb imo, especially if you’re using any amount of docker like that other comment mentioned. I ended up having to write a cronjob to manually clean up terminated containers still hogging memory periodically.
This brings me to another downside of wsl: just by having wsl on, it will take about 2gb minimum in my experience. This is unfortunate, as the only way to run the cron server in wsl on windows startup is to have windows task manager turn it on at startup, essentially forever hogging a minimum amount of ram on your machine. I play lots of games on my windows machine and it feels very clunky to have to always open power shell and run `wsl —shutdown` before I can play games. An unfortunate tradeoff between the wsl cron server, and anything else you’d ever like to do that requires significant memory.
Personally I think any sort of Mac desktop is silly (just get a powerful m1/m2 and external display(s), although be careful of the new m2 which only supports 1 external display iirc) and after using both of these machines/dev environments extensively, I can say that if I had to do it again I’d just go with a Mac laptop. If you have the funds I strongly recommend doing the same. However, if you’d like a pc for anything windows specific (like most games), wsl is a fine choice so long as you get an appropriate amount of ram and don’t mind the extra time/energy required for debugging some wsl specific issues. Most wsl issues are one time things that don’t take too long, but it definitely takes some getting used to.
Also worth noting that something I’ve found to be annoying about wsl is that there’s so few resources online for debugging issues when compared to the mac ecosystem. Not only that, but if you change your distro from the default Ubuntu in wsl, the set of people running into similar issues will be even smaller.
To add to my ramblings, I had issues setting up an xserver for a wsl gui and eventually just gave up.
One of the new Mac’s will just work out of the box.
Hope this helps you make your decision.
Oops you’re absolutely right. I always thought this was one of the drawbacks of private institutions. Thanks for the info/correction