HNHacker News
TopNewBestAskShowJobs

jurip

519 karma · joined October 15, 2013

submissionscomments
jurip··on Apple announces full Swift rewrite of the Foundation framework (2022)
Background: I spend most of my time in Swift but do work in Kotlin too. Occasionally some Rust.

Swift and Kotlin are in many ways similar, but I find Swift to be a bit nicer in almost every respect. Swift has more powerful generics, tuples, structs, powerful enums that are value types, `if let`/`guard let` statements that I'll take over `?.let {}` any day, etc. Kotlin is somewhat more expression oriented, which is nice; Swift is moving in that direction too, but slowly.

A native Kotlin (I have no idea how mature it is) might be a decent alternative to high-level Rust, but I'll take Swift if it's available. It's both more pleasant to work in and I assume more performant with better access to stack allocated value types.

jurip··on Apple announces full Swift rewrite of the Foundation framework (2022)
Xcode has its flaws but mostly it's pretty great to work in. With it available for the vast majority of current Swift programmers, it's a hard market to break into.
jurip··on Apple announces full Swift rewrite of the Foundation framework (2022)
Rust is pretty often chosen also in places where performance is not that critical. It has a good ecosystem, a good type system, native builds and great performace. Those factors make it a good choice in places where you'd be just fine even if it was slightly slower. If Swift loses by a small margin — and Swift is a high performance language too — it could very well edge out Rust with ergonomics.
jurip··on Drag and Drop from Terminal
Another related tip for Mac: if you are using Yoink — and you totally should be — you can add files to to it from shell with `open -a Yoink filename`. I have a shell function called `yo` for it.
jurip··on Windows is the strangest, or hardest, operating system to keep curl support for
Depends on the client, I think. Toot! for iOS visualizes threads like this and at least it's pretty clear: https://apps.apple.com/fi/app/toot/id1229021451
jurip··on Keyboard shortcuts for GNU Readline
I switched to Mac full time when I got frustrated with my Linux desktop having (far) worse support for Emacs keybindings than my work Mac. There was a certain amount of irony in it.
jurip··on Oxford University Press’s new logo is unfathomably bad
I cringe every time I see the second E. That weirdly mangled serif just rubs me the wrong way.

The old logo was honestly a bit messy, too, though.

jurip··on Oxford University Press’s new logo is unfathomably bad
Presumably the people at OUP do care, because they actually paid for it. That's the author's point: if you are trying to signal something with a rebrand, how about putting the money into the actual thing instead of going through a pointless rebranding exercise and losing your identity in the process?
jurip··on Gigafactories are recycling old EV batteries into new ones
You don't need to own a plane so you can fly a couple of times a year. You don't need to own dinosaur juice fueled car so you can drive an uncomfortably long distance in one leg a couple of times a year.

A completely reasonable option is to own an EV that covers the vast majority of your needs and rent the one or two times a year you require more.

jurip··on EU Gives Final Approval to Law That Will Force iPhone to Switch to USB-C
That would be awkward with their talk of renewables and recycling. "Wireless" charging loses a ton of efficiency compared to wired.
jurip··on VPNs on iOS are a scam
There are levels to trustworthiness. I mostly trust my ISP enough to not bother with VPN at home, but when I'm traveling I'll take my VPN provider over a hotel WiFi any day.
jurip··on When will Apple ship other M2 Macs?
Even if you ignore the COVID and supply chain problems — which I’d argue are pretty OK reasons for schedule slippage — they never were that clear from what point you should count the two years: the announcement or the first availability of a Mac on the new architecture. If it’s the latter, they still have some months.
jurip··on When will Apple ship other M2 Macs?
They pre-announced the previous Mac Pro at WWDC 2019, but even that was only available in December, I think. Before that, they previewed the previous Mac Pro in 2013. So, yeah. No harm in hoping but it's really rare for them to actually release new pro-branded hardware at WWDC.
jurip··on World military expenditure passes $2T for first time
It is not happening on Russia's border, it is happening in Ukraine. And "someone" already escalated too far when they invaded Ukraine.
jurip··on France to Build Six New Nuclear Reactors
Those natural resources will last longer than Putin and his friends will be around.
jurip··on A “Sideways” supply response in California winegrapes
There's plenty of reds with sugar in them. Your typical Italian will have something around 4–7 g per liter in it. First four Italian reds I checked on Alko's (Finnish booze monopoly) website, priced 14–37 €: 2, 12, 11, 3 g/l.
jurip··on Types of Parser Combinators
Well, for example, some people like to spend time on websites that are orange.
jurip··on Get rid of those boolean function parameters (2015)
That helps when you are writing the code. It's less helpful when you are modifying a function being called from all over the code base. Arguably smart enough refactoring tools will help, but smart enough compilers have been doing wonders for decades, too.
jurip··on Not important enough: 1Password abandons its native Mac app
I'm sure it's great for someone who uses multiple platforms. But if you use only one platform, the apps will feel off.

