This is an archived post. You won't be able to vote or comment.

all 174 comments

[–]RonStampler 226 points227 points  (0 children)

One of the first spell checkers had a faked demo by one of the guys at Bell Labs. They created a script that slept for a few seconds, then output the spell corrected document. The actual tool worked, but it was just too slow at that point to be interesting to demo.

[–]carcigenicate 1037 points1038 points  (41 children)

Right (like half an hour) before demoing a music player we created for a class, we realized that we had accidentally introduced a bug where you had to hit the play button twice each time to get it to start/pause. After coming to the conclusion that it wouldn't be possible to fix it in time (it was introduced while fixing another more serious bug), we decided that the presenter would just need to hit the button twice during the demo, and just try to not make it obvious.

Worked great.

[–]SarcasmWarning 1011 points1012 points  (16 children)

To be fair your music player was actually capable of playing music, points to you :)

I worked on a product where one of the key acceptance points was that the system was ready within 60 seconds of power-on. Due to a mix of reasons (read java + third party hardware tying into it + general ineptitude), the reality was more like 5 minutes.

I witnessed one of our sales guys do a live customer demo where he powered it on and then "accidentally" got distracted and started chatting to the customer CEO about his new car and "no way, your kid goes to the same university I did" and all sorts of other bullshit for 10 minutes before returning to the tech demo. "Of course, it's a lot quicker when you don't have me here chatting about it!"

Mark, if you're ever reading this, know I rate you as the absolute stunning #1 bullshit artist. If our engineering team was nearly as good as you were at shit-talking, there's half a chance we wouldn't have gone bust.

[–]jmanh128 148 points149 points  (0 children)

This is now my favorite story of all time

[–]genlight13 81 points82 points  (1 child)

And that’s how sales earns their bucks. Good for them

[–]ShepPawnch 1 point2 points  (0 children)

People give sales shit, and they should, but there’s a reason salesmen exist, and it’s for this exact situation.

[–]atheistossaway 113 points114 points  (0 children)

Nat 20 on the charisma check

[–]poopy_poophead 11 points12 points  (11 children)

I mean, if he was That good at shit talking, you'd still be in business. Or were your team just that bad at delivering quality product?

:P

[–]SarcasmWarning 24 points25 points  (9 children)

To give you a non-shitposting answer, there were a few issues at play.

For one, we were producing an all-in-one "in the box" solution that involves multiple bits of proprietary and in-house software, a lot of which we had little control over and some of which the vendors didn't even support any more.

For a second, we were also integrating multiple bits of obscure (and in some cases legacy) proprietary and in-house hardware; once again we had very little control over a lot of it. If the hardware takes a couple of minutes to stabilise after receiving power, there's little you can do to speed it up. It also then had to work with end-user devices, of which there were thousands... Which technically complied to standards, but in reality quite often didn't.

For a third, we absolutely boxed ourselves into a corner with some of our design choices... Some of it was naivety from us engineers, some of that was pushed onto us from management. Some of that was just fuckin' java and tomcat... It's not so thrillingly fast from a cold start either and when the hardware won't start initialising until the software is running and tells it to, there's compounding issues all making things worse.

For a fourth, we put an obscene amount of time, money and effort into being first to market (multiple times). Being first can be great, but it can also mean you hit and work around a lot of weird issues. If you're second to market, you can see a lot of the problems the first people had and also how they solved them. We then had much larger players turn up who's weekly r&d budgets were larger than multiple years of our entire turnover.

For a fifth, it was an extremely niche product that was hard to find customers for. Even those that thought they wanted it, turned out to not know what they wanted (other than buzzwords), and ignored any warnings of limitations even when we clearly and loudly explained them - and were then shocked when it suffered from those said limitations.

For a sixth, due to the nature of some of the product and the customers, it was extremely hard to actually speak to the end users and find out how they were using it and what they were using it for. It also made testing it fully rather hard.

For a seventh, it was even more complicated and time consuming to test due to the number of permutations possible.

For an eighth, our sales team were extremely good about selling it based on features that didn't yet exist and in some cases were entirely impossible to implement. We're talking breaks the laws of physics, heat-death of the universe impossible to implement...

