Remix.run Logo
rpigab 4 days ago

"I heard you were extremely quick at math"

Me: "yes, as a matter of fact I am"

Interviewer: "Whats 14x27"

Me: "49"

Interviewer: "that's not even close"

me: "yeah, but it was fast"

jtwaleson 4 days ago | parent | next [-]

There should be a language that uses "Almost-In-Time" compilation. If it runs out of time, it just gives a random answer.

layer8 4 days ago | parent | next [-]

"Progressive compilation" would be more fun: The compiler has a candidate output ready at all times, starting from a random program that progressively gets refined into what the source code says. Like progressive JPEG.

phinnaeus 4 days ago | parent | prev | next [-]

Best I can do is a system that gives you a random answer no matter how much time you give it.

zelphirkalt 4 days ago | parent [-]

Great! 80-20, Pareto principle, we're gonna use that! We are as good as done with the task. Everyone take phinnaeus as an example. This is how you get things done. We move quickly and break things. Remember our motto.

card_zero 4 days ago | parent [-]

Break things and run away, got it.

Applejinx 4 days ago | parent [-]

[neddieseagoon] …and they did! [/neddieseagoon]

kleiba 3 days ago | parent | prev | next [-]

This might be a similar but possibly more sensible approach? -> https://en.wikipedia.org/wiki/Anytime_algorithm

jtwaleson 3 days ago | parent [-]

Yes, the way I described it is actually a sensible approach to some problems.

"Almost-in-time compilation" is mostly an extremely funny name I came up with, and I've trying to figure out the funniest "explanation" for it for years. So far the "it prints a random answer" is the most catchy one, but I have the feeling there are better ones out there.

philipwhiuk 4 days ago | parent | prev | next [-]

When you get the wrong answer you can just say 'ah yes, the halting problem'

mhuffman 4 days ago | parent | prev | next [-]

You should send a pull request to DreamBerd/Gulf of Mexico[0], it's surely the only language that can handle it properly!

[0]https://github.com/TodePond/GulfOfMexico

jtwaleson 3 days ago | parent [-]

Hilarious. I will actually do that :)

fer 4 days ago | parent | prev | next [-]

Soft real time systems often work like that. "Can't complete in time, best I can do is X".

bicepjai 3 days ago | parent | prev [-]

AIighT

donohoe 4 days ago | parent | prev | next [-]

  function getRandomNumber() {
    return 4
  }
joquarky 3 days ago | parent | next [-]

Good teacher. He really seems to care.

About what, I have no idea.

mewpmewp2 4 days ago | parent | prev | next [-]

Prove to me that it's not perfectly random.

jvanderbot 4 days ago | parent [-]

It is perfectly random for some distributions

getnormality 4 days ago | parent [-]

And it's big-O of zero time. The solution is already there.

shepherdjerred 3 days ago | parent | prev [-]

It’s better with the comment

https://xkcd.com/221/

nenenejej 4 days ago | parent | prev | next [-]

The lowest latency responses in my load tests is when something went wrong!

poszlem 4 days ago | parent | prev | next [-]

https://www.youtube.com/watch?v=4SI3GiPihQ4

“Is this your card?”

“No, but damn close, you’re the man I seek”

kqr 3 days ago | parent | prev [-]

This is one of my favourite images from a long-defunct proto-meme blog: https://entropicthoughts.com/image/doesntworkbutfast.jpg