Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
NightMKoder
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
NightMKoder
4y ago
This is very nonambitious, but I’d love to see a Clojure with less LISP. That is - something like JS syntax but with immutable by default types and const only bindings. Macros would be great too, even if they require a different compilation
32.
▲
by
NightMKoder
5y ago
My sense that is that any written record (especially publicly posted records), an admittance of guilt can later be used as evidence in court. That is, if the bar needs to defend itself in court later, admitting guilt now would make that a l
33.
▲
by
NightMKoder
5y ago
Java the language? Very likely not. As proof - a majority of Clojure runs in JavaScript without any code changes (via ClojureScript). That said exceptions tend to look like Java classes, so you’ll definitely see Java bits. Java the JVM? You
34.
▲
by
NightMKoder
5y ago
Aren’t those usually capitalized as well? I’ve always though that style in legal texts means “a proper noun defined previously” - in case of plaintiff and defendant, probably on the first page. That said I have no legal background so take t
35.
▲
by
NightMKoder
5y ago
Yep and covered entities are usually related to billing for medical care. As an example, almost all life insurance companies are not even hipaa compliant because they aren’t covered entities. In net - hipaa doesn’t protect medical informati
36.
▲
by
NightMKoder
5y ago
Yes - exactly what boulos said - I’m coming from the Google “you control your clients” perspective. That said, in some sense you always control your clients - you can always set up localhost proxies that speak your protocol or just tcp prox
37.
▲
by
NightMKoder
5y ago
Didn’t realize consul had that. Seems like the right approach - though I wonder why Roblox wasn’t using it. Fwiw I believe kubernetes did this right - if you shoot the entire set of leaders, nothing really happens. Yes if containers die the
38.
▲
by
NightMKoder
5y ago
Admittedly this is armchair architecture talk, but it seems like either consul or Roblox's use of Consul is falling into a CAP-trap: they are using a CP system when what they need is an eventually-consistent AP system. Granted, the use
39.
▲
by
NightMKoder
5y ago
In case you haven’t seen it - the TreasuryDirect password policy is almost comical. There’s a screenshot in the repo. The website disables the password input field (and password managers with it). To “type” your password, you have to use so
40.
▲
by
NightMKoder
5y ago
I assume you mean `ROW_NUMBER() OVER (PARTITION BY ... ORDER BY ...) as row_number` with a `WHERE row_number = 1`. We ran into issues with memory usage (i.e. queries erroring because of too high memory usage). The `ARRAY_AGG` approach uses
41.
▲
by
NightMKoder
5y ago
One of the hardest types of queries in a lot of DBs is the simple `min-by` or `max-by` queries - e.g. "find the most recent post for each user." Seems like Postgres has a solution - `DISTINCT ON` - though personally I've alwa
42.
▲
by
NightMKoder
5y ago
Oh wow I didn’t realize they did custom licensing (presumably for a good chunk of change). Good to know!
43.
▲
by
NightMKoder
5y ago
This is a bit reductionist but a fun story for those that haven’t heard it. The GPL was created so rms could modify his printer driver: https://www.gnu.org/philosophy/rms-nyu-2001-transcript.txt .
44.
▲
by
NightMKoder
5y ago
FFmpeg is licensed under LGPL which can (albeit carefully) work on the web, but libx264 is GPL. I think that alone makes this project unusable in non-open-source projects? (For reference, GPL does not have any dynamic linking exception, so
45.
▲
by
NightMKoder
5y ago
As others have mentioned - you’re probably talking about something like a python or node repl. Lisp repl development is not like python or node - you _work_ in the repl. The closer comparison might be between bash+node as a repl - up+enter
46.
▲
by
NightMKoder
5y ago
IANAL but I think the law is about trading - not profiteering. Trading public stocks based on material non-public information is a crime even if you don’t know _what_ will happen to the stock or you predict wrong. You literally cannot lawfu
47.
▲
by
NightMKoder
5y ago
Both JFR and agent based implementations only work with non async code. As soon as you do async anything, stack traces are no longer representative so automatic instrumentation is useless. That said, I’m really hoping Project Loom will fix
48.
▲
by
NightMKoder
5y ago
This isn’t mentioned in the article, but I found debug-repl [1] to be amazing when debugging in the repl. For simple prints, wrapping expressions in (doto prn) has always been enough for me without custom readers. But when debugging somethi
49.
▲
by
NightMKoder
5y ago
I’ll have to disagree with you - the problems are similar but somewhat unrelated. Sampling profilers traditionally only sample threads that are actively doing something - i.e. using CPU time. Tracing is closer to wall time profiling rather
50.
▲
by
NightMKoder
5y ago
Im not sure why this is cataclysmic for FB - they’re mostly a first party advertiser. App tracking transparency doesn’t prevent Facebook from running ads on their own apps and using SkAdNetwork to track conversions (which works even if the
51.
▲
by
NightMKoder
5y ago
The Apple policy requires that opting out is not treated adversely. See https://developer.apple.com/app-store/user-privacy-and-data-...
52.
▲
by
NightMKoder
5y ago
Hmm I’m not aware of a way to do that short of fingerprinting a browser and running the same fingerprint on app launch. Would you happen to have docs for that approach?
53.
▲
by
NightMKoder
5y ago
I think it’s a bit more nuanced than that. The new policy doesn’t seem to try to break ads attribution globally - e.g. the App Store ads attribution continues to work regardless of tracking transparency choices. They’re also not trying to p
54.
▲
by
NightMKoder
5y ago
I was researching something similar recently (sticky elements covering anchor scrolling) and there’s a somwhat modern solution to that: https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padd... . A
55.
▲
by
NightMKoder
6y ago
Could the sscanf bug also be a security issue? Most C strings are null terminated, but I could imagine using sscanf to read outside of bounds due to the null-seeking behavior on a non-null terminated array. If it is an issue, I think it pro
56.
▲
by
NightMKoder
6y ago
While that is true, Google hasn’t always used OS abstractions. Case in point - the browser chrome (of Google Chrome to try to disambiguate). They could have used their own UX if they wanted. They just didn’t.
57.
▲
by
NightMKoder
6y ago
I agree with both you and the parent from a principles perspective. There's no reason sharing on the web has to be somehow limited to whatever the website author chose to support. My problem is that this just isn't a pragmatic cho
58.
▲
by
NightMKoder
6y ago
Would anyone happen to have a screenshot of the web share experience on Windows? Is it also on for OSX? The API made a lot of sense to use on mobile - for example to send an SMS. You need to use apps to share. Bringing it to desktop, it may
59.
▲
by
NightMKoder
6y ago
This article seems like a case of jumping to conclusions. While Google somehow taking some time to figure out what to write is certainly an explanation, it is not the only one. Given the classic App Store experience of opaque waiting, I wou
60.
▲
by
NightMKoder
6y ago
As several folks pointed out, I was wrong with the translation. Evidently my family who are proper Russians have been humoring my half-correctness. Sorry for the incorrect info above everyone! I did learn that фен can actually mean other ki
More ›