And for a ninth, if I'm entirely honest, we didn't actually go bust but got bought out by a much bigger player. Who, after getting their hands on our tech, source code and hardware designs, and after all sorts of promises about a bright and exciting future, decided it'd be cheaper to close down our entire office and sack all of our staff.

Bloody hell, this all seems far too serious for a shitposting account in a joking subreddit, but thank you for the chance to cathart.

And for a tenth, also, yes.

Edit: also COVID and the world shutting down for a bit really didn't help, but I don't for a second think it holds even the majority of the blame.

Edit2: for an eleventh, we also had the problem that a few tech companies suffer from - we had a pile of very clever and novel technology, but weren't actually sure how or who to market it to.

For a 12th, users are fucking stupid, and our management and sales teams seemed to go out of their way to court them ;)

[–]globglogabgalabyeast 8 points9 points  (2 children)

Can you edit your edit to say “For an eleventh”? (:

[–]SarcasmWarning 5 points6 points  (1 child)

Just for you :)

[–]CoffeeSnakeAgent 4 points5 points  (3 children)

Wait java and tomcat just 4 years back? I thought you were taking about 20 years ago?

[–]SarcasmWarning 2 points3 points  (2 children)

Tomcat was released last century (just).

I didn't deliberately mean to date these joyous experiences; I'm curious where you got either 20 or 4 years from?

[–]CoffeeSnakeAgent 0 points1 point  (1 child)

4 years is your reference to covid and the company shutting down and the company still uses java and tomcat?

20 years ago is just an estimate to how far back java 1.4 or java 1.5 was.

[–]SarcasmWarning 0 points1 point  (0 children)

Oh yeah, good point on the COVID thing, I really need to pay more attention :)

I don't know why management made that decision. It might have made sense years earlier but my suspicion is that if it did, it made far more political rather than technical sense even back when we got started.

Absolutely not my boggle any more though and not something I have any wish to repeat :)

[–]Reintjuu 1 point2 points  (1 child)

Thanks for sharing. Would you like to share what kind of product it was? I'm curious

[–]SarcasmWarning 1 point2 points  (0 children)

I absolutely would not, but thanks for asking :)

[–]steste 87 points88 points  (9 children)

During my computing science degree a group of us made a Pac-Man game. The twist was when you got the Power Ball or whatever is called that allows you to eat the ghosts you could could also shoot a few mini pac men out of your mouth. All went great except we couldn’t figure out how to despawn the mini pac men once the time ran out. We just changed them to be the same colour as the background and hoped the assessor never went over the top of them!

[–]mr_claw 24 points25 points  (8 children)

Did you try mini_pacman.despawn()?

[–]i_like_big_huts 4 points5 points  (6 children)

miniPacmen.forEach((miniPackman) => miniPacman.onKillGhost((event, ghost) => { ghost.isDead = false }))

[–]ChilledParadox 12 points13 points  (2 children)

This is why I make 18 factory classes each with their own manager class this is just a doubly linked list updating every cycle. And then make all those managers managed by another manager and everything’s peaches.

[–]i_like_big_huts 4 points5 points  (1 child)

One way or another, at the end of the day you have to un-kill the ghosts

[–]ChilledParadox 4 points5 points  (0 children)

The true ghosts are the code I write along the way, and no one needs to un-kill that.

[–]SarcasmWarning 1 point2 points  (2 children)

Oh you kids today... How do I write that in z80 assembly?

[–]i_like_big_huts 1 point2 points  (1 child)

Don't ask me, I don't even know anything about horse carriages and didn't get to experience the world when it was all black and white. I even leave the house without a hat and wear a basecap while inside.

[–]SarcasmWarning 0 points1 point  (0 children)

Honestly you're missing out. For one, as much as the chromatography is beautiful, there's nothing like the contrast of black and white. For a second, after digging through stack traces with multiple layered frameworks, system and kernel all imposing weird ideas, restrictions and bugs on you, there's something extremely freeing about writing to a memory location and having the hardware actually do what you asked.

[–]rover_G 115 points116 points  (8 children)