As for performance: it's not horrible, but the memory usage is.

jurip··on 1Password 8 will be subscription only and won’t support local vaults
It may be a win for some users. I can’t see how switching my perfectly fine, frequently updated native app for a memory hogging web browser wrapper is a win for me. I’m actively looking for alternatives now.
jurip··on The Lightness of Windows
Thompson lives in Taiwan, I believe.
jurip··on World’s first lab-grown meat facility pumps out 5k burgers per day
How many animals are we talking about in a scenario where all the animals were being used for crop/grazing rotation? I've heard about this and it sounds good to me, but without having looked into it at all, it sounds to me like something that probably wouldn't support the number of animals we're using right now for meat production?
jurip··on Ripgrep 13.0
I use it for switching git branches. I have this in ~/bin/git-bsel:

    git for-each-ref refs/heads/ --format='%(refname:short)' --sort='-authordate' | fzf +s --query "$*" | xargs git checkout
jurip··on The Elephant at WWDC
I'd love to use it for Objective-C too. I work on a mixed language SDK and right now use Jazzy which is fine but I think there's a realistic chance DocC will lead to Jazzy being abandoned sooner than we can get rid of all the Objective-C.
jurip··on The Elephant at WWDC
Also: Xcode has been able to parse and display the Markdown documentation comments in Swift code for years. It's really nice! Doesn't mean DocC isn't worthwhile, but at least the PSOTU and Meet DocC presentation seemed to not only ignore outside prior art, but Xcode's existing capabilities too.
jurip··on An utterly crushing day for Big Oil
Yes, absolutely! I think there's plenty of blame to go around. But I see all too often flippant takes like "20 companies cause (a large X)% of greenhouse gas emissions" which just completely ignores demand.
jurip··on An utterly crushing day for Big Oil
I'm happy to blame big oil for plenty of environmental crimes and PR bullshit. But I don't think the commenter is wrong here. What do you think would happen if the big oil companies decided (and let's just ignore the shareholder revolt this would cause, for the sake of argument) that they're done pumping oil, and just closed the oil fields and scrapped their tankers? Would the world just celebrate the solution to the climate crisis and happily move on, from now on using only non-fossil energy sources?
jurip··on What happens to all the dead electric-car batteries?
Is the fibre glass thing actually a disaster? According to this Bloomberg article https://www.bloomberg.com/news/features/2020-02-05/wind-turb... it sounds more like something that would be nice to reduce but is pretty far from a disaster:

“Wind turbine blades at the end of their operational life are landfill-safe, unlike the waste from some other energy sources, and represent a small fraction of overall U.S. municipal solid waste,” according to an emailed statement from the group. It pointed to an Electric Power Research Institute study that estimates all blade waste through 2050 would equal roughly .015% of all the municipal solid waste going to landfills in 2015 alone.

jurip··on Berlin rent cap overturned by Germany's top court
Ah, all right. A significant stock of empty apartments would certainly be suboptimal in a city like Berlin. I'm not a big fan of bans on things that don't cause direct harm to people, but I don't see any reason to not heavily tax apartments that are kept empty.
jurip··on Berlin rent cap overturned by Germany's top court
But does it matter who owns the place as long as someone lives there? I mean I assume that the investors are renting them out. If not, surely they're losing out on a very nice income stream, and it's hard to believe it's all that popular. There are probably some empty apartments — that's a requirement for a working housing market, given that people need empty places to move into — but the proportion of empty investment vehicles in a city as large as Berlin can't be that large.
← PreviousPage 3 of 7Next →