Better HN
topnewbestaskshowjobs
Log inSign up

capableweb

37,790 karma · joined Sep 7, 2019 (7y ago) · 9,208 submissions

Curabitur pretium dui sit amet quam pharetra, at condimentum turpis auctor. Maecenas vitae varius sem. Sed vel ante massa. Nulla a leo est. Morbi quis pulvinar nulla, et imperdiet nibh. Curabitur varius felis tempor nisl vulputate, id accumsan libero placerat. Sed mi odio, auctor ac lacus vel, sollicitudin mattis dolor.
Submissions

comment 3y ago · link · parent

> ??? That isn't easy to understand

Distributed systems aren't simple, but compared to Paxos, Raft is definitely on the simpler side. I think they're also having a specific audience in mind (distributed systems engineers) rather than the public, when they write "it's easy to understand", which makes sense.

comment 3y ago · link · parent

The funny thing is that this constantly happens in every field ever, humans truly excel at repeating history without learning from the past.

Another example:

- HTML served by static file servers

- HTML generated by backend

- HTML enhanced with small JS snippets

- HTML generated by frontend, but served by backend

- Go to step one, not learning why anyone moved on from the previous method

comment 3y ago · link · parent

This doesn't seem to be true, unless you don't trust what Eleuther themselves are saying.

> The work we do would not be possible without the generous support of our donors and other sponsors: Core Weave, HuggingFace, Google TRC, Nat Friedman, Lambda Labs

https://www.eleuther.ai/about

comment 3y ago · link · parent

> This makes sense for people who don’t code, but I see plenty of developer oriented bloggers who use Substack, which is puzzling to me

No, it makes sense for any person with any skill set. Just because you are a developer doesn't mean you want to setup everything yourself. We use plenty of tools to make our own experience better and more focused, based on what we want to do.

If I'm a programmer, and I want to publish blog posts, sometimes I don't want to care about the setup that makes me able to publish blog posts, I just want to post something.

> why Substack doesn’t get with the program and just support MathJax and colored syntax highlighting already

This, I don't know. Should have been done ages ago.

comment 3y ago · link · parent

Eleuther:

> Core Weave, HuggingFace, Google TRC, Nat Friedman, Lambda Labs

https://www.eleuther.ai/about

comment 3y ago · link · parent

Same reason anyone would use a hosted service vs setting it up themselves, they don't want to deal with the hassle. For many of us, it's trivial, sometimes because we've done it before, but for others, it's a huge hill to climb, which seems unnecessary if all they want to do is publish some content.

comment 3y ago · link · parent

> Maybe if the rules are "your game shall not contain AI", then don't write a ChatGPT integration for it.

AI is such a broad term though. Either ban GPT/LLM architecture if that's the goal, or image synthesis, but be specific!

Probably more than 50% of all games out there contain something one could call "AI".

comment 3y ago · link · parent

> So this bullshit happens in the open source world just like in the closed source world.

The detail is what happens after this happens. In a closed source world, most of the cases, that's it. No more builds for any reason, it's dead. You want to change it? Then first reverse engineer it.

But if it's open source, I can if I must, pull down the source code myself and build it. It can continue to live, if someone wants.

609.

Hierarchical Identify Verify Exploit (HIVE)(darpa.mil ↗)

2 points · by capableweb · 3y ago · discuss

comment 3y ago · link · parent

> Steam is already hard to browse because of a sea of low quality shovelware. AI, if that's what the comment is referring to, is likely to make that situation much worse and degrade the platform. And Steam gets that.

Wouldn't you say there is a different between "Games made by AI" and "Games that included AI in one build for a specific feature as a test, and removed it"? The shovelware you talked about is the first, not the second.

comment 3y ago · link · parent

Would be fun and cool if submitter was linking to the Saint Helena version. I wonder what the odds would be, HN submitter + one person of ~4000 people living there, out of almost 8 billion

comment 3y ago · link · parent

Specifically the case of request management, it's already implemented and available in all browsers practically. It's like four lines of code you have to add/change, to be able to cancel a request. https://developer.mozilla.org/en-US/docs/Web/API/AbortContro...

Regarding other cases, there are already ways of handling those. I don't think just because many ask about something, doesn't mean it's not currently working.

comment 3y ago · link · parent

> Just imagine Slack or Microsoft Teams going for gaming chat; you can quite imagine that repurposing of product not happening.

If that ended up being more popular, they definitely would. But I don't think that'd happen either.

comment 3y ago · link · parent

> AWS and Microsoft are very, very different from Discord. Discord originated in gaming and caters to a largely non-paid user base, that background alone is enough to be skeptical.

AWS originated in providing servers for a book business that grew from there, Microsoft originated from writing a interpreter, but both of them excel in other areas today as well. It's not impossible to start with something (chat for gaming), gain expertise (chat for large groups) and then apply it elsewhere (chat in the workplace).

comment 3y ago · link · parent

Sure, but does the question really have any ambiguous answers?

For reference, this is/was the question: "Write a html page with javascript/canvas to draw the US flag that changes color when I click on it. Make the flag perfectly accurate."

The last part, "make the flag perfectly accurate", made me think that it has to be 100% accurate.

comment 3y ago · link · parent

> Would be nice, but no one can really do that at the moment.

Why not? Someone could definitely build up database on why GPT is bad at some things and good at others. There is already good explanations for why it's terrible at math, why it doesn't handle single characters/numbers well and so on.

comment 3y ago · link · parent