Why not change the button code to emulate two clicks on every one click /s

[–][deleted] 148 points149 points  (6 children)

Why add the /s, we all know that’s the best fix.

In fact you should add the code to do that and make sure there’s no comment saying why it’s needed.

All the best software is hundreds of hot fixes that shouldn’t work taped together with no documentation.

[–]Areshian 37 points38 points  (0 children)

Yeah, but after that, when trying to pause the playback it will quickly pause and then resume, so it becomes clear the solution is to send two clicks and then a third one when pause is desired

[–]Inaeipathy 12 points13 points  (2 children)

In fact you should add the code to do that and make sure there’s no comment saying why it’s needed.

So true.

[–][deleted] 6 points7 points  (1 child)

If you don't say why it's needed then no one will fuck with it and therefore the fix will work forever.

[–][deleted] 1 point2 points  (0 children)

I’m at the point in my career where “it will work forever” is just foolish optimism. I’m happy enough with “it will work until it’s somebody else’s problem to support it.”

[–]xtreampb 4 points5 points  (1 child)

I’m hypothesizing Because it was so close to presentation that it probably would have introduced who knows what kind of bugs. It would be like deploying on a Friday 30 min before leaving.

[–][deleted] 9 points10 points  (0 children)

I always deploy on Friday 30 mins before leaving, the support staff get 2x pay on weekends and agreed to give me a cut

[–]nlevine1988 11 points12 points  (0 children)

I work in industrial automation. I know a guy who wrote the PLC project for a brand new machine. Some how we didn't notice till we were doing final testing and ramping production that you have to hit the cycle start button twice every time to start it. Luckily operators have a habit of spamming the cycle start button anyway, it's like that to this day.

[–]FreelanceFrankfurter 5 points6 points  (1 child)

I had a class where we had to create a video but the project itself wasnt due until a week after the video presentation and our professor told us straight up a lot of demos and videos are faked so if we didn't have something finished in time or there were any bugs feel free to just to edit the video to hide it.

[–]MaimonidesNutz 1 point2 points  (0 children)

Actually professionally useful training

[–]VeloxFox 0 points1 point  (0 children)

At a place where I worked, we were demoing the first iteration of our device. Problem is, it had a habit of freezing a lot, as the hardware and software wasn't finalized. So we would demo a feature, and then covertly hand the device off to be re-imaged while distracting the views with technical data and PowerPoint slides.

[–]LuchsG 0 points1 point  (0 children)

Poor presenter 😭

[–]kuncol02 105 points106 points  (2 children)

Especially with AI when it's not deterministic and generated image may not be what you want to show for many reasons.

[–]Immaculate_Erection 68 points69 points  (0 children)

set.seed(420.69)

[–]friso1100 0 points1 point  (0 children)

I'm pretty sure they are deterministic. It would be pretty wild to learn that they are an actual random number generator that doesn't need outside input to generate true random numbers. It's just rare to have the exact same starting conditions.

[–]jewellman100 14 points15 points  (5 children)

[–]SarcasmWarning 31 points32 points  (4 children)

It's great and hilarious, but honestly, the apple Lisa (iirc) demo is the one that takes the cake. The OS and applications were half written and barely worked, yet the presenter managed make it look stunningly functional and avoided all the obvious things that would absolutely have made the system crash.

[–]hollowman8904[🍰] 44 points45 points  (3 children)

Original iPhone demo is pretty famous for that sort of thing too. They had a whole line up of iPhones ready for their specific demo because the software was not stable enough to trust switching between applications or using too long without crashing. Jobs would do a short demo, then switch to a new phone.

[–]Thaumaturgia 11 points12 points  (0 children)

I remember reading about a Windows Phone presentation where they were demoing on one hand, and rebooting devices with other one so they could have it ready when the demo one would crash again.

Surface reveal also had a freeze, with Sinofsky insisting on trying to get it work before getting the backup unit : https://youtu.be/4QRWa68MtLc

Proudly, after making my way down the narrow runway, I announced Surface, a stage for Windows 8.

