News for hackers. Stuff that matters.
Re:We Don’t Use Docker by SatvikBeri on Tuesday March 16, 2021 @01:36AM (#26473388)
Several years ago, I was chatting with another engineer from a close competitor. He told me about how they'd set up a system to run hundreds of data processing jobs a day over a dozen machines, using docker, load balancing, a bunch of AWS stuff. I knew these jobs very well, they were basically identical for any company in the space.

He then mentioned that he'd noticed that somehow my employer had been processing thousands of jobs, much faster than his, and asked how many machines we were using.

I didn't have the heart to tell him we were running everything manually on my two-year-old macbook air.

Re:We Don’t Use Docker by movedx on Tuesday March 16, 2021 @02:12AM (#26473556)
F- me. I love this. This is a really important message.

It's like Jonathon Blow asks: why does Photoshop take longer to load today than it did in the 90s despite the (insane) advances in hardware?

I believe it's due to a bunch of things, but over complicating the entire process is one of the big issues. If people (developers/engineers) would only sit back and realise just how much computing power they have available to them, and then realised that if they kept things simple and efficient, they could build blazing fast solutions over night.

I cringe thinking about the wasted opportunities out there.

Re:We Don’t Use Docker by dzonga on Tuesday March 16, 2021 @11:30AM (#26478092)
Jonathan Blow's Preventing the Collapse of Civilization [0] is an excellent talk, on how too much abstractions destroy knowledge.

This is a problem with the software industry today. we have forgotten how to do the simple stuff, that works and is robust.

[0]: https://www.youtube.com/watch?v=ZSRHeXYDLko

Re:We Don’t Use Docker by movedx on Tuesday March 23, 2021 @07:26PM (#26561664)
That was a really great watch, thanks!
Re:We Don’t Use Docker by adflux on Tuesday March 16, 2021 @03:10AM (#26473822)
Compare photoshop between the 90s and now. 10x on features. Size of photos grown exponentially as well.
Re:We Don’t Use Docker by movedx on Tuesday March 16, 2021 @04:12AM (#26474136)
I see the point you're trying to make, however the increase in features (and their complexity) plus the size of the average graphic that a high-end professional has maybe grown by 300-500% since the 90s. In fact I'll tell you what: I'll give you a growth of 10,000% in file sizes and feature complexity since the since the 90s...

... computational power has grown ~%259,900 since the 90s.

The point being made is this: Photoshop does one job and has one focus should), yet it has gotten slower at doing that one job and not faster. Optimising the code AND introducing incredibly hardware to the consumer market should see Photoshop loading in milliseconds, in my opinion.

Re:We Don’t Use Docker by coldtea on Tuesday March 16, 2021 @07:09AM (#26475234)
>The point being made is this: Photoshop does one job and has one focus should), yet it has gotten slower at doing that one job and not faster.

Has it though? Without measurements this is just idle talk.

And I've used Photoshop in the 90s and I use it today ocassionally. I remember having 90s sized web pictures (say, 1024x768) and waiting for a filter to be applied for tens of seconds - which I get instantly today with 24MP and more...

And if we're into idle talk I've always found Photoshop faster in large images and projects than competitors, including "lightweight" ones.

It's hella more optimized than them.

In any case, some e.g. image filter application (that takes, e.g. 20 seconds vs 1 minute with them) just calls some optimized C++ code (perhaps with some asm thrown in) that does just that.

The rest of the "bloat" (in the UI, feature count, etc) has absolutely no bearing as to whether a filter or an operation (like blend, crop, etc) runs fast or not. At worst, it makes going around in the UI to select the operations you want slower.

And in many cases the code implementing a basic operation, filter, etc, hasn't even been changed since 2000 or so (if anything, it was optimized further, taken to use the GPU, etc).

Re:We Don’t Use Docker by brnt on Wednesday March 17, 2021 @02:16AM (#26487227)
I recall my dad requiring overnight sessions to have Photoshop render a particular filter on his Pentium 166MHz. That could easily take upwards of an hour, and a factor 10 more for the final edit. He'd be working on one photo for a week.
Re:We Don’t Use Docker by tasssko on Tuesday March 16, 2021 @05:01AM (#26474412)
To me it feels as though the last decade and a half computational power has not grown vertically. Instead Intel and AMD have grown computational power horizontally (i.e adding more cores). I'm looking at the difference the M1 has had on compute performance as a sign X86 strayed.
Re:We Don’t Use Docker by rcxdude on Tuesday March 16, 2021 @06:08AM (#26474840)
It has also grown substantially vertically: single-core speeds keep going up (about 10x from a decade and a half ago), even as core count increases. (and M1 is not substantially faster than the top x86 cores, the remarkable thing is how power efficient it is at those speeds).
Re:We Don’t Use Docker by phonon on Tuesday March 16, 2021 @06:30AM (#26474965)
This was state of the art 15 years ago.

https://en.wikipedia.org/wiki/Kentsfield_(microprocessor) Modern processors are nowhere near 10x faster single core. Maybe 4x.

If you take into account performance/watt you do get 10x or better.

Re:We Don’t Use Docker by irthomasthomas on Tuesday March 16, 2021 @06:57AM (#26475145)
The 3.4ghz P4 was released 2004 https://en.m.wikipedia.org/wiki/List_of_Intel_Pentium_4_proc...

If the trend had continued we would have 1500Ghz cores by now.

Re:We Don’t Use Docker by rcxdude on Tuesday March 16, 2021 @07:36AM (#26475410)
Clock speed != single-threaded performance. Clock speeds plateaued a long time ago, single threaded performance is still improving exponentially (by being able to execute multiple instructions in an instruction stream in parallel, as well as execute the same instructions in less clock cycles), though the exponent approximately halved around 2004 (if the trend had continued we would be at about a 100-500x improvement by now).

https://github.com/karlrupp/microprocessor-trend-data

Re:We Don’t Use Docker by phonon on Tuesday March 16, 2021 @03:50PM (#26481958)
Hard to say it's still "exponential"...what do you think the current constant doubling period is now?

Here's the single thread raw data from that repo. If you take into account clock speed increase (which, as you agree, have plateaued) we're looking at maybe a 2x increase in instructions per clock for conventional int (not vectorized) workloads.

Is there even another 2x IPC increase possible? At any time scale?

https://github.com/karlrupp/microprocessor-trend-data/blob/m...

Re:We Don’t Use Docker by erhk on Tuesday March 16, 2021 @01:01PM (#26479544)
No one is choosing Photoshop over competitiors because of load time
Re:We Don’t Use Docker by neuronic on Tuesday March 16, 2021 @05:56AM (#26474761)
And somehow Photopea is fast, free and in browser and suffices for 85% of whatever people do in Adobe Photoshop.
Re:We Don’t Use Docker by coldtea on Tuesday March 16, 2021 @07:06AM (#26475208)
Those people for whom Photopea is fast and suffices didn't need Photoshop in the first place.
Re:We Don’t Use Docker by Sebb767 on Tuesday March 16, 2021 @11:37AM (#26478233)
Opening PSDs is a big reason. A lot of designers will send PSDs and usually you also want them to check layers, extract backgrounds etc.
Re:We Don’t Use Docker by elondaits on Tuesday March 16, 2021 @08:26AM (#26475779)
Yes, I use Photoshop because, as it happens, I need to do 100% of my job.
Re:We Don’t Use Docker by b212 on Tuesday March 16, 2021 @08:13AM (#26475661)
Back in the day I was using Intel Celeron 333 MHz and then AMD Duron 800 MHz.

I did not know how to use Winamp playlists because Winamp has been "an instant" app for me, I just clicked on a song and it played within miliseconds. That was my flow of using Winamp for years. This did not change between the Celeron and Duron, the thing was instant on both Celeron and Duron.

Then Winamp 3 came out and I had to use playlists because a song once clicked took good second or two to start playing. Winamp 5 from 2018 still starts slower than my beloved 2.73* did 20 years ago. On Celeron 333 and 5400 RPM HDD with 256 MB of RAM. I think even the good old Winamp 2.x is not as fast as it was on Windows 98/XP.

Something went wrong.

* not sure if it was 2.73, but I think so

Note: I realise Winamp 3 was crappy as hell, but still...

Re:We Don’t Use Docker by mlok on Tuesday March 16, 2021 @08:58AM (#26476104)
This is why I did choose and stick to coolplayer at the time (before I converted to Linux) : no install, so light, so fast, and it had everything I needed. I loved it when I could find such an elegant a versatile app. I don't need to get "more" every 6-12 months.

I learned that every time you gain something, you also loose something without realizing it, because you take it for granted.

Re:We Don’t Use Docker by desktopninja on Tuesday March 16, 2021 @01:54PM (#26480366)
Winamp 2.73 is still my default player and works Win10 Pro 64x build $LATEST. I will never change. It is 2MB pure gold.
Re:We Don’t Use Docker by movedx on Tuesday March 16, 2021 @08:31AM (#26475830)
This is sad to read :(

I remember having a 486 my self and everything being so damn snappy. Sigh.

Re:We Don’t Use Docker by yowlingcat on Tuesday March 16, 2021 @08:35AM (#26475866)
Are you me? Perhaps a little bit later on and a different set of signifiers (foobar2000/xp/celeron 1.7) but the same idea. Things were so much snappier back then than on my previously-SOTA MBPR 2019. Sigh.
Re:We Don’t Use Docker by rograndom on Tuesday March 16, 2021 @09:14AM (#26476254)
I was at a graphic design tradeshow back in the mid 90's and there was a guy there demonstrating this Photoshop alternative called Live Picture or Live Photos or something like that. And he had a somewhat large, at the time, print image on the screen, probably 16mb or so, and was zooming in and out and resizing the window and it was redrawing almost instantly.

This was AMAZING.

Photoshop at the time would take many many seconds to zoom in/out.

One person in the group asked, "Yeah, but how much memory is in that machine?"

The guy hemmed and hawed a bit and finally said "It's got a bit, but not a lot, just 24mb."

"Yeah, well that explains it." Nobody had 24mb of RAM at that time. Our "big" machine had 16mb.

Re:We Don’t Use Docker by shrubble on Tuesday March 16, 2021 @10:42AM (#26477320)
Live Picture was the first to use what I think are called image proxies, where you can have an arbitrarily large image and only work with the screen-image sized image. Once you have applied all the changes and click save, it will then grind through the full size image if needed.

A feature that Photoshop has since added, but it appeared in Live Picture first.

Re:We Don’t Use Docker by rograndom on Tuesday March 16, 2021 @02:49PM (#26481142)
Yup, that must have been it. I think Adobe implemented that as a feature into Photoshop within a year of us seeing that other software.
Re:We Don’t Use Docker by brandonmenc on Tuesday March 16, 2021 @09:32AM (#26476441)
This might be a long shot, but did the demo include zooming in on a picture of a skull to show a message written on one of the teeth? If so, I've been trying to find a video of it for years.
Re:We Don’t Use Docker by rograndom on Tuesday March 16, 2021 @09:51AM (#26476655)
No, it was a photo of a building. The "demo" was the guy right there playing with the software, no video.
Re:We Don’t Use Docker by e_proxus on Tuesday March 16, 2021 @03:31AM (#26473941)
Perhaps, but size of photos should affect load times when starting the app (and in my opinion, so shouldn’t most feature either, but that depends on your architecture I suppose).
Re:We Don’t Use Docker by lostlogin on Tuesday March 16, 2021 @04:37AM (#26474258)
> Size of photos grown exponentially as well.

Photoshop can grow them itself and the below looks no and thread are amazing. https://news.ycombinator.com/item?id=26448986

Re:We Don’t Use Docker by thefz on Tuesday March 16, 2021 @04:00AM (#26474082)
Yeah Jonathan Blow isn't exactly a luminary in computer science. I once read him going on a meltdown over linux ports because "programming is hard". This is the kind of minds Apple enable, i.e. "why isn't this easy?"
Re:We Don’t Use Docker by neuronic on Tuesday March 16, 2021 @05:58AM (#26474778)
The entire point of computers is to make things easy.

The Apple question "why isn't this easy" is missing from 95% of UX in modern software. Stop acting as if software devs are the only users of software. And even then: computers should do work and not produce work or mental overhead.

Re:We Don’t Use Docker by dghf on Tuesday March 16, 2021 @10:46AM (#26477381)
> The Apple question "why isn't this easy" is missing from 95% of UX in modern software.

I switched to a MacBook at work a few months ago, and it's been an epic of frustration and Googling: e.g.,

1. I set the keyboard layout to UK PC, but it kept switching back to default. (I was accidentally mashing a keyboard shortcut designed to do just that. I've since disabled it.)

2. Clicking on a link or other web-page element will, occasionally and apparently randomly, take me back a page or two in my history rather than opening the link or activating the element. (At least in Chrome: I've not used another browser on macOS yet.)

3. Command-tabbing to a minimised application does not, as one would naively expect, automatically unminimise it. Instead I'm left staring at an apparently unchanged screen.

4. If I open Finder in a given folder, there is, as best can tell, no easy way to navigate to that folder's parent.

Now arguably #1 was the fault of my own ignorance (though some kind of obvious feedback as to what was happening and why would have been nice), and #2 may be down to Google rather than Apple.

But #3 and #4 are plain bad design, bordering on user-hostile.

So far I'm not seeing that Apple's reputation for superior UX is justified, at least not in laptops.

Re:We Don’t Use Docker by sjcoles on Tuesday March 16, 2021 @11:08AM (#26477720)
Window switching in OS X is so unintuitive it drives me MAD when you are remoting into a Mac.

Finder is just god awful and does all it can to obscure your actual filesystem location but the go to folder (cmd+g?) can get you where you need to go.

Re:We Don’t Use Docker by blacktriangle on Wednesday March 17, 2021 @03:55PM (#26496058)
The Apple reputation was absolutely justified back in the OS9 era, and the early iPhone as well. However both OS X and iOS7 and beyond were huge steps backwards in usability.

At this point I think Apple still deserves their reputation for superior UX, however that's a result of how epically bad Google, MS, and Facebook are at UX, not Apple doing a great job like they used to.

Re:We Don’t Use Docker by bigbizisverywyz on Tuesday March 16, 2021 @11:09AM (#26477738)
for 4. ...as best can tell, no easy way to navigate to that folder's parent

You can add a button to the toolbar in Finder (customize it from options) that when dropped down will show the complete path to the current folder as a list. You can use that to move up the tree.

Re:We Don’t Use Docker by mpcjanssen on Tuesday March 16, 2021 @11:29AM (#26478080)
Cmd-Up brings you to the parent folder.
Re:We Don’t Use Docker by ricketycricket on Tuesday March 16, 2021 @01:46PM (#26480242)
You can also cmd + click the current directory name in the menu bar to get the same menu.
Re:We Don’t Use Docker by otabdeveloper4 on Tuesday March 16, 2021 @06:37AM (#26475015)
Are you implying Apple software and devices are "easy"?

I think that's marketing, and not borne out of real experience.

Try setting up a new Apple device, there is very little in IT that is as frustrating and confusing.

Re:We Don’t Use Docker by coldtea on Tuesday March 16, 2021 @07:15AM (#26475269)
>Try setting up a new Apple device, there is very little in IT that is as frustrating and confusing.

It's a 5 minute process, and there's very little to it that it's not optimized for ease. Any champ can do it, and millions do.

Not sure what you're on about.

>I think that's marketing, and not borne out of real experience.

Yes, all those people are delluded.

Re:We Don’t Use Docker by otabdeveloper4 on Tuesday March 16, 2021 @07:26AM (#26475339)
Clearly you've never tried it, because it's certainly not 5 minutes, it's optimized for selling you bullshit Apple services and it's buggy as hell, with no feedback to the user why everything is broken and why you're having to re-authenticate five times in a row.

And good luck if you're setting up a family account for several devices with different iOS versions. You're gonna really need it.

Re:We Don’t Use Docker by coldtea on Tuesday March 16, 2021 @09:35AM (#26476472)
>Clearly you've never tried it, because it's certainly not 5 minutes, it's optimized for selling you bullshit Apple services and it's buggy as hell

I've tried it tons of times, have over 20 iOS/macOS devices over the years, and for some pervese reason, on macOS/OS X I like to install every major update on a clean disk too (and then re-import my data. It's an old Windows 95/XP-era reflex), so I do it at least once every year for my main driver (plus different new iOS devices).

What part of this sounds difficult?

https://www.youtube.com/watch?v=70u0x8Kf6j4

And the whole "optimized for selling you bullshit Apple services" is a couple of screens you can skip with one click -- and you might want to legitimately use too.

Re:We Don’t Use Docker by monkey_monkey on Tuesday March 16, 2021 @08:13AM (#26475659)
Honestly, literally millions of people do this every year, and for most of them, it's like 10 minutes, plus the time waiting for the iCloud restore. Even my dad was able to set up his new iPad, and he's as techophobic as it gets.
Re:We Don’t Use Docker by otabdeveloper4 on Tuesday March 16, 2021 @10:19AM (#26476981)
Technophobic people are exactly the target audience that has a huge tolerance for broken software built on piles of abusive bullshit.
Re:We Don’t Use Docker by monkey_monkey on Tuesday March 16, 2021 @12:45PM (#26479268)
My father has very little patience for broken things, software or otherwise, so I'm really not sure what you're talking about.
Re:We Don’t Use Docker by pjmlp on Tuesday March 16, 2021 @09:03AM (#26476157)
It is definitly easier than configuring any GNU/Linux distribution.
Re:We Don’t Use Docker by ensignavenger on Tuesday March 16, 2021 @11:25AM (#26478017)
Watching the video that coldtea posted, no, it is not. Ubuntu and most of its derivatives have very easy installers, and take a fraction of the time. The video didn't even include the time it would take to read and understand all the terms and conditions!
Re:We Don’t Use Docker by pjmlp on Tuesday March 16, 2021 @12:01PM (#26478574)
Assuming one wants a partial working computer after installation.
Re:We Don’t Use Docker by ensignavenger on Tuesday March 16, 2021 @02:33PM (#26480927)
I don't know what you mean by this- care to elaborate? I have several fully working computers running Ubuntu derivatives without having to do anything after the install.
Re:We Don’t Use Docker by pjmlp on Tuesday March 16, 2021 @02:35PM (#26480941)
I bet none of them is a laptop.
Re:We Don’t Use Docker by ensignavenger on Tuesday March 16, 2021 @07:47PM (#26484749)
I currently have two laptops, one a Lenovo from work with Kubuntu and the other cheap Asus with KDE Neon. Both required no additional work to be fully working after install.
Re:We Don’t Use Docker by coldtea on Tuesday March 16, 2021 @07:14AM (#26475257)
>This is the kind of minds Apple enable, i.e. "why isn't this easy?"

So the kind of minds we want?

"Why isn't this easy?" should be the bread and butter question of a programmer...

Re:We Don’t Use Docker by thefz on Tuesday March 16, 2021 @09:15AM (#26476266)
Except for problems that are hard. I wholeheartedly disagree, Blow showed many times he has not the right mindset.
Re:We Don’t Use Docker by yowlingcat on Tuesday March 16, 2021 @08:37AM (#26475883)
> This is the kind of minds Apple enable, i.e. "why isn't this easy?"

I dunno, personally that's why I've used Apple products for the past decade, and I think it's also maybe part of why they have a 2T market cap, and are the most liquid publicly traded stock in the world?

Re:We Don’t Use Docker by thefz on Tuesday March 16, 2021 @09:25AM (#26476366)
So making simplistic products that treat users as dumb is profitable, yeah, I agree with that.
Re:We Don’t Use Docker by meepmorp on Tuesday March 16, 2021 @10:42AM (#26477310)
Believe it or not, lots of people have more important things to do with their computers than dick with them to make shit work.

Most people don't really know how their car works, and shouldn't have to. Same goes here.

Re:We Don’t Use Docker by yowlingcat on Tuesday March 16, 2021 @11:14AM (#26477821)
Where's your evidence for that? The argument that it "treats users as dumb" and that doing so is "profitable" is oft trotted out, but I never see any substantiation for it. Plenty of companies do that. What's so special about Apple, then? I mean, it's gotta be something.

You gotta be careful about these arguments. They often have a slippery slope to a superiority complex (of "leet" NIX users over the unwashed "proles") hiding deep within.

Needlessly complex or powerful user interfaces aren't necessarily good. They were quite commonplace before Apple. Apple understood the value of minimalism, of cutting away interaction noise until there's nothing left to subtract. Aesthetically speaking, this is approach has a long, storied history with respect to mechanical design. It's successful because it works.

What Apple understood really acutely and mastered is human interface design. They perfected making human centric interfaces that look and feel like fluid prosthetic extensions of one's body, rather than computational interface where power is achieved by anchoring ones tasks around the machine for maximal efficiency. Briefly, they understood intuition. Are you arguing that intuition is somehow worse than mastering arcana, simple because you've done the latter?

Now, I'm not going to say that one is better than the other. I love my command line vim workflow dearly, and you'll have to pry my keyboard out of my cold dead hands. But there's definitely the idea of "right tool for the right job" that you might be sweeping by here. Remember, simplicity is as much a function of cherished *NIX tools you probably know and love. It's where they derive their power. Be careful of surface level dismissals (visual interfaces versus textual) that come from tasting it in a different flavor. You might miss the forest for the trees!

Re:We Don’t Use Docker by movedx on Tuesday March 16, 2021 @04:15AM (#26474150)
It's easy to take a stab at someone online, behind a keyboard, but I'd suggest you show us all your work and we'll judge your future opinions based on it.
Re:We Don’t Use Docker by thefz on Tuesday March 16, 2021 @09:31AM (#26476421)
By no metric I am comparatively as successful as the guy, but I am still able to disagree on his point that Linux is held back by its tools. The fact that he did not want or had the time to learn Linux's tooling don't mean anything in particular except that he's either very busy or very lazy. Any interview I read with him he's just ranting and crying over this or that "too complex" matter. If he does not want to deal with the complexity of modern computers, he should design and build board games.

As an example, read how the one-man-band of Execution Unit manages to, in house, write and test his game on three operating systems. https://www.executionunit.com/blog/2019/01/02/how-i-support-...

It's not a matter of "this is too hard", Blow just does not want to do it, let's be honest.

Re:We Don’t Use Docker by majjgepolja on Tuesday March 16, 2021 @08:02AM (#26475590)
preferably future work and dreams and ramblings too..

preferably over a twitch stream..

Re:We Don’t Use Docker by pjmlp on Tuesday March 16, 2021 @08:55AM (#26476076)
If I wanted that experience I would kept my PC with MS-DOS 3.3.
Re:We Don’t Use Docker by mason55 on Tuesday March 16, 2021 @09:40AM (#26476541)
I think there are two things that cause this.

One is that there’s a minimum performance that people will tolerate. Beyond that you get quickly diminishing user satisfaction returns when trying to optimize. The difference between 30 seconds and 10 seconds in app startup time isn’t going to make anyone choose or not choose Photoshop. People who use PS a lot probably keep it open all day and everyone else doesn’t care enough about the 20 seconds.

The second problem is that complexity scales super-linearly with respect to feature grown because each feature interacts with every other feature. This means that the difficulty of optimizing startup times gets harder as the application grows in complexity. No single engineer or team of engineers could fix the problem at this point, it would have to be a mandate from up high, which would be a silly mandate since the returns would likely be very small.

Re:We Don’t Use Docker by spondyl on Tuesday March 16, 2021 @02:46AM (#26473720)
If you haven't come across it, you might appreciate this post: https://adamdrake.com/command-line-tools-can-be-235x-faster-...
Re:We Don’t Use Docker by movedx on Tuesday March 16, 2021 @04:16AM (#26474154)
I'll give it a read. Thank you.

(I like anything that echos well in this chamber of mine... just kidding ;)

Re:We Don’t Use Docker by LdSGSgvupDV on Tuesday March 16, 2021 @04:02AM (#26474090)
The problem is that if everything is simple enough. How to set your goals this year? Complication creates lots of jobs and waste. This makes us not starved but others somewhere in the world or in the future when resource all gone.
Re:We Don’t Use Docker by movedx on Tuesday March 16, 2021 @04:17AM (#26474160)
I see where you're coming from with this, but this is getting into the realm of social economics and thus politics.

To solve the problem you're describing we need to be better at protecting all members of society not in (high paying) jobs, such as universal basic income and, I don't know, actually caring about one another.

But I do see your point, and it's an interesting one to raise.

Re:We Don’t Use Docker by comeonseriously on Wednesday March 17, 2021 @09:17AM (#26490719)
"But developer productivity!"

Most orgs (and most devs) feel developer productivity should come first. They're not willing to (and in a lot of cases, not able to) optimize the apps they write. When things get hard (usually about 2 years in) devs just move on to the next job.

Re:We Don’t Use Docker by yourapostasy on Tuesday March 16, 2021 @05:57PM (#26483665)
> If people (developers/engineers) would only sit back...*

It is a matter of incentives. At many companies, developers are rewarded for shipping, and not for quality, efficiency, supportability, documentation, etc.* This is generally expected of a technology framework still in the profitability growth stage; once we reach a more income-oriented stage, those other factors will enter incentives to protect the income.

Re:We Don’t Use Docker by movedx on Wednesday March 17, 2021 @09:11AM (#26490623)
Maybe. I'm not convinced.

I think you can build something complex quickly and well at the same time. I built opskit.io in three weeks. It's about 90% automated.

Re:We Don’t Use Docker by yourapostasy on Friday March 19, 2021 @03:52AM (#26510939)
> I think you can build something complex quickly and well at the same time.

One definitely can. It's a real crapshoot whether the average developer can. For what it's worth, I consider myself a below-average developer. There is no way I could grind l33tcode for months and even land a FAANG interview. I can't code a red-black tree to save my life unless I had a textbook in front of me. Code I build takes an enormous amount of time to deliver, and So. Much. Searching. You get the picture. I'm a reasonably good sysadmin/consultant/sales-engineer; all other roles I put in ludicrous amounts of effort into, to become relevant. Good happenstance I enjoy the challenge.

For the time being however, there is such enormous demand for any talent that I always find myself in situations where my below average skills are treated as a scarcity. Like near-100 headcount testing organization in a tech-oriented business with an explicit leadership mandate to automate with developer-written integration code from that organization...and two developers, both with even worse skills than mine. When a developer balks at writing a single regular expression to insert a single character into the front of an input string, that's nearly the definition of turning one wrench for ten years; while I'm slow and very-not-brilliant, I'm a smart enough bear to look up how to do it on different OS' or languages and implement it within the hour.

This is not unusual in our industry. That's why FizzBuzz exists. That's just to clear the bar of someone who knows the difference between a hash and a linked list.

To clear the bar of "something complex quickly and well at the same time" though, I've found it insufficient to clear only the technical hurdle and obtain consistent results. The developer has to care about all the stakeholders. Being able to put themselves into the shoes of the future developers maintaining the codebase, future operators who manage first line support, future managers who seek summarized information about the state and history of the platform, future users who apply business applications to the platform, future support engineers feeding support results back into developers, and so on. That expansive, empathetic orientation to balance trade-offs and nuances is either incentivized internally, or staffed at great expense externally with lots of project coordination (though really, you simply kick the can upstairs to Someone With Taste Who Cares).

I'd sure as hell like to know alternatives that are repeatable, consistently-performing, and sustainable though. Closest I can think of is long-term apprenticeship-style career progression, with a re-dedicated emphasis upon staffing out highly-compensated technical writers, because I strongly suspect as an industry we're missing well-written story communication to tame the complexity monster; but that's a rant for another thread.

Re:We Don’t Use Docker by darthrupert on Wednesday March 17, 2021 @01:15AM (#26486835)
Has Jonathan Blow actually measured these things or is this perhaps a skewed memory?
Re:We Don’t Use Docker by littlestymaar on Tuesday March 16, 2021 @05:59AM (#26474785)
Reminded me of Fabrice Bellard's Pi digits record[1]

The previous Pi computation record of about 2577 billion decimal digits was published by Daisuke Takahashi on August 17th 2009. The main computation lasted 29 hours and used 640 nodes of a T2K Open Supercomputer (Appro Xtreme-X3 Server). Each node contains 4 Opteron Quad Core CPUs at 2.3 GHz, giving a peak processing power of 94.2 Tflops (trillion floating point operations per second).

My computation used a single Core i7 Quad Core CPU at 2.93 GHz giving a peak processing power of 46.9 Gflops. So the supercomputer is about 2000 times faster than my computer. However, my computation lasted 116 days, which is 96 times slower than the supercomputer for about the same number of digits. So my computation is roughly 20 times more efficient.

[1]: https://bellard.org/pi/pi2700e9/faq.html

Re:We Don’t Use Docker by cobookman on Tuesday March 16, 2021 @02:05AM (#26473525)
I once joked with a colleague that my sqlite3 install is faster than his Hadoop cluster for running a report across a multi-gig file.

We benchmarked it, i was much, much faster.

Technically though once that multi-gig file becomes many hundreds of gigs, my computer would loose by a huge margin.

Re:We Don’t Use Docker by pmlnr on Tuesday March 16, 2021 @06:26AM (#26474941)
"Command-line Tools can be 235x Faster than your Hadoop Cluster"

https://web.archive.org/web/20200414235857/https://adamdrake...

Re:We Don’t Use Docker by Frost1x on Tuesday March 16, 2021 @08:11AM (#26475648)
I recently did some data processing on a single (albeit beefy node) someone had been using a cluster for. I composed and ran ETL in a day what took them weeks in their infrastructure (they were actually still in the process of fixing it).
Re:We Don’t Use Docker by Aeolun on Tuesday March 16, 2021 @02:26AM (#26473628)
At that point you can just get a bigger computer though.
Re:We Don’t Use Docker by ramraj07 on Tuesday March 16, 2021 @04:59AM (#26474396)
No you cannot, you cannot infinitely scale SQLite, you can’t load 100 G of data into a single SQLite file in any meaningful amount of time. Then try creating an index on it and cry.

I have tried this, I literally wanted to create a simple web app that is powered by the cheapest solution possible, but it had to serve from a database that cannot be smaller than 150GB. SQLite failed. Even Postgres by itself was very hard! In the end I now launch redshift for a couple days, process all the data, then pipe it to Postgres running on a lightsail vps via dblink. Haven’t found a better solution.

Re:We Don’t Use Docker by trashtester on Tuesday March 16, 2021 @06:53AM (#26475116)
My rule of thumb is that a single processor core can handle about 100MB/s, if using the right software (and using the software right). For simple tasks, this kan be 200+ MB/s, if there is a lot of random access (both against memory and against storage), one can assume about 10k-100k IOPS per core.

For a 32 core processor, that means that it can process a data set of 100G in the order of 30 seconds. For some types of tasks, it can be slower, and if the processing is either light or something that lets you leverage specialized hardware (such as a GPU), it can be much faster. But if you start to take hours to process a dataset of this size (and you are not doing some kind of heavy math), you may want to look at your software stack before starting to scale out. Not only to save on hardware resources, but also because it may require less of your time to optimize a single node than to manage a cluster.

Re:We Don’t Use Docker by xnx on Tuesday March 16, 2021 @07:54AM (#26475539)
> "using the right software (and using the software right)"

This is a great phrase that I'm going to use more.

Re:We Don’t Use Docker by yowlingcat on Tuesday March 16, 2021 @09:14AM (#26476249)
This is a great rule of thumb which helps build a kind of intuition around performance I always try to have my engineers contextualizing. The "lazy and good" way (which has worked I'd say at least 9/10 times in my career when I run into these problems) is to find a way to reduce data cardinality ahead of intense computation. It's 100% for the reason you describe in your last sentence -- it doesn't just save on hardware resources, but it potentially precludes any timespace complexity bottlenecks from becoming your pain point.
Re:We Don’t Use Docker by coldtea on Tuesday March 16, 2021 @07:20AM (#26475308)
>No you cannot, you cannot infinitely scale SQLite, you can’t load 100 G of data into a single SQLite file in any meaningful amount of time. Then try creating an index on it and cry.

Yes, you can. Without indexes to slow you down (you can create them afterwards), it isn't even much different than any other DB, if not faster.

>Even Postgres by itself was very hard!

Probably depends on your setup. I've worked with multi-TB sized Postgres single databases (heck, we had 100GB in a single table without partitions). Then again the machine had TB sized RAM.

Re:We Don’t Use Docker by mschuster91 on Tuesday March 16, 2021 @05:29AM (#26474600)
> but it had to serve from a database that cannot be smaller than 150GB. SQLite failed. Even Postgres by itself was very hard!

The PostgreSQL database for a CMS project I work on weighs about 250GB (all assets are binary in the database), and we have no problem at all serving a boatload of requests (with the replicated database and the serving CMS running on each live server, with 8GB of RAM).

To me, it smells like you've lacked some indices or ran on a rpi?

Re:We Don’t Use Docker by christophilus on Tuesday March 16, 2021 @06:31AM (#26474974)
It sounds like the op is trying to provision and load 150GB in a reasonably fast manner. Once loaded, presumably any of the usual suspects will be fast enough. It’s the up front loading costs which are the problem.

Anyway, I’m curious what kind of data the op is trying to process.

Re:We Don’t Use Docker by ramraj07 on Tuesday March 16, 2021 @08:57AM (#26476099)
I am trying to load and serve the Microsoft academic graph to produce author profile pages for all academic authors! Microsoft and google already do this but IMO they leave a lot to be desired.

But this means there are a hundred million entities, publishing 3x number of papers and a bunch of metadata associated. On redshift I can get all of this loaded in minutes and takes like 100G but Postgres loads are pathetic comparatively.

And I have no intention of spending more than 30 bucks a month! So hard problem for sure! Suggestions welcome!

Re:We Don’t Use Docker by shrubble on Tuesday March 16, 2021 @10:54AM (#26477508)
There are settings in Postgres that allow for bulk loading.

By default you get a commit after each INSERT which slows things down by a lot.

Re:We Don’t Use Docker by ramraj07 on Tuesday March 16, 2021 @09:01AM (#26476138)
How many rows are we talking about? In the end once I started using dblink to load via redshift after some preprocessing the loads were reasonable, and indexing too. But I’m looking at full data refreshes every two weeks and a tight budget (30 bucks a month) so am constrained on solutions. Suggestions welcome!
Re:We Don’t Use Docker by legg0myegg0 on Tuesday March 16, 2021 @09:50AM (#26476649)
Try DuckDB! I've been getting 20x SQLite performance on one thread, and it usually scales linearly with threads!
Re:We Don’t Use Docker by Silhouette on Tuesday March 16, 2021 @06:25AM (#26474937)
Maybe I'm misunderstanding, but this seems very strange. Are you suggesting that Postgres can't handle a 150GB database with acceptable performance?
Re:We Don’t Use Docker by ramraj07 on Tuesday March 16, 2021 @08:59AM (#26476113)
I’m trying to run a Postgres instance on a basic vps instance with a single vcpu and 8gb of ram! And I’ll need to erase and reload all 150 GB every two weeks..
Re:We Don’t Use Docker by arnaudsm on Tuesday March 16, 2021 @08:18AM (#26475710)
Had a similar problem recently. Ended up creating a custom system using a file-based index (append to files named by the first 5 char of the SHA1 of the key) Took 10 hours to parse my Terabyte. Uploaded it to Azure Blob storage, now I can query my 10B rows in 50ms for ~10^-7$. It's hard to evolve, but 10x faster and cheaper than other solutions.
Re:We Don’t Use Docker by ramraj07 on Tuesday March 16, 2021 @08:53AM (#26476057)
My original plan was to do a similar S3 idea, but I forgot about it’s charge per 1000 gets and puts and had a 700 dollar bill I had to bargain with them to waive! Does azures model not have that expense?
Re:We Don’t Use Docker by arnaudsm on Tuesday March 16, 2021 @05:34PM (#26483350)
I recall Azure was much cheaper and 30ms faster on average.
Re:We Don’t Use Docker by unchar1 on Tuesday March 16, 2021 @06:42AM (#26475043)
Curious if you tried this on an EC2 instance in AWS? The IOPS for EBS volume are notoriously low, and possibly why a lot of self-hosted DB instances feel very slow vs similarly priced AWS services. Personal anecdote, but moving to a a dedicated server from EC2 increased the max throughput by a factor of 80 for us.
Re:We Don’t Use Docker by trashtester on Tuesday March 16, 2021 @06:58AM (#26475152)
Did you try to compare that to EC2 instances with ephemeral nvme drives? I'm seeing hdfs throughput of up to several GB/node using such instances.
Re:We Don’t Use Docker by karmakaze on Tuesday March 16, 2021 @10:39AM (#26477268)
You can use locally attached SSD instances. Then you're responsible for its reliability so not getting all the 'cloud' benefits. Used them for provisioning own CI cluster with raid-0 btrfs running PostgreSQL. Only backed up the provisioning and CI scripts.
Re:We Don’t Use Docker by ramraj07 on Tuesday March 16, 2021 @09:02AM (#26476153)
Got burned there for sure! Speed is one thing but the cost is outrageous for io heavy apps! Anyways I moved to lightsail which doesn’t have io costs paradoxically so while io is slow at least the cost is predictable!
Re:We Don’t Use Docker by im3w1l on Tuesday March 16, 2021 @09:40AM (#26476538)
A couple of 64gb ram sticks and you can fit your data in ram.
Re:We Don’t Use Docker by movedx on Tuesday March 16, 2021 @02:12AM (#26473560)
It's all about the right tool for the job('s scale.)
Re:We Don’t Use Docker by StreamBright on Tuesday March 16, 2021 @05:17AM (#26474533)
You can skip Hadoop and go from SQLite to something like S3 + Presto that scales to extremely high volumes with low latency and better than linear financial scaling.
Re:We Don’t Use Docker by bartimus on Tuesday March 16, 2021 @02:51AM (#26473744)
Does hundreds of gigs introduce a general performance hit or could it still be further optimized using some smart indexing strategy?
Re:We Don’t Use Docker by z3t4 on Tuesday March 16, 2021 @03:03AM (#26473799)
Everything is fast if it fits in memory and caches.
Re:We Don’t Use Docker by yarcob on Tuesday March 16, 2021 @03:28AM (#26473925)
Unless it's accidentally quadratic. Then all the RAM in the world isn't going to help you.
Re:We Don’t Use Docker by Silhouette on Tuesday March 16, 2021 @03:52AM (#26474036)
And in 2021, almost everything* does.

*Obviously not really. But very very many things do, even doing useful jobs in production, as long as you have high enough specs.

Re:We Don’t Use Docker by tootie on Tuesday March 16, 2021 @08:57AM (#26476098)
I've had similar experiences. Sometimes we'll have a dataset with tens of thousands records and it will give rise to the belief that it's a problem that requires a highly scalable solution because "tens of thousands" is more than a human can hold in their head. In reality, if the records are just a few columns of data, the whole set can be serialized to a single file and consumed in one gulp into a single object in memory on commodity hardware no sweat. Then process it with a for loop. Very few enterprises actually have big big data.
Re:We Don’t Use Docker by SatvikBeri on Tuesday March 16, 2021 @12:07PM (#26478659)
My solution started out as a 10-line Python script where I would manually clean the data we received, then process it. CEO: "Will this scale?"

Me: "No, absolutely not, at some point we'll need to hire someone who knows what they're doing."

As time passed and we got more data, I significantly improved the data cleaning portions so that most of it was automated, and the parts that weren't automated would be brought up as suggestions I could quickly handle. I learned the very basics of performance and why `eval` is bad, set up my script so I didn't need to hard-code the number of files to process each day, started storing data on a network drive and then eventually a db...

I still don't know what I'm doing, but by the time I left it took maybe 5 minutes of manual data cleaning to handle thousands of jobs a day, and then the remainder could be done on a single machine.

Re:We Don’t Use Docker by Cthulhu_ on Tuesday March 16, 2021 @09:32AM (#26476439)
Said enterprise WISH they had big data. Or maybe it's fear, as in, 'what IF we get big data?'
Re:We Don’t Use Docker by SketchySeaBeast on Tuesday March 16, 2021 @09:54AM (#26476692)
I'm aware of a couple of companies who behave like that - "well, we could increase our user based by an order of magnitude at any point here, so better spring for the order of magnitude more expensive database, just in case we need it."

Feels like toxic optimism.

Re:We Don’t Use Docker by dvfjsdhgfv on Tuesday March 16, 2021 @12:02PM (#26478588)
It's not just about scaling databases, some people are simply unable to assess reasonable limits on any system. A few years ago certain Scandinavian publisher decided to replace their standard industry tools by a single "Digital Experience Platform" that was expected to do everything. After a couple of years they understood it's a stupid idea and gave up. Then later someone in the management thought that since they already spent some millions of euros they should continue anyway. This behemoth is so slow and buggy the end users work at 1/4th speed but everyone is afraid to say anything as the ones who did have been fired. The current PM is sending weekly success messages. It's hilarious. And all because someone once had a fantasy of having one huge system that does everything.
Re:We Don’t Use Docker by spratzt on Tuesday March 16, 2021 @02:53PM (#26481214)
I love the phrase 'toxic optimism'.
Re:We Don’t Use Docker by tim333 on Tuesday March 16, 2021 @01:34PM (#26480064)
I've noticed business people have a different idea of what 'big data' means to tech guys. The business guys think it means a lot of data like the records of a million people which is a lot of data but not the tech guy definition which tends to be data too large to process on a single machine.

Those come out at something like 1GB and 10TB which are obviously rather different.

Re:We Don’t Use Docker by d_burfoot on Tuesday March 16, 2021 @12:13PM (#26478761)
Unfortunately, this kind of behavior will be rewarded by the job market, because he's now got a bunch more tech buzzwords on his resume than you. Call it the Resume Industrial Complex: engineers build systems with as many bells and whistles as possible, because they want to learn all the hot new tech stacks so they can show off their extensive "skills" to potential employers.
Re:We Don’t Use Docker by api on Tuesday March 16, 2021 @09:08AM (#26476206)
I wonder what percentage of data center power is wasted running totally unnecessary trendy abstractions...
Re:We Don’t Use Docker by joshxyz on Tuesday March 16, 2021 @06:28AM (#26474952)
God I love stories like this
Re:We Don’t Use Docker by medium_burrito on Tuesday March 16, 2021 @11:14AM (#26477828)
My favorite part of conducting design interviews is when a candidate has pulled some complex distributed system out of their ass, and I ask them what the actual throughput/memory usage looks like.
Re:We Don’t Use Docker by darkwater on Tuesday March 16, 2021 @03:14AM (#26473841)
And what would happen the day you were hit by a bus?
Re:We Don’t Use Docker by krab on Tuesday March 16, 2021 @04:24AM (#26474198)
On that day, most probably nothing with regards to this task.

Then, later, probably someone would check out the scripts from a shared repo. Then, read an outdated README, try it out, swear a bit, check for correctness with someone dependent on the results, and finally learn how to do the task.

There is a lot of business processes that can tolerate days or weeks of delay in case of such a tragic (and hopefully improbable) event. The trick is to know which of them can't.

Re:We Don’t Use Docker by nicbou on Tuesday March 16, 2021 @05:17AM (#26474530)
That second paragraph is very relatable.
Re:We Don’t Use Docker by darkwater on Tuesday March 16, 2021 @06:24AM (#26474928)
> There is a lot of business processes that can tolerate days or weeks of delay in case of such a tragic (and hopefully improbable) event. The trick is to know which of them can't.

This is really true BUT that kind of problems are OK - nobody cares - until somebody starts caring and then all of a sudden it is urgent (exactly because they were undetected for weeks/months due to their periodicity)

Re:We Don’t Use Docker by krab on Tuesday March 16, 2021 @07:55AM (#26475545)
I meant it's fine to take calculated risks.

E. g. we have less than 1% chance per year that a given person leaves us on bad terms or suffers a bad accident or illness. In case it really happens, it will cost us X in delays and extra work. To lower the probability of this risk to Y% would cost us Z (money, delay, etc).

If you do this math, you can tell if it's a good idea to optimize here, or if you have more pressing issues.

In my experience, this sort of one-man jobs gets automated or at least well described and checked for fear of mistakes and/or employee fraud rather than "downtime".

Re:We Don’t Use Docker by darkwater on Tuesday March 16, 2021 @08:23AM (#26475751)
Mistakes are "downtime" as well in a way. Or maybe better, downtime is a mistake, cause errors and lead to problems.
Re:We Don’t Use Docker by neuronic on Tuesday March 16, 2021 @05:59AM (#26474788)
Another guy install Postgres on his machine, runs a git clone, connects to the VPN and initiates the jobs?
Re:We Don’t Use Docker by SatvikBeri on Tuesday March 16, 2021 @11:52AM (#26478427)
I wasn't even using a db at the time, it was 100% pandas. We did eventually set up more infrastructure, when I left the data was loaded into the company's SQL Server db, then pulled into pandas, then uploaded back into a different table.
Re:We Don’t Use Docker by SatvikBeri on Tuesday March 16, 2021 @11:48AM (#26478383)
It's true – at that point, if I had disappeared without providing any transition help, the company would have been in trouble for a few days. But that goes for any employee – we were only 7 people at the time!

Eventually I built out some more infrastructure to run the jobs automatically on a dedicated machine, but last I checked everything still runs on one instance.

Re:We Don’t Use Docker by tjalfi on Tuesday March 16, 2021 @08:46AM (#26475978)
All of my routine tasks are documented in the operations manual. I'd be missed but the work would still get done.