Why can't HN just be "full of people complaining/nitting about the grading/system/etc" without you assigning some "lack of character" meaning those people?

Your comment as it stands right now is basically a thinly veiled ad-hominem.

comment 3y ago · link · parent

> Regarding your last question, ChatGPT isn’t deterministic. It can certainly give a correct answer one time and an incorrect answer another time, for the same prompt.

It's supposed to be deterministic if you set temperature to 0.0, but seems that doesn't work well in GPT4 compared to earlier versions...

comment 3y ago · link · parent

> In my experience GPT is tuned to be totally deferential, "you're right, i apologize, let me try again!", no spine to tell me "yeah the task looks good"

I've managed to work around this in GPT (4 at least) by having a system prompt that forces GPT to challenge me and not blindly accept what I say without verifying it first.

comment 3y ago · link · parent

I don't think "questions that may have ambiguous answers" applies when you use a term like "perfectly accurate" which has a very specific meaning.

comment 3y ago · link · parent

I mean, why would you want to "cancel" a Promise? You can already cancel HTTP requests, what are some other things you want to cancel really?

If you don't want to continue with something inside a Promise, just pass in something that could be changed from `true` to `false` and it cancels itself based on that.

comment 3y ago · link · parent

Eh, it's so easy to provide your own implementation that does this, but I guess it wouldn't hurt to include in the standard-library since we already have something like Promise.all()

Here is the implementation I typically use for doing just that:

    async function executeQueue(promises, concurrentLimit) {
      let index = 0;
      let activePromises = [];

      async function manageQueue() {
        if (index >= promises.length && activePromises.length === 0) return;

        while (activePromises.length < concurrentLimit && index < promises.length) {
          const promise = promises[index]();
          activePromises.push(promise);
          index++;

          promise.then(() => {
            activePromises = activePromises.filter(p => p !== promise);
            manageQueue();
          });
        }
      }

      await manageQueue();
      await Promise.all(activePromises);
    }
Used like this:

    function r(i, resolve) {
      console.log(`Task ${i}`)
      resolve(`Task ${resolve}`)
    }

    // Example usage
    const promises = [
      () => new Promise(resolve => setTimeout(() => r("Task 1", resolve), 2000)),
      () => new Promise(resolve => setTimeout(() => r("Task 2", resolve), 1000)),
      () => new Promise(resolve => setTimeout(() => r("Task 3", resolve), 3000)),
      () => new Promise(resolve => setTimeout(() => r("Task 4", resolve), 500)),
      () => new Promise(resolve => setTimeout(() => r("Task 5", resolve), 1500))
    ];

    executeQueue(promises, 4).then(() => {
      console.log("All tasks completed!");
    });
Would print:

    "Task Task 4"
    "Task Task 2"
    "Task Task 1"
    "Task Task 5"
    "Task Task 3"
    "All tasks completed!"

comment 3y ago · link · parent

> I stopped playing after the challenge of creating a line-based canvas drawing of the word "Hello".

Similarly, stopped playing when the question was "Write a html page with javascript/canvas to draw the US flag that changes color when I click on it. Make the flag perfectly accurate." and it generated a flag that wasn't "perfectly accurate" (https://i.imgur.com/WhyRsYa.png, notice the position of the top/left stars) but then told me "Wrong! You guessed that GPT-4 could not solve the question, but it can! 71% of people got this question correct."

I'm not sure how the validation is done, seems to be manually hardcoded or something, but it seems it's not very reliable.

comment 3y ago · link · parent

There is more happening than switch-cases though, evident even from your link (it mentions Promises but doesn't provide the implementation for it).

I think what another comment mentioned is more accurate:

> Asnyc/await is just syntactic sugar for promises.

> Promises are just wrappers around callbacks.

> Callbacks are used to hook functions into an event loop. The dispatching/scheduling is handled there.

> So really when you use async/await, you’re just writing pseudo-sequential code that gets turned into callback code.

https://news.ycombinator.com/item?id=37360151

comment 3y ago · link · parent

> Thinking about the event loop opens up a can of worms I find more confusing than useful.

Probably for daily usage this might be true, but there are definitely cases when you're using JavaScript and not understanding the event loop makes it hard to understand why things are happening. Example:

    setTimeout(() => console.log('hello'), 0)
    console.log('world')
You'd normally expect this to print "hello" and then "world" since the "sleep time" for the setTimeout is set to 0, but thanks to the event loop, the result will be "world" and "hello". Very simple example, but in real life code bases and beginner JavaScript developers, in can be confusing at times.

626.

Starfield from Bethesda Game Studios(bethesda.net ↗)

2 points · by capableweb · 3y ago · 2 comments

comment 3y ago · link · parent

> Show me the link to vlc page on arch wiki

> GPT-4: You can find the VLC page on the Arch Wiki at the following URL: VLC - ArchWiki (https://wiki.archlinux.org/title/VLC_media_player)

It cannot "search", but it can provide direct links. I don't think the context just the previous message makes it clear what you actually want. Are you troubleshooting a error?

comment 3y ago · link · parent

Exactly what I was looking for, thanks :)

comment 3y ago · link · parent

> the largest congregation of deep-sea octopuses ever discovered on Earth, where over 6,000 octopuses huddle around an extinct underwater volcano in the black, cold ocean depths, almost two miles below the surface.

I'm 99% sure the number 6000 is an estimation, and in that case, how would you start to estimate such number? Divide the area into a grid of N cells, count all of them in one cell and then apply to the entire area? Seems they would be many clusters so the number would be very unreliable.

1
202122
307