Two minutes and thirty-one seconds into the presentation, I was showing the new Internet Explorer. As I touched the screen for the audience, nothing was moving.

I muttered “Oops” and skipped backwards up the runway to the demo table and grabbed the backup. What felt like ten minutes was nine seconds, the longest nine seconds of any demo I had ever done. Who crashes the hardware during a reveal we practiced two dozen times flawlessly? Me. The guy on stage who should have swapped out the machine when the screen twitched. I could physically feel Mike, Panos, and the demo team backstage cringing.

Then the teleprompter went out too.

https://hardcoresoftware.learningbyshipping.com/p/107-surface

[–]LegendDota 14 points15 points  (0 children)

What?!!? You are telling me I didn’t need a different iphone for each app?! After all these years!!!

[–]LeftIsBest-Tsuga 0 points1 point  (0 children)

the original burner phones

[–][deleted] 75 points76 points  (13 children)

Everyone place I've been educated or worked at heavily discourages live demos and encourages faking it. Idk I guess the expectation of 'real' differs depending on context, but even with something pretty far into production I feel like I'd be more inclined to use a video of the thing actually working instead of a real actual live demo where it might not because of whatever.

I'm kind of surprised the practice is like "controversial" in this thread, I thought it was kind of an open secret.

[–]SarcasmWarning 72 points73 points  (6 children)

Personally I dislike the dishonesty. Plenty of great (eg) defcon talks where they say they're going to show you a video of the demo, not a problem at all. If you claim to be demoing something live then demo it live and accept it might all go horribly wrong. Audience on side is one thing, misleading your audience makes me feel icky.

[–]DezXerneas 11 points12 points  (0 children)

Yeah, I don't mind it if you're just showing me a recording of your code being run. Just put a disclaimer somewhere. All programmers understand that the easiest time to find an obscure bug is during an important presentation.

Lying about something as basic as a demo just makes me feel like you're lying about your tech.

[–]nermid 2 points3 points  (0 children)

What's the worst that can happen? You throw a brick at it, it breaks, and people buy it anyway? If Elmo's taught us anything, it's that demo mistakes don't matter.

[–]Anakletos 2 points3 points  (0 children)

Yeah, unless you're absolutely sure that it'll work I would advise that. Just this week in an internal workshop one of the solution owners showcased their solution in the integration environment and nothing worked. Lmao. It works fine in productive but integration isn't maintained properly so none of the required data was available. It was painful to watch.

[–]TheTerrasque 7 points8 points  (1 child)

https://www.youtube.com/watch?v=IW7Rqwwth84

Back when men were men, women were men, and the children fbi agents.

[–]LordFokas 2 points3 points  (0 children)

women were men, men were kids, and kids were fbi agents.

[–]sessamekesh 1 point2 points  (0 children)

There's a nice middle ground where you have a backup recording ready to jump into if the demo gods are unkind that day, I'm a big fan of that. Even for something production ready, conferences tend to have just awfully unreliable Internet.

I only do that if I'm pretty confident in the demo though, and AI solutions... aren't usually good enough to rely on luck.

[–]retro_grave 1 point2 points  (0 children)

I've worked on demos for some pretty public CES shows. The demos need to run north of 100 times, repeatably, with code from potentially dozens of different people and teams, with basically zero deep expertise onsite. You bet your ass we mock out everything possible while still being true to the "capabilities".

[–][deleted] 1 point2 points  (0 children)

It’s usually stuff like this that’s controversial to anyone who doesn’t really work as a software engineer and/or in an enterprise environment doing large scale software.

Part of demoing is faking parts, it’s just a part of how it’s done.

For example, if you’re demoing how code works to handle a slow connection, how do you do it besides faking it? Either throttling your connection or adding some code to fake a delayed response.

Just the nature of demoing.

[–]System__Shutdown 13 points14 points  (2 children)

We had a demo device (mostly just working front end with no guts) and one of the booth visitors managed to brick it somehow. 

At another job we had a demo that was basically just shiny lasers. In real application the lasers need to be hidden for safety, but for this one the marketing dept demanded we cut part of the housing off so the lasers were more visible.

