News for hackers. Stuff that matters.

weiming

Re:The AWS Controllers for Kubernetes on Thursday August 20, 2020 @05:54AM (#24221596)
There is also the AWS CDK (https://aws.amazon.com/cdk/) which is essentially lets you use your favorite language like Typescript or Python to generate CloudFormation, with an experience similar to Terraform. We've been experimenting with instead of TF, hoping it's here to stay.
Re:How I got my Japanese permanent residency on Sunday August 09, 2020 @12:59PM (#24100951)
A good friend actually used June Advisors Group mentioned in the article a couple of years ago. The firm (really a sole attorney) sounded very helpful and got his business set up with a residence card pretty easily. IIRC it took a couple of months end-to-end.
Re:Trump says he will ban TikTok through executive action on Saturday August 01, 2020 @06:34AM (#24019359)
"Peter Thiel sells most of remaining Facebook stake (2017)"

https://www.reuters.com/article/us-facebook-stake/peter-thie...

Re:The Fourth of July on Saturday July 04, 2020 @10:29PM (#23736217)
What me and my family talked about today is that, as immigrants, we are so sad how much the "native born" people of the US hate their own country. They seem to never waste an opportunity to remind others of their disdain and it is more and more visible these days e.g. in big news media or on Twitter.

Makes me sad and I hope this can change.

Re:Apple WWDC Keynote on Monday June 22, 2020 @02:46PM (#23604049)
Nitpick but I hope the overtly (about 10px) rounded corners of running app windows aren't there to stay. Looks heavy/dated.
Curious question as I am not a compiler expert.

I have to do front-end iOS work from time to time and it's surprising how bad auto-complete can be in Xcode with Swift even after all these years: still randomly sluggish, randomly stops working inside closures including completely losing syntax highlighting inside the closure, and even Cmd+clicking to see the definition is a hit-or-miss as it sometimes opens up a blank editor and just spins. I would have thought that Swift having a strict type system would have made the IDE experience better, not worse. Don't know if the grammar is too complex or if it is the bridging with ObjC stuff or something else that made it difficult to build a robust solution. Can anyone shed light on this?

My points of reference are rust-analyzer, or just VSCode with Typescript, both very snappy although of course the languages are very different. If anything I'd expect Swift to be closer to Rust experience-wise since they both have pretty strict grammars.

Re:Google postpones Android 11 beta on Saturday May 30, 2020 @05:03AM (#23359667)
Twitter has been indispensable for on-the-street/real-time video reporting (just search for city name). Even reached normally quiet Portland.
Re:Executive Order on Preventing Online Censorship on Thursday May 28, 2020 @08:46PM (#23345008)
ﱞ
And so I use create-react-app anytime I need to start a front-end JS/TS project, even if I am not using React at all. Basically avoiding dealing with troubleshooting the soup of build time dependencies and mismatching package versions, which unfortunately comes with the modern JS (or node) ecosystem.
Re:Rust Analyzer: Next few years on Thursday May 21, 2020 @12:28PM (#23260553)
Anecdotally/to add a counterpoint, my experience using RA over the last few weeks has been very very positive.
Except in this case it's not the government, but private corporations taking some kind of political stance.

Google in particular has been very "active," not to forget also: https://www.businessinsider.com/youtube-will-ban-anything-ag... ("video that 'goes against' WHO guidance on the pandemic will be blocked")

You can also overlay your own text in Preview, ignoring the PDF's own textbox.
HSV always seemed particularly poorly understood in the society to me, e.g. with many people getting it as children due to careless parents/extended family, and the benign branding of "cold sore" as if it is related to a cold. Given that the vaccine for 1 or 2 has proved to be extremely challenging, always wondered if the public simply being more well-informed on this topic could help reduce the incidence in the population.

Asymptomatic shedding of HSV has to be considered, too. "Transmission commonly occurs from contact with an infected partner who does not have visible lesions and who may not know that he or she is infected. In persons with asymptomatic HSV-2 infections, genital HSV shedding occurs on 10.2% of days, compared to 20.1% of days among those with symptomatic infections." (https://www.cdc.gov/std/herpes/stdfact-herpes-detailed.htm)

Re:Ask HN: Why can't I send faxes from my phone? on Sunday May 03, 2020 @04:52PM (#23061760)
I've had good luck with Hellofax (YC company) for sending a fax from time to time. Not literally using your phone, however.
Re:Rust/WinRT Public Preview on Thursday April 30, 2020 @03:27PM (#23035053)
Re:Rust/WinRT Public Preview on Thursday April 30, 2020 @02:10PM (#23034048)
Now I'd like some native Rust bindings for Cocoa/UIKit, perhaps as an "official"/higher-level alternative to https://crates.io/crates/objc. There are some crates already attempting to replicate all of Apple frameworks, but they are community-supported/require a bit of `unsafe`.
Re:Rust-analyzer – an IDE backend for Rust on Monday April 27, 2020 @10:37AM (#22996212)
I also had trouble getting VSCode workspaces to work (i.e. multiple project roots.)

Also at times, when adding a new crate dependency to Cargo.toml or installing a rust-analyzer update, it seems necessary to reopen the VSCode project (not restart VSCode itself) to get it to work again.

This said RA has been indispensable over the last few months, thank you to the authors!

Re:Rust 1.43 on Thursday April 23, 2020 @12:34PM (#22957801)
I've been using https://docs.rs/assert_cmd/ for this. (Helps spawn the binary and assert output.)
Re:Show HN: A programmable tooltip on Mac OS on Monday April 20, 2020 @06:48AM (#22922728)
Yep. AWS commands take the --profile argument to choose one of the items from the credentials file.
Re:Ask HN: Anyone move from GraphQL back to rest? on Saturday April 18, 2020 @05:05PM (#22911099)
We're using gRPC.
Re:I've been writing TILs for 5 years on Saturday April 18, 2020 @04:48PM (#22910984)
Yes. That would be Mac iTerm/Terminal, should have mentioned.
Re:I've been writing TILs for 5 years on Saturday April 18, 2020 @03:54PM (#22910579)
TIL Alt-clicking in the Terminal prompt lets me move the cursor to that position. How had I not discovered this over many years?
Re:Mental models around Ok-Wrapping on Friday April 10, 2020 @11:22AM (#22833929)
Oh, I'm totally fine with Ok(123). The current syntax with Result is explicit and flexible even if slightly verbose. It's especially nice that Result is an enum like any other.
Re:Mental models around Ok-Wrapping on Friday April 10, 2020 @11:07AM (#22833765)
There is already precedent of somewhat magical syntax changing the return type, namely 'async' making the function return a future<your stated return type>. While this approach adds one more non-obvious thing for a newcomer to learn, it shouldn't make it much more difficult to reason about your code once you know what to expect.
Re:Swift: Google’s Bet on Differentiable Programming on Thursday April 09, 2020 @08:04AM (#22821715)
My gripe with Swift (and I've written a lot of it) for purposes requiring a lot of number crunching is the performance issues associated with default use of copy-on-write types/ease of accidentally writing O(N^2) code. In Objective C the behavior was more obvious with NSMutable* types being front and center.
Re:Omni Group Layoffs on Wednesday April 01, 2020 @01:15AM (#22745914)
dust (du + rust) [1] makes for a good oss alternative.

[1] https://github.com/bootandy/dust

Re:DefaultApp on Monday March 16, 2020 @10:00AM (#22592735)
Tangential: we've been using xcodegen (https://github.com/yonaskolb/XcodeGen) to generate our projects from a simple yaml file. Don't need to muck around with Xcode toggles, easily repeatable, and .xcodeproj literally stays in .gitignore. Never know why Apple consistently shyes away from more programmatic generation of stuff.
Re:Yes, I am still learning Rust on Thursday March 12, 2020 @07:22PM (#22563100)
Will keep an eye out on your GitHub, just saw the repo you already have there. This is a heroic effort!
Re:Yes, I am still learning Rust on Thursday March 12, 2020 @06:50PM (#22562810)
If you can share, how usable is your approach boilerplate/types wise? Would love to go all into Rust but the AppKit/etc. bindings get clunky very easily.
Re:Yes, I am still learning Rust on Thursday March 12, 2020 @06:37PM (#22562682)
It's very easy to cross-compile and use Rust as a library, leaving the Swift portion for display/views only. We are looking at doing this for our next app (OS X, but would work just as fine for iOS).

Older »