Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jitl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
661.
▲
by
jitl
2y ago
I don't know, I write Swift on a Mac targeting macOS or iOS. I usually have Xcode open to build/run/debug and for documentation lookup, and alternate between that and VSCode for actually writing the code; worst thing about Xc
662.
▲
by
jitl
2y ago
Swift outside of Xcode is a bit rough around the edges, I think because more attention goes into making Xcode friendly. I opened Xcode, made a new playground, and hit run, the code crashes and highlights the line where the error occurred in
663.
▲
by
jitl
2y ago
I don't get this reaction. Apple: here, we're open-sourcing this previously closed-source Apple-specific thing that made Swift better on Apple platforms. We're moving the Apple stuff into a plugin so Windows and Linux can be
664.
▲
by
jitl
2y ago
For me it just spins forever and never manages to do any LSP things
665.
▲
by
jitl
2y ago
And/or build a near cache so you treat the 3rd party as a control layer, but actually serve requests from your near cache as data layer. Then when 3rd party goes down, your app doesn’t notice at all, and you can still manually update&#
666.
▲
by
jitl
2y ago
Software updates happen once per two hours, config changes happen once per 5 minutes or faster. A few days ago I’m tuning performance parameters for a low latency stream processing system, I can iterate in 90 seconds by twiddling some confi
667.
▲
by
jitl
2y ago
When your app starts to get bigger and more complex, the idea of needing to restart a process to pick up any new kind of data starts to seem silly. Have seen the pattern many times: Hard-code values in code -> configure via env -> con
668.
▲
by
jitl
2y ago
Often these 3rd party offerings are feature flags PLUS experimentation with user segmenting. Depending on the style of software you build, this can be extremely valuable; it’s very popular in the SaaS market for a reason. Early on at Notion
669.
▲
by
jitl
2y ago
Python, Java, C#, JavaScript, Go, Ruby all improve so substantially in 3 years time, I can’t square the advantages of using a distro package for any of them versus using at least the latest LTS from upstream. What is so great about the dist
670.
▲
by
jitl
2y ago
Hence this announcement is great, since it seems to say they’re (going to?) support building GUI apps with SwiftPM and/or the newly open sourced build tool.
671.
▲
by
jitl
2y ago
Distro packaging for programming language ecosystems is so often hopelessly out of date. I’ve never used a distro toolchain or packages to build production software for any language Python’s age or younger. Outside of C/C++/Fortra
672.
▲
by
jitl
2y ago
Although opinions inside Apple about Swift vary, they seem to be investing in low level Swift for embedded, kernel use, and programming the “Secure Enclave” subsystem. They certainly have many opportunities to use it for headphones, AirTag,
673.
▲
by
jitl
2y ago
I did, it’s a thingy that creates tasty looking cloud objects (“canaries”) in your AWS account and then monitors them for suspicious access seemingly by slurping cloudtrail logs. C seems like a horrid language for this kind of very integrat
674.
▲
by
jitl
2y ago
How is c an advisable/respectable choice for a web service & cloud orchestrator system?
675.
▲
by
jitl
2y ago
Is it any good?
676.
▲
by
jitl
2y ago
The reason the zones use city names is because city identity is far more stable than national or regional borders. Still, the system can gracefully handle deprecation of a zone name. If Paris is renamed NewNewYork by edict of some new globa
677.
▲
by
jitl
2y ago
The notification summaries are good comic relief (only reason I haven’t turned it off), besides that it’s just gimmicks like image generation that never follows my prompt. Very meh.
678.
▲
by
jitl
2y ago
Well unlike Samsung, Apple has a great user friendly “proper” desktop environment they could teach their mobile devices to run. Plug iPhone into a USB-C monitor and get a full macOS computer and I’d have no complaints. Now, they never will
679.
▲
by
jitl
2y ago
Shiny from the above commenter is a good example of the dirty / “invalidate” style of algorithm. https://github.com/posit-dev/py-shiny/blob/main/shiny/reacti... https://github.com&#x
680.
▲
by
jitl
2y ago
append returns a new pointer in case the slice moved, map assignment does not return a new pointer. There’s no way for the operator to change the reference you hold from a nil to a pointer to the newly allocated value. When memory is alloca
681.
▲
by
jitl
2y ago
I didn’t have time to work up a repro, but the issue is a classic one with the basic algorithm you use for your ComputeSignal graph. The issue is that during the fan-out after a change at a root, a ComputeSignal that’s recomputing can read
682.
▲
by
jitl
2y ago
What kinds of Python programs would benefit from Signals? Most of the Python I've written is either small CLI tools that run to completion, or boring web servers using frameworks like Django that are request-response oriented, which al
683.
▲
by
jitl
2y ago
There are plenty of very popular libraries that are low quality and/or have some major issues, popularity of a package is not necessarily indicative of a perfect design. When you put something into your language standard to be supporte
684.
▲
by
jitl
2y ago
A timezone changing or being eliminated doesn’t erase the history of that timezone. So you can still use the last definition of such a timezone if the date is still in the future, or use the appropriate definition of the timezone at the tim
685.
▲
by
jitl
2y ago
We’ve had Map with those semantics since 2014, came out in Chrome a few months before Set. Record/Tuple objects are immutable primitives with structural equality, not object reference equality. So little relation to AS3 Dictionary/
686.
▲
by
jitl
2y ago
I still think it’s a good investment.
687.
▲
by
jitl
2y ago
At the end of the day, it’s some bytes with no inherit value other than the memetic fomo of artificial scarcity. It’s only interesting or exciting (to me) because there are people who will buy it, so you can get rich “speculating” that if y
688.
▲
by
jitl
2y ago
Styled Components is too low-level (let’s name every div!!!) and comes with a substantial performance cost. Tailwind is a much better option.
689.
▲
by
jitl
2y ago
It’s the same as in C, Rust, or any other programming language I’ve ever used. If you don’t use a library, it doesn’t end up linked in your executable. Don’t want to animate GIFs on your microcontroller, then you don’t write `import “image&
690.
▲
by
jitl
2y ago
At least in the JavaScript/NPM ecosystem, “if you want it done right, you have to do it yourself”. Often the most popular package for X is actually low quality and/or obviously incorrect, especially for small-to-medium complexity
More ›