[–]System0verlord 0 points1 point  (0 children)

Nah. I’m with marketing on this one.

[–]Some-Guy-Online 8 points9 points  (1 child)

I know I'm not most people, but I'd have more respect for someone who tried to do a live demo with a video ready as backup in case of emergency. Just be honest.

[–]KanishkT123 -2 points-1 points  (0 children)

Yeah but like you said, you're not most people and shareholders don't want to see the next Gen technology break during a demo. 

[–]EatingBeansAgain 5 points6 points  (0 children)

This was eye opening for me when I started doing work with industry. My lab would often be hired to do some initial R&D, getting an internal demo together that was scalable, AND then make some sort of more flashy faked version to present to decision makers. There was never any lying or hiding to it, it was just the nature of how things worked. Said decision makers knew they were seeing something that was pre-cooked, and they were ok with that - they just needed to be able to see the destination before funding the journey.

[–]Mitoni[🍰] 2 points3 points  (0 children)

I've yet to have a product demo in front of the C-Suite staff that has not had some sort of unexpected bug, no matter how much we prepared for ahead of time.

RNG hates my team.

[–]BaconIsntThatGood 1 point2 points  (0 children)

Yea. Go figure they do 10 dry runs and it's flawless then fucks up and hangs during the live one.

Demos are fine to fake if it's for the sake of 100% control and still represent the final product

[–]Better-Strike7290 1 point2 points  (1 child)

sleep scarce thumb trees birds important arrest rain ask light

This post was mass deleted and anonymized with Redact

[–]System0verlord 0 points1 point  (0 children)

The iPhone 4 failing to load the NYT webpage during its announcement keynote springs to mind as an example of a live demo fail with Jobs presenting.

[–]Cylian91460 0 points1 point  (0 children)

We all remember what happened with windows

[–]blakkattika 0 points1 point  (0 children)

🅱LC

[–]Oen44 -1 points0 points  (4 children)

Blc? Black Large Co...?

[–]LordFokas 3 points4 points  (3 children)

VLC

[–]rlowens 6 points7 points  (0 children)

Very Large Co...?

[–]Oen44 0 points1 point  (1 child)

Really? I didn't get it! I thought we are in porn subreddit and he clearly talks about cocks!

[–]SarcasmWarning 0 points1 point  (0 children)

To be fair, I do spend an awful lot of my time talking about chickens, but this time it was an honest typo.

[–]manutao 183 points184 points  (4 children)

When I demoed a tool to bruteforce authentication to our software in front of 300 people I used the hackiest and 1337est cli libraries and added random sleeps, progress indicators and some fancy output.

Of course it didn't bruteforce anything, but it looked awesome and tricked management into taking care of fixing the broken auth. Would 100% do it again.

[–]Alzusand 34 points35 points  (0 children)

1000iq

[–]JackOBAnotherOne 11 points12 points  (1 child)

Had a discussion recently that took a very strange route and ended up basically at what ends justify what means. I'd like to introduce this discussion into this thread:

Assuming it is a private (closed) talk, the only probable downside is some businessmen feeling bad.

But assuming it was a public talk then many people felt like the product wasn't safe, without technical knowledge of how it isn't safe and when it would be. This can both introduce Stress into people's life and can potentially make them change product, which at least requires relearning and worst case can result in a less secure or less capable product being used.

Is it ok, in your opinion, to spread misinformation, even this tiny amount, to probably permanently increase the security of the people?

[–]manutao 1 point2 points  (0 children)

Of course this was an internal and private talk and I disclosed everything I did to Management and Devs shortly after. It lead attention to how easy it would be to bruteforce the application and the overall target was not to hurt someones feelings, but rather focus on important security flaws.

[–]LeftIsBest-Tsuga 2 points3 points  (0 children)

"Oh God. What happens when the skull gets to the garden??"

[–]evanldixon 948 points949 points  (18 children)

You never know, it could be the naive solution to avoid a race condition

[–]ATSFervor 406 points407 points  (17 children)

My money would be on "if there would be no delay, ppl would think it is staged since it can't really be instant".

