Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
0x696C6961
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
241.
▲
Using OpenAI Advanced Voice to Create Mermaid Diagrams
(github.com)
2 points
by
0x696C6961
2y ago
|
0 comments
242.
▲
by
0x696C6961
2y ago
The rule of three should obviously not be applied to well known data structures and algorithms ...
243.
▲
by
0x696C6961
2y ago
They should put impact sensors inside the the gloves and use those readings to flash points on the screen video game style.
244.
▲
by
0x696C6961
2y ago
> but causes completely arbitrary behavior I think we have different definitions of "arbitrary"
245.
▲
by
0x696C6961
2y ago
Go is considered a memory safe language.
246.
▲
by
0x696C6961
2y ago
Yeah, I don't get who's going to be paying $10 a month for a nicer `git rebase -i`
247.
▲
by
0x696C6961
2y ago
I use sublime-merge as a daily driver. AFAIK, it doesn't have a comparable feature for re-ordering commits.
248.
▲
by
0x696C6961
2y ago
There's nothing I love more than git blaming and searching through 100s of "oops" and "edit" commits /s
249.
▲
by
0x696C6961
2y ago
> 1. add a very heavy editor framework (monaco) for a configuration page? It's a configuration page which requires editing code, so I added a code editor. > 2. use actual javascript to check partial urls one at a time? > For 2
250.
▲
by
0x696C6961
2y ago
> This should be built in to Firefox. That would be great.
251.
▲
by
0x696C6961
2y ago
You could accomplish that with ContainerScript like this: return url.hostname; But your container list would get pretty messy.
252.
▲
by
0x696C6961
2y ago
Firefox containers let you isolate browsing contexts. Think separate cookie jars. Example: You can have one container for work (logged into work Gmail, Slack) and another for personal (personal Gmail, Amazon). They won't share logins o
253.
▲
by
0x696C6961
2y ago
It's TypeScript bundled with esbuild. I needed to minify the output because the monaco editor resulted in file sizes over the 4MB limit imposed on FF addons. The background script is here: https://github.com/icholy/
254.
▲
by
0x696C6961
2y ago
Yep, this addon is for more advanced scenarios. For example, I have different AWS accounts open in a different containers and I want codebuild urls to open in the correct one depending on the project name.
255.
▲
by
0x696C6961
2y ago
Yeah, it's JavaScript so you can write whatever logic you want! if (url.hostname === "github.com") { if (/.*foo.*/.test(url.pathname)) { return "My Foo Conatiner" }
256.
▲
ContainerScript: Firefox Addon for programmatically assigning URLs to containers
(github.com)
29 points
by
0x696C6961
2y ago
|
26 comments
257.
▲
by
0x696C6961
2y ago
Oh please. Don't pretend like this has anything to do with "effort". If the book cover was some generic stock image you wouldn't even blink.
258.
▲
by
0x696C6961
2y ago
I love how the top comment is a guy literally judging a book by it's cover.
259.
▲
by
0x696C6961
2y ago
Which part of the signature are you struggling with? Maybe I can help you understand.
260.
▲
by
0x696C6961
2y ago
The ability to participate in select statements is a good call out. Thanks for taking the time to reply.
261.
▲
by
0x696C6961
2y ago
For context, here's the existing Map signature from the linked library: func Map[A, B any](in <-chan Try[A], n int, f func(A) (B, error)) <-chan Try[B] Are you suggesting that this channel based signature is significantl
262.
▲
by
0x696C6961
2y ago
Channels are just another synchronization primitive in your toolbox. They do make some things much simpler, but there's no reason to reach for one if a mutex does the job. The usage of mutexes doesn't make channels "bad"
263.
▲
by
0x696C6961
2y ago
I disagree that using channels is necessary for concurrency. Consider the following iterator based signature for your Map function: func Map[A, B any](in iter.Seq[Try[A]], n int, f func(A) (B, error)) iter.Seq[Try[B]]
264.
▲
by
0x696C6961
2y ago
I think that using iterators in the public API would have been better than channels.
265.
▲
by
0x696C6961
2y ago
I'm only familiar with the vtable approach, what other ways are there?
266.
▲
by
0x696C6961
2y ago
This is a good explanation https://www.openmymind.net/Zig-Interfaces/