Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
slrz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
181.
▲
by
slrz
9y ago
Sure, but what's the property of ObjC-style message passing that makes it hard to implement in C? Like when you implement coroutines/threads in your language runtime, you're going to implement the context switching part in as
182.
▲
by
slrz
9y ago
If you care about long support times, you'd use an "enterprise" distribution and get exactly the same support periods (about 10 years) as with Windows or Solaris. This is no coincidence.
183.
▲
by
slrz
9y ago
> So you have only one user on your Mac and that user is named "root"? Really? That would be very strange. It might be the only local user with a password set, with all other users coming from a remote directory service. Think
184.
▲
by
slrz
9y ago
Yes. Basically: for k := range s1 { if s2.Contains(k) { result.Add(k) } }
185.
▲
by
slrz
9y ago
Thanks, looks useful for Desktop applications and being able to handle it with WiX is nice. Personally, I'm more interested in system-level programs for integrating Windows with some existing infrastructure.
186.
▲
by
slrz
9y ago
Ouch! type Strings map[string]stdext.Unit […] func (a Strings) Intersection(b Strings) Strings { result := NewStrings() for as, _ := range a { for bs, _ := range b { if as == bs { result.Add(as) break
187.
▲
by
slrz
9y ago
If sets are a good match for your problem (and I agree, they tend to be for many common ones), you definitely should use them in Go. Just write the fucking code. Even if you use the most obvious, naive code to implement fundamental set oper
188.
▲
by
slrz
9y ago
Wow. Automatic security update locks me out of my computer without any explicit notice given. How very nice of them.
189.
▲
by
slrz
9y ago
Is there portable open source tooling to create these packages, like there is for MSI? Can programs installed through Appx packages do everything you can do as a Windows app or is there some form of mandatory sandboxing that would prevent i
190.
▲
by
slrz
9y ago
This is considered "white hat" behaviour? Both approaches look like straight out of internet scum 101.
191.
▲
by
slrz
9y ago
> Just to turn this discussion towards the practical aspect: does anyone know if a concrete effort has been made to sound out Torvalds and the other senior kernel devs about accepting Rust into the kernel? This is not how things work. Yo
192.
▲
by
slrz
9y ago
Looking at GhostText and its editor integration scripts, those basically work by running a websocket server on localhost. Implementing access controls seems to be left as an exercise for the reader. If I understand the native messaging API
193.
▲
by
slrz
9y ago
Thank you for your work on Firefox. > This WebExtension API is much smaller, much better documented, and does not expose internals-only stuff. It also doesn't expose a lot of stuff that's useful and not tied to Firefox internal
194.
▲
by
slrz
9y ago
The original Zotero also died with the demise of XUL extensions. It, too, used to be a Firefox extension.
195.
▲
by
slrz
9y ago
So true. Can't be put any more eloquently.
196.
▲
by
slrz
9y ago
Actually, I think the Google-provided map of hotels is a lot more useful to me as a search user than almost everything else likely to be returned from a spammy-hellhole-producing search term like this one. I don't know how to make su
197.
▲
by
slrz
9y ago
Thanks for the correction. I think that's somewhat unfortunate, though. The powerful shared tooling is one of the strengths of the Go ecosystem and if there are issues with it that prevent the use in Goland I'd rather see those ge
198.
▲
by
slrz
9y ago
> In Go, if a goroutine panics for some reason it just dies on its own and the world does not know unless you have some sort of ping service If a goroutine panics and is not recovered, it not only dies but tears down the whole process. T
199.
▲
by
slrz
9y ago
Thank deity Go language design is not done by popular vote. If you want the Trump of programming languages, you probably have to look elsewhere.
200.
▲
by
slrz
9y ago
The standard godoc documentation browser does this too when started with the -analysis option. They all use the same source code oracle functionality available from the x/tools repo.
201.
▲
by
slrz
9y ago
> take for example interface slices, you start by learning that you can assign any type to interface{}, so intuitively you'd think that you could assign any type slice to []interface{} but you find out soon enough that doesn't
202.
▲
by
slrz
9y ago
Eh, file system I/O? Compared to Linux, Windows really sucks there. As does OS X.
203.
▲
by
slrz
9y ago
The more people use the web, the more Google gains. It's really as simple as that. People switching their media consumption from traditional media (TV and dead tree) to the web is what makes Google more money. How? Advertising budgets
204.
▲
by
slrz
9y ago
Except that the Chrome behaviour isn't non-conforming. AFAICT, honoring autocomplete="off" is not required UA behaviour. It's a 'should', not a 'must'.
205.
▲
by
slrz
9y ago
But it is the job of browser developers to build programs that serve their users. If I, as a user, want to autocomplete a form field, the website operator doesn't get a say in whether I can do that. The settings that come with the mark
206.
▲
by
slrz
9y ago
Go doesn't insist that your code lives in ~/go/src. It can live anywhere beneath a directory of your choice. Note that there's no requirement that GOPATH contains only Go source code. You can put your scripts and resourc
207.
▲
by
slrz
9y ago
I don't think you can write a standard ANSI C program on Windows that opens a file specified on the command line where the file name contains characters not representable in whatever legacy charset Windows is using at the moment. At le
208.
▲
by
slrz
9y ago
What makes them so different from godoc's examples?
209.
▲
by
slrz
9y ago
That mechanism only works through cooperation of the OS installation process. It's actually the OS that asks the device whether there is any crapware it is supposed to ingest and then goes on to ingest it. As long as you consent to tha
210.
▲
by
slrz
9y ago
> (0) Forward declarations are the only way not to explicitly reveal the representation of types, but you have to pay an indirection tax for it, whether you actually need indirection or don't. If you don't want the indirection,
More ›