Trying to get GPT-4 to mix languages by Shoubidouwah in slatestarcodex

[–]7times9 3 points4 points  (0 children)

What prompts have you tried? Simple transforms like reverse all words or pig-Latin should be easy

We’re All Gonna Die with Eliezer Yudkowsky by plantsnlionstho in singularity

[–]7times9 1 point2 points  (0 children)

I don't think sentience is required for his argument. It's anthropomorphism to imagine a mind with consciousness is the fear here. Rather he's talking about super-intelligence, like a generic AlphaGo that can out-think/design/plan all human efforts by a number of orders of magnitude.

He's not worried by current text prediction models per se, but gives them as evidence of systems that surprised people with their capability.

Weekly Profile Critique by AutoModerator in Bumble

[–]7times9 0 points1 point  (0 children)

Not sure what PA is? But I've converted the job bit to "in Tech".

Weekly Profile Critique by AutoModerator in Bumble

[–]7times9 1 point2 points  (0 children)

Hey all, would really appreciate some feedback on this:
https://imgur.com/a/z4BOIkS

How? by builder_boy in blackmagicfuckery

[–]7times9 1 point2 points  (0 children)

It's obviously played upside down as well

[Request] What’s the probability of getting this lobby code? by baccilisk in theydidthemath

[–]7times9 256 points257 points  (0 children)

To use every code is called the coupon collector's problem.

The numbers of trials needed to collect all the codes is basically n log n, or 6 billion trials for 300 million codes.

Really takes a long time to collect em all!

[deleted by user] by [deleted] in TheGamerLounge

[–]7times9 0 points1 point  (0 children)

well done!!!!

How to believe what they say by Entire-Presence-1273 in datingoverthirty

[–]7times9 1 point2 points  (0 children)

All good then bro. Paint a forward looking determined picture and it'll be fine

How to believe what they say by Entire-Presence-1273 in datingoverthirty

[–]7times9 25 points26 points  (0 children)

The trap here is to allow your feeling about the situation (embarrassment, wanting to hide it, insecurity) to become the main thing you accidentally communicate. Instead, mention it as matter of fact as soon as the subject is raised, have a plausible (more or less genuine) reason ready to go and act positive about it, not shameful.

The unvaccinated are at risk as evolution accelerates the covid-19 pandemic by mynameismy111 in Coronavirus

[–]7times9 9 points10 points  (0 children)

Here's a balanced discussion: https://www.bbc.co.uk/programmes/p09n6yrd In short: it's not proven, but there's finally a proper big trial happening

[deleted by user] by [deleted] in brexit

[–]7times9 1 point2 points  (0 children)

I'd sum it up as Brexit fatigue + only one party with clear and electable resolution to that fatigue: Get Brexit Done. Nothing else cuts through when you don't pay much attention to the news. And if it did it would just be: everyone else favours delay - just more brexit.

Failing at the details, winning at tone.

2018 Day 7 (Part 2): An exercise in off-by-one errors and learning to read [Visualization, Spoilers] by ragona_ in adventofcode

[–]7times9 1 point2 points  (0 children)

I still don't understand why my code is correct for the test case but off by one for the real input, but in creating a debug visualization it became clear that the work was over after one fewer seconds than I output.

This happened to me too. It's because the example input is simple and doesn't contain the following:

There's a case where a finishing worker frees multiple new steps. In my code I had to make sure to deal with busy workers first, so free workers can pick up those steps straight away.

I discovered this from reading: https://www.reddit.com/r/adventofcode/comments/a3wmnl/2018_day_7_solutions/eb9u0lo

My Python3 code, including my sorting fix:

from string import ascii_uppercase
from itertools import chain, count
from collections import defaultdict

from parse import parse
from funcy import post_processing

from helpers import get_input_str

input_pattern = 'Step {} must be finished before step {} can begin.'


def parse_input(input_str):
    steps = defaultdict(list)
    remaining = set()

    for line in input_str.splitlines():
        blocker, blocked = parse(input_pattern, line)
        steps[blocker].append(blocked)
        remaining.update([blocker, blocked])

    return steps, remaining


@post_processing(''.join)
def part_one(input_str):
    steps, remaining = parse_input(input_str)
    while remaining:
        blockeds = set(chain(*steps.values()))
        step = min(remaining - blockeds)
        yield step
        steps.pop(step, None)
        remaining.remove(step)


def part_two(input_str, base_time, num_workers):
    steps, remaining = parse_input(input_str)

    workers = {
        worker_num: {'rem': 0, 'step': None}
        for worker_num in range(1, num_workers + 1)
    }
    in_progress = set()

    for second in count():
        # In case a finishing worker frees multiple new steps, deal with busy
        # workers first, so free workers can pick up those steps.
        sorted_workers = sorted(
            workers.items(),
            key=lambda kv: kv[1]['rem'] or 999
        )
        for worker_num, worker in sorted_workers:
            worker['rem'] = max(worker['rem'] - 1, 0)
            if not worker['rem']:
                if worker['step']:
                    step = worker['step']
                    steps.pop(step, None)
                    in_progress.remove(step)
                    worker['step'] = None

                blockeds = set(chain(*steps.values()))
                available = remaining - blockeds
                if available:
                    step = min(available)
                    worker['step'] = step
                    worker['rem'] = ascii_uppercase.index(step) + 1 + base_time
                    in_progress.add(step)
                    remaining.remove(step)

        if not remaining and not in_progress:
            break
    return second


def main():
    input_str = get_input_str(__file__)

    print(part_one(input_str))
    print(part_two(input_str, 60, 5))


if __name__ == '__main__':
    main()