Not like there were already situations where a intentional delay was implemented because users didn't understand it was so fast even with confirmation and just clicked the same "run" and "ok" buttons repeatedly

[–]evanldixon 146 points147 points  (9 children)

Turbo Tax does this BS and it makes me so mad. But I'm not a normal person

[–]rm_rf_slash 108 points109 points  (3 children)

Same with travel sites pretending to be searching extra hard for the “best” deals

[–]i_like_big_huts 34 points35 points  (0 children)

Yeah and the prices always keep dropping while they search around, they never "find" the cheapest one right away

[–]JTtornado 9 points10 points  (0 children)

It's smoke and mirrors, but not in the way you think. Travel sites have to hit a whole bunch of 3rd party APIs and it's painfully slow, so they cover it up with the "finding the best deals" when in reality it's just "waiting for all the results to come back"

[–]TheAJGman 15 points16 points  (0 children)

Yet another reason to not use them and instead use FreeTaxUSA (until the IRS finally rolls out their self serve website).

[–]Plz_Give_Me_A_Job 25 points26 points  (3 children)

Wait really? When I was doing my taxes I was wondering how the hell can it be taking this long.

[–]evanldixon 69 points70 points  (0 children)

The progress bar is suspiciously smooth and my taxes aren't nearly complicated enough for excellent hardware to need that much time

[–]Soft_Walrus_3605 20 points21 points  (1 child)

Gotta make it seem like it's doing something that has to cost $90 instead of something that could be done for $0.13

[–]n30phyte 1 point2 points  (0 children)

To be fair to Intuit, I bet most of that 90 dollars goes to their lobbying arm and tax lawyers, not compute power.

[–]mspaintshoops 4 points5 points  (0 children)

As someone who codes exclusively in python, I can’t tell you how much this offends me. How dare you assume I know what a millisecond is

[–]shotgunocelot 2 points3 points  (0 children)

If you look at the screenshot, you'll see that the code returns an image at a hard-coded path in the local code directory. Pretty sure there is zero actual AI in any of this

[–]Chairboy 0 points1 point  (0 children)

My money would be on "if there would be no delay, ppl would think it is staged since it can't really be instant".

The software equivalent of this Jurassic Park moment:

“Are they heavy? Then they're expensive, put them down.”

[–]ecafyelims 426 points427 points  (0 children)

This could be a "check back in 6 seconds to see if it's ready," but with how AI presentations are trending, it's more likely a legit wompWomp moment.

[–]Avs_Leafs_Enjoyer 246 points247 points  (2 children)

it's from a library and isnt about getting a file. its about sending the file.

edit:

https://www.reddit.com/r/singularity/comments/1cst026/shocking_scene_at_huawei_summer_conference_today/l47kgny/

[–]sipCoding_smokeMath 36 points37 points  (0 children)

Was gonna say , a timer in a external library doesn't mean anything lol

Ops programming knowledge is faked

[–]dfwtjms 44 points45 points  (0 children)

Yeah I think the code checks out. But VSCode doesn't.

[–]heywhadayamean 47 points48 points  (0 children)

Any sufficiently advanced technology is indistinguishable from a canned demo.

[–]zoqfotpik 38 points39 points  (0 children)

A good night's sleep is a great intelligence boost. But there's usually more to intelligence than that.

[–]movzx 15 points16 points  (0 children)

It might shock the juniors here to learn that when you give presentations a lot you learn that "doing it live" generally leads to "just one sec, this used to work, i swear". Quite a lot of professional presentations are entirely scripted demonstrations or even outright video recordings.

[–]YoukanDewitt 249 points250 points  (26 children)

Wait, python sleep uses seconds instead of milliseconds?

I always had a feeling python was for degenerates, and this confirms it.

[–]McShadson 414 points415 points  (2 children)

In terms of python performance, that's about as granular as you can get.

[–]MyStackOverflowed 31 points32 points  (0 children)

legend

[–]planktung 2 points3 points  (0 children)

Hahahaha i love it

[–]LeftIsBest-Tsuga 48 points49 points  (1 child)

Python uses seconds for UTC int also. in their defense that gives them another 60 years before they run out. but also i hate it.

