Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
seniorsassycat
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
seniorsassycat
5y ago
Microsoft should add script/typescript support to edge with a checkTypes flag /s
92.
▲
by
seniorsassycat
5y ago
Would you use type comments in your projects? Would you like pull requests adding them, or fixing them? What if the typescript checker and another checker have different semantics and you have fans fighting between `number` and `u8`?
93.
▲
by
seniorsassycat
5y ago
Feels funny that the original 30 mile trip was above board. The new trip is clearly exploiting a loophole, but maybe both trips should be forbidden. Why is there an exemption for trips by rail?
94.
▲
by
seniorsassycat
5y ago
Try delta v: rings of Saturn for 2d. Outer Wilds has fun scaled down space flight.
95.
▲
by
seniorsassycat
5y ago
270k
96.
▲
by
seniorsassycat
5y ago
I've been a reduced hours engineer at AWS for almost 4 years and it's good. I'm not on a reduced hours team like this post, my teammates are full time. I work Monday thru Thursday for 80% pay, full benefits. Oncall is normal
97.
▲
by
seniorsassycat
5y ago
My Bosch 500 pack died and I had to buy a new one for 900$. Pulled the old battery pack apart and measured good voltage on all the cells, I think the proprietary battery charge controller is busted.
98.
▲
by
seniorsassycat
5y ago
You can do that with sum types. type methods = 'a' | 'b' const value: methods = 'c' // error The difference is enums are also nominal, while most types are structural.
99.
▲
by
seniorsassycat
5y ago
Lots of comments seen to have missed that the article isn't recommending against private fields, only the private keyword. Typescript and JavaScript have a newer brand # to make fields private. The native feature will have runtime bene
100.
▲
by
seniorsassycat
5y ago
The blockchain tracks bitcoin transactions not USD. The USD price of Bitcoin can change without any on chain transactions. Market cap is last price times total supply. Only a few coins are sold each day compared to the total supply so chang
101.
▲
by
seniorsassycat
5y ago
I've been working 4 days a week, 32 hours, for 4 years and I will never go back. It has made me hesitant to look for other work, I'm not sure if get the same deal, but so far I'm happy where I am. As others have said the rati
102.
▲
by
seniorsassycat
5y ago
I think the argument was that you could withdraw at 201 then sign new 200b messages.
103.
▲
by
seniorsassycat
5y ago
Are those 8k/260k individuals, or could they all be Syble?
104.
▲
by
seniorsassycat
5y ago
ion schema is a type system that can validate ion values and it supports sum types. https://amzn.github.io/ion-schema/docs/spec.html#union The ion data model doesn't describe a schema or type system. It'
105.
▲
by
seniorsassycat
5y ago
I think the ion java library includes a AST parser that includes comments, but the ION data model doesn't. The binary format cannot include comments. I think many text parsers are missing libraries that edit documents in place, preserv
106.
▲
by
seniorsassycat
5y ago
Parsing ion text should be similar to json, it has the same characteristics. All JSON is valid ion text so you can even parse JSON with an ION parser. The binary parser is much faster. All fields are length-prefixed so a parser doesn't
107.
▲
by
seniorsassycat
5y ago
ion text is a good contender for JSON, YAML, TOML usecases. It's also a good way to present the binary to humans.
108.
▲
by
seniorsassycat
5y ago
I've seen .ion and .i0n for text and binary ion files. I think amazon ion is like golang - used to clarify meaning not branding
109.
▲
by
seniorsassycat
5y ago
Two representations of the same data structures. Ion text is like JSON, in fact all JSON is valid ion text. Ion text has comments, trailing commas, dates, and unquoted keys. It's a really good alternative to JSON, YAML, or TOML. Ion bi
110.
▲
by
seniorsassycat
5y ago
Ions text format is a nice JSON alternative while it's binary format is very compact and allows for efficient sparse parsing. Fields are prefixed with their length so you can skip over unneeded fields or structs while only creating obj
111.
▲
by
seniorsassycat
5y ago
Package content can't be compared to a repository. 1. npm doesn't record the repo, branch, or commit so it doesn't know what to compare with. 2. Published content is usually a transformation of the repo content -compiled, min
112.
▲
by
seniorsassycat
5y ago
Stan Rogers has a knack for writing songs that sound older than himself, this song shows he doesn't need nautical themes to do it. Some other programming and math songs Kill -9 https://m.youtube.com/watch?v=0rG74rG_ubs
113.
▲
by
seniorsassycat
5y ago
Then those packages should explain their reason and ask for permission. Default should be opt-in.
114.
▲
by
seniorsassycat
5y ago
Point 4 has been implemented but I don't know how well it's adopted https://docs.npmjs.com/cli/v7/commands/npm-fund . Point 3 is interesting, does it work across non-apt package managers?
115.
▲
by
seniorsassycat
5y ago
It reduces the attack surface an attacker would have to target a package with established reason for running scripts.
116.
▲
by
seniorsassycat
5y ago
Why are install scripts so scary? `install: "malware"` is a few steps closer to running than `cp.exec('malware')` in index.js.
117.
▲
by
seniorsassycat
5y ago
Typescript doesn't have great syntax for object parameters. To define the type inline you have to repeat the property names. {a, b}: {a: string, b: string}
118.
▲
by
seniorsassycat
5y ago
I think most of these laws have been written as wanting to use daylight time year round, which isn't allowed by federal law. Federally states can use standard time or switch between standard and daylight but they cannot always follow d
119.
▲
by
seniorsassycat
5y ago
It's possible with AWS CodeArtifact using EventBridge to promote after a delay. The company I work for has a three day delay on npm.
120.
▲
by
seniorsassycat
5y ago
I wonder ho w much time was spent requiring all of aws-sdk. The v3 sdk is modular and should be quicker to load. Bundlers like rebuild save space and reduce parsing time.
More ›