HNHacker News
TopNewBestAskShowJobs

wakamoleguy

769 karma · joined September 11, 2017

submissionscomments
wakamoleguy··on Switch to Jujutsu Already: A Tutorial
I have been trying to use jj for a couple months now, but hitting some friction with my company’s GitHub PR workflow. Specifically, after the PR is merged, the next time I fetch I always end up with a ton of conflicts. It gets hard to clean them up, so I often end up abandoning all mutable commits to start fresh.

I feel like I’m doing something wrong, as I haven’t seen this mentioned in any tutorials, but I don’t know what! :-/

wakamoleguy··on Tell HN: Help restore the tax deduction for software dev in the US (Section 174)
Not all taxes are in income or capital. Some are e.g. on consumption (gas, cigarettes, carbon, etc). There’s an argument that in place of corporate income taxes, we should let companies reinvest freely (or pay dividends), and then recoup the taxes elsewhere. The Planet Money podcast has a classic episode about this and other aspects of a presidential platform most economists could agree on.
wakamoleguy··on Show HN: Python with do..end in place of strict indentation
If we’re talking about pasted code not having the proper indentation, that’s a major difference between languages with and without significant whitespace. A formatter can fix that in C, but not in Python. Additionally, manual fixing of the indentation is required first.
wakamoleguy··on Show HN: Python with do..end in place of strict indentation
Of course you can leave it inconsistent! If whitespace is insignificant, you can move things around however you want and use (frequent) runs of a code formatter to clean things up for you. If whitespace is significant, it must be fixed manually line by line.
wakamoleguy··on Dropbox announces 20% global workforce reduction
It has been even more than 500 excess employees. 300 were laid off in January 2021, and another 500 in April 2023. The percentages imply that headcount bounced around from 2800 down to 2500, up to 3100, down to 2500, up to 2600, and now down to 2100.

These same macroeconomic headwinds have existed for some time now, and the fundamentals of Dropbox’s core business commoditization haven’t changed for the better.

wakamoleguy··on The Flywheel Effect
I agree. There is an additional quality here as well: Inertia doesn't care whether there is one big push or many little pushes. With the flywheel analogy, it's clear that it's not just one big push. That's what they are trying to convey in the business context. There is no one moment of transformation.
wakamoleguy··on Maximal min() and max()
Why are these defined as macros at all? A function call would come with overhead, of course, but wouldn't compilers be able to inline that anyways?
wakamoleguy··on If we want a shift to walking, we need to prioritize dignity
Walkability isn't just important in big cities; you can have it in smaller towns, too. I live in the suburbs of a large city, but my town has a small "main street" area with shops and restaurants that I love to walk to. I also have the anxiety around crowds (especially post-pandemic), and my town is the perfect balance of freedom to walk places and space to breathe.

When I think about walkable vacation spots, I don't only think of cities either. I think of small beach towns where even though it isn't populous, things are close enough together to explore on foot.

So I guess one question I'd pose is: if you could have that personal space without the car, would you still prefer the car and why? And given the negative externalities of the car, are there other ways those needs could be solved?

wakamoleguy··on Meta Launches AI Studio in US
It's possible, but in a world where copies and imitations are cheap, authenticity becomes more valuable. Would Charli XCX's brand and image benefit from having a shallow AI clone out in the world? In most cases today, when streamers introduce bots, they give them a separate on-theme identity. I'd be willing to bet that creators would gravitate more towards that approach with these AI characters as well.

Of course, that character (or can we still just call it a bot) could still shill promotional content...

wakamoleguy··on Meta Launches AI Studio in US
The policies seem quite strict, but I don't see any mention of privacy for characters that are set to "Only Me". It sounds like you don't have to submit them for a review process, but is Meta still reviewing the profiles? What about the messages I send to the character? Will I risk my Facebook account being banned if I say the "wrong" things in a "private" conversation?
wakamoleguy··on Physicists may now have a way to make element 120
A is repelled outward, B is not repelled, C is repelled outward.

With gravity, A is attracted inward, B is not attracted, C is attracted inward.

wakamoleguy··on Ask HN: Thoughts on shadow banning and other dick moves by Silicon Valley?
I believe domains can also be downranked/shadowbanned separately from users. Given that this Ask HN post went through OK, I am guessing that is more likely here. And I would agree that articles from the Guardian are almost certainly going to be off-topic based on the guidelines. If the post is on topic, you can always reach out to moderators.
wakamoleguy··on Denmark to charge $100 per cow in first carbon tax on farming
It’s not western centered. As countries like China and India have grown more affluent, their consumption of pork and beef have also risen. While hunting (and especially social hunting of large game) was important in pre-agricultural societies, it didn’t nearly approach the amount of meat in modern human diets.

I’d recommend the book “Should we eat meat?” by Vaclav Smil for a very thorough dive into this topic.

wakamoleguy··on Denmark to charge $100 per cow in first carbon tax on farming
Meat consumption has been a sign of affluence throughout human history. It's only fairly recently that beef has become broadly accessible to lower income consumers.
wakamoleguy··on Forgejo makes a full break from Gitea
| Forgejo (pronounced /forˈd͡ʒe.jo/) is inspired by forĝejo, the Esperanto word for forge.

https://forgejo.org/faq/

They also have a recording posted: https://forgejo.org/static/forgejo.mp4