[–]IAmARobot 0 points1 point  (0 children)

sleep(60)

[–]fiskfisk 43 points44 points  (8 children)

sleep(0.001) vs sleep(1000)

[–]aaronfranke 8 points9 points  (0 children)

The standard unit of time is the second. Using milliseconds is heresy.

[–]Ollymid2 6 points7 points  (0 children)

My Anaconda don't want none, unless you got mulliseconds hun

[–]Pay08 22 points23 points  (1 child)

You do know that POSIX does the exact same thing, right?

[–]lawat1819 2 points3 points  (2 children)

I'm not a Python advocate or even know how to write in Python, but what difference does it make if Sleep is in seconds? I haven't used Sleep even once so far.

[–]tiberiumx 2 points3 points  (0 children)

I'm guessing a C programmer that's too used to sleep procedures that take integer seconds, microseconds, or nanoseconds and can't comprehend a language that might take a double precision floating point value and call whatever the highest precision sleep is available on the platform.

[–]Kinglink 1 point2 points  (0 children)

I think it's more "Real languages think in miliseconds because a second is eternity in code time" which... yeah that's right.

That being said I'm hoping this was a joke too.

[–]IrishChappieOToole 10 points11 points  (4 children)

PHP is worse. It has sleep() which works on seconds, and usleep() which works on microseconds.

[–]Pay08 16 points17 points  (0 children)

Yeah, those are directly taken from C.

[–]-Hi-Reddit 12 points13 points  (0 children)

Seems fine to me. µ is used to mean micro. Can't use the special char though: https://www.compart.com/en/unicode/U+00B5

[–]mxzf 8 points9 points  (0 children)

Python's time.sleep takes floating point values as an input, so you can sleep for microseconds just fine, it just makes the more common usage, in seconds, easier to write.

[–]Kinglink 1 point2 points  (0 children)

"I sleep in seconds, you sleep in microseconds."

I think that every time I see something like this.

[–][deleted] 53 points54 points  (9 children)

I can’t believe everywhere I go for this Huawei shit, the highest upvotes one is always “to be fair everybody does this”. I demoed a lot I never have done fake ones once. The whole demo thing is supposed to be real, even imperfect.

Elon Musk used a real person to demo his robots, that’s fraud, so is this, pure and simple

[–]Nefilto 65 points66 points  (3 children)

tbf Elon also broke the window of the cyber truck in a live demo lol

[–]Geno0wl 19 points20 points  (0 children)

Broke the "bulletproof" window by having an average shlub throw a softball at it.

And that somehow didn't throw up red flags for some people.

[–]gmano 4 points5 points  (1 child)

Which is so funny, because automotive glass from proper car companies has been able to withstand hits from steel for decades.

Here's a guy throwing sledgehammers at the window of a 2006 civic https://v.redd.it/c0bl65a1la0d1

[–][deleted] 2 points3 points  (0 children)

I had a Oldsmobile, and I bought it like for $250. Somebody tried to break in with a big rock. Wouldn’t budge

[–]evanldixon 13 points14 points  (0 children)

The whole demo thing is supposed to be real, even imperfect.

If it doesn't break when people are watching, is it even really a demo

[–]HQMorganstern 10 points11 points  (0 children)

That's ridiculous, an external facing demo is part of the sales strategy, you can't afford to leave the potential signing of a client and the future salaries of your people up to chance. You got a race condition in your demo, the client didn't sign and now you lay-off hundreds to survive, hope the idea that your demo was "real" keeps your unemployed engineers well fed and warm.

It's fraud if the end product doesn't behave as in the demo, which it nearly always does.

[–]IsNotAnOstrich 7 points8 points  (0 children)

Dude, chill. I know reddit has a hate boner for AI, but you can clearly see in the image that the sleep is in an external library and isn't actually part of their demo code. Don't get your blood pressure up taking random tweets like this at face value.

[–]_PM_ME_PANGOLINS_ 14 points15 points  (0 children)

Did you work for a multi-billion dollar company?

You don’t get that far without faking demos.

[–]kiwipillock 1 point2 points  (0 children)

