Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ash_gti
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
ash_gti
2y ago
The haskell source has `let channel = "11"` vs `let channel = 11`. The example from the post is an example that looks like it should be pretty straight forward but the swift compiler falls over when you try it. Trying it locally
2.
▲
by
ash_gti
2y ago
The type is an inferred integer literal in swift (in the swift standard this is the `ExpressibleByIntegerLiteral`, the string literals are `ExpressibleByStringLiteral` types). The reason this causes issues with the type checker is it has to
3.
▲
by
ash_gti
2y ago
Your example is different than the example in the post. Specifically, `channel = 11`, an integer. If it was a string then it parses very quickly.
4.
▲
by
ash_gti
3y ago
You can use ‘atob’ and ‘btoa’ functions for some of that.
5.
▲
by
ash_gti
3y ago
If you have a short lived CLI tool, disabling the GC might be useful but that’s likely an exceptional case.
6.
▲
by
ash_gti
4y ago
I know most of these are compiler intrinsically but it’s good to have them standardized.
7.
▲
by
ash_gti
4y ago
There is a setting in Preferences > Websites > Notifications to disable notifications entirely.
8.
▲
by
ash_gti
4y ago
I dunno, then there would only be 2 actively maintained browser engines, Chrome and Firefox. Webkit is doing pretty good on https://wpt.fyi/interop-2022 so I'm not sure why Safari should be retired.
9.
▲
by
ash_gti
4y ago
https://devblogs.microsoft.com/typescript/a-proposal-for-typ... Has additional context on this proposal and has previously been linked here.
10.
▲
by
ash_gti
4y ago
There is queueMicrotask ( https://developer.mozilla.org/en-US/docs/Web/API/queueMicrot... ) to queue onto the end of the current iteration and you can use an `await 0;` to cycle the event loop as well.
11.
▲
by
ash_gti
5y ago
Node does support ESM now by default (and has supported it for a while behind a flag), https://nodejs.org/api/esm.html
12.
▲
by
ash_gti
5y ago
> It doesn't break ARC right, it just won't do the automatic reference counting in C++ source. You can send it back and forth over the wall with CFBridgingRetain and CFBridgingRelease no? I guess I should say that clang's
13.
▲
by
ash_gti
5y ago
If the object is not autoreleased then doing a release call will deallocate the object, otherwise it will be added to the nearest autorelease pool from the current stack and be deallocated when the pool is drained. Swift and obj-c have the
14.
▲
by
ash_gti
5y ago
The c++ wrappings break ARC, so if you use this library you'll have to manually retain/release any object. The autorelease pool is helpful if you autorelease an object but you'll need to manually manage the memory when using
15.
▲
by
ash_gti
5y ago
If you enable strict ( https://www.typescriptlang.org/tsconfig#strict ) or use the `strictBindCallApply` flag ( https://www.typescriptlang.org/tsconfig#strictBindCallApply ) it should check the types on call, b
16.
▲
by
ash_gti
5y ago
They went with a subset of C, its enough to write a working executable. Generally for a introduction tutorial to something as complex as writing a compiler a subset like what they presented in the article is enough to show how all the piece
17.
▲
by
ash_gti
6y ago
TF can inline, but if it runs that optimization then the benchmark would be turned into a constant, so it wouldn't be measuring the call overhead of the way arguments are passed.
18.
▲
by
ash_gti
6y ago
I think this is what WASM is meant to achieve. It allows for much more precise semantics without needing to parse an AST.
19.
▲
by
ash_gti
6y ago
They didn't release the frameworks for those OSs. That's like how Catalysts runtime wasn't backported to older versions of macOS. They could decouple those frameworks from the OS, but that adds other headaches and you eventua
20.
▲
by
ash_gti
6y ago
SwiftUI isn't tied to the OS version. It has a runtime API that should work with different versions of the OS. There were changes to the compiler that they didn't talk about until after the fact though. After SwiftUI was announced
21.
▲
by
ash_gti
6y ago
> * Apple does not allow other App Stores on their platform As a consumer, I see that as a feature not a bug. On the Switch, Play Station and Xbox I don't have other stores I can use as well. I don't see how this is a problem a
22.
▲
by
ash_gti
7y ago
How about using a web browser with JavaScript? Maybe not the best language for someone new but its widely available.
23.
▲
by
ash_gti
7y ago
'i' suffix are often used in languages for complex numbers. For example, in ruby '1i' evaluates to 0+1i as a complex number. I suspect they didn't want to conflate the two types.
24.
▲
Understanding C++ Modules: Part 1: Hello Modules, and Module Units
(vector-of-bool.github.io)
1 points
by
ash_gti
8y ago
|
0 comments
25.
▲
by
ash_gti
8y ago
Don't forget Opera is a re-skinned Chrome.
26.
▲
by
ash_gti
8y ago
WebKit does support service workers now and they're working on support for Web App Manifests. Some web apps, like Kindle Web Reader work fine in offline mode on my iPhone, granted that site is using the older (deprecated) App Cache man
27.
▲
by
ash_gti
8y ago
Apple had this in the EU since May~ish. It's now available in the US though.
28.
▲
by
ash_gti
8y ago
Then they would have access to my iTunes account anyway...
29.
▲
by
ash_gti
8y ago
An alternative could be something like "Apple deprecates additional services in macOS Server 5.7.1". That's different than the linked page but I think it gets across the changes that are coming.
30.
▲
by
ash_gti
8y ago
It appears to be fixed at HEAD and in Safari Technology Preview per https://bugs.webkit.org/show_bug.cgi?id=188794
More ›