wakamoleguy··on Show HN: Bring phone calls into the browser (SIP-to-WebRTC)
This is using sipgo as a back-to-back user agent (B2BUA). There are really two sessions going on: one between the SIP caller and sipgo, and a second between sipgo and the browser. These sessions each have their own signaling and media.

The interesting part is how the signalling is happening between the sipgo server and the browser. You copy your session description from the browser and paste it to the server! In a "real" application, you could send it over a custom API call or something, or you could use a standard protocol for initiating sessions (SIP!).

This is all to say, "bridging" between SIP and WebRTC is not nearly as magical as it is often made out to be. In some cases, the media can even be passed through without modification. (Although many SIP endpoints do not support e2ee and so a B2BUA is still needed to wrap/unwrap the encryption.) We were doing this a decade ago with SIP.js and OverSIP.

wakamoleguy··on Show HN: Fanfiction and Smut AI Generator
I think this idea of having a custom AI generated Choose Your Own Adventure, in the universe of your choice, is really cool. As for the "smut" aspect, I'd immediately pass on that as long as another human is involved.
wakamoleguy··on Microsoft open-sources ThreadX
The announcement says it will be made available under the MIT license, so I would expect the repo to be updated at some point.
wakamoleguy··on Croc: Easily and securely send things from one computer to another
Sometimes. The VoIP world has been dealing with this for years. The process of finding and connecting the clients is called signaling, and that typically requires a shared relay. The signaling can contain information on how the clients can be reached directly. In SIP, typically each client will use a STUN server to discover their public IPs, and a process call ICE allows the clients to iteratively try those candidates until they establish a connection. Based on the NAT settings, it may not be possible, so clients will also include the IP of a relay TURN server.

The challenges with Croc here are largely the same, but with data as the media instead of voice or video. (Although, “VoIP” can also handle data in this way. See WebRTC data channels.)

wakamoleguy··on Couples with joint checking accounts are happier
IANAL, but if the prenup doesn’t already cover this, then they could always draw up a new contract amending it.
wakamoleguy··on 100x Faster Than Wi-Fi: Light-Based Networking Standard Released
Newb question: since they are both electromagnetic radiation, how does Li-Fi get up to 100x faster than Wi-Fi? Are the light transmitters and sensors that much faster? Or perhaps is it able to use a wider band of frequencies?

I'm also so curious how this ends up working in practice. Even using infrared, would it interfere with things like baby monitors in night mode? The Wikipedia article says it can be tuned to be less intense than humans can perceive, but I'm curious if that's true in practice. (Granted, babies don't typically need Internet access while they are sleeping, but maybe the monitor itself does.)

wakamoleguy··on Can Chess, with Hexagons? [video]
In the final state where white resigns, it looks like the king could simply capture the queen instead. Wasn't it unprotected?
wakamoleguy··on Web servers should refuse requests for random, unnecessary URLs
Despite the URL using "200" and not "2xx", any status between 200-299 inclusive would flag the server as having unreliable status codes. https://w3c.github.io/webappsec-change-password-url/response...
wakamoleguy··on How to foster shoshin
It's possible that you are struggling to find evidence because the evidence points in the other direction. For example, from the review article you linked:

"Based on all available scientific knowledge, wheat consumption is safe and healthy for the vast majority of people. There is no scientific evidence to support that the general population would benefit from a wheat-free diet."

Step 1 of fostering "shoshin" was to explain a theory or idea to someone else. Now step 2 is to stay aware of confirmation bias.

wakamoleguy··on Building a Slack/Discord alternative with Tauri/Rust
Commutative means that changing the order of the operands yields the same result. Ex: a+b = b+a. In that way, "alternative" is (mostly) commutative, but there are exceptions: Amazon is an alternative to a local bookstore, but a local bookstore is not necessary an alternative to Amazon.

The transitive property implies that if a=b and b=c, then a=c. "Alternatives" are also (mostly) transitive. A counterexample would be that Slack is an alternative to IRC, and IRC is an alternative to Slack, but Slack is not an alternative to Slack!

wakamoleguy··on Full Time
Perhaps related (or I'm just not sure how this works), what criteria goes into whether a crawled site is indexed? My personal blog has 31 pages "known", 32 crawled, and only 3 indexed.
wakamoleguy··on Unrelated Words Puzzle
I suspect this is because "cuban" has a lot of meaning in other contexts as well. If you see "cuban" out of context, one may think of Cuba or even sandwiches before thinking about Mark Cuban or other investors.
wakamoleguy··on Freedom Clock
For anybody looking to build a real clock, please don't use `setInterval`. Instead, use `requestAnimationFrame` which will avoid awkward stutters and delays. With a second-by-second timer, `setInterval` routinely results in seconds that appear too short or too long (in this case, up to the interval time of 100ms).

Also, it's nice to see that this simple page isn't using any framework. One quick performance win is to cache the `querySelector` calls. Those will be the slowest part of the computation, and the nodes themselves never change.

wakamoleguy··on $90k to $900k: Pay transparency laws usher in baffling pay ranges
If your offers aren't competitive for CA candidates, then it makes sense not to waste time recruiting them. Another way to accomplish this would be to post your salary ranges. Candidates who don't find it competitive won't apply at all. You may find some candidates in California who do find it competitive (perhaps outside the major metro areas). And you might avoid interviewing candidates from other regions who would never have accepted your offer.
wakamoleguy··on Now Available: Ivory for Mastodon by Tapbots
Mastodons in particular are extinct. Although your comment is true regarding other sources of ivory.
← PreviousPage 2 of 5Next →