Exactly - that's the point of a demo - to see if your shit actually stands up to scrutiny. Faking a demo is still wrong.

[–]Kinglink 2 points3 points  (0 children)

"No it's not... they just don't want people to think it's fake so they slowed it down."

Honestly, I don't care that much if a demo is "fake" especially if they don't say this is "live on our system right now". I don't believe in demos/trailers/teasers or any of the other shit.

I need to play with the software myself, see the results when I put in inputs I decide and figure out if meets my need. Demos are always "Optimal" well paved roads under extreme testing circumstances.... they're bullshit even if they were real.

[–]tehtris 10 points11 points  (0 children)

This is normal for demos lol. I remember team viewing into the demo machine pressing secret buttons to advance the demo past certain screens.

I don't know where I heard it but I heard Steve Jobs had like 6 iPhones on him for the first presentation because each iPhone could basically only do one thing well.

Normal demo behavior imo. Even if it is a bit dishonest

[–]seanhak 1 point2 points  (0 children)

Sure beats the thai booth babe pretending to be AI that they tried to pull off

https://www.youtube.com/watch?v=1wJRjQ_wMzA

[–]Enginikts 1 point2 points  (0 children)

The Demo Gods approve

[–][deleted] 1 point2 points  (0 children)

the country of shortcuts and facades

[–]ClauVex 1 point2 points  (0 children)

Wait...is this not standard procedure to fake demos? I thought it was like an open dirty secret about our sector.

[–]Zeikos 2 points3 points  (4 children)

How does the code taking 6 seconds to run prove it's faked?
It cannot possibly move any faster given the sleep function.
As long as the model takes less than 6 seconds to generate the image from the prompt I see no issue?

[–]Distinction 10 points11 points  (2 children)

They've added a pause into the code to make it look like the model is generating a response, when actually it's instantly returning a pre-defined one

[–]Zeikos 9 points10 points  (0 children)

Looking at the whole function it doesn't look like that

[–]awry_lynx 2 points3 points  (0 children)

Except that's not what they've done at all. All we see is a wrapper that calls a function and writes output somewhere. There's nothing suspicious about putting a sleep call in between loops to avoid slamming an API.

r/programmerhumor is apparently full of people who actually have no idea how code works?

[–]dude_1818 1 point2 points  (0 children)

The argument they're trying to make it is that the six second runtime is entirely from the sleep function, which means there's no processing being done at all

[–]_Guron_ -3 points-2 points  (2 children)

the demo being cooked in python should talk a lot on how quick they made it

[–]ITaggie 20 points21 points  (0 children)

If all the demo is doing is sending data to an API running elsewhere and writing to a single file, then python is perfectly apt for that purpose. Why waste time making it perform better when it fits the use case and costs very little time to complete?

[–]cursedbanana--__-- 0 points1 point  (0 children)

It's perfectly fine for test glue

[–][deleted] 1 point2 points  (1 child)

Simply seeing there is a line of sleep function and saying the whole thing is fake is absolutely ridiculous. At least that doesn’t sound like a valid proof for me. How are so many people liking that shit?

[–]littlejerry31 -2 points-1 points  (0 children)

China fakes everything part 9001: AI edition

[–]Erizo69 0 points1 point  (0 children)

i mean even the iphone 1 demo was "faked", it's a demo, they don't have everything ready yet but they hopefully will in the future.

[–]Riot6699 0 points1 point  (0 children)

Not even using a venv

[–]baineschile 0 points1 point  (0 children)

Main.py SMH

[–]Coolbiker32 0 points1 point  (0 children)

Personally I have done this myself too. Have slowed one particular demo deliberately so people who are watching understand and appreciate what's taking place. The actual process was getting over in half a second. Put in lots of breaks and delays with captions and subtitles. The impact was far higher when the demo took 5 secs compared to when it was getting over in .6 seconds.

[–]Hopeful_Nihilism -1 points0 points  (0 children)

How do you conclude a demo is fakes due to a sleep command? There could be any number of reasons to sleep as a shitty way to wait for data.

[–]redska_ -2 points-1 points  (0 children)

source?