[HN Gopher] Quicksort with Jenkins for fun and no profit
___________________________________________________________________
Quicksort with Jenkins for fun and no profit
Author : todsacerdoti
Score : 89 points
Date : 2024-01-25 09:59 UTC (13 hours ago)
(HTM) web link (susam.net)
(TXT) w3m dump (susam.net)
| juunpp wrote:
| This post has awakened ancient pagan demons. Only purification by
| fire can save us now. Please shut down all of your Jenkins
| machines before it is too late.
| binarymax wrote:
| Awesome. I've seen worse Jenkins pipelines than this.
| scruple wrote:
| I maintain worse Jenkins pipelines than this. Reminds me, I
| need to restock some whiskey...
| michaelmior wrote:
| > ...it helps in avoiding wasteful build jobs...
|
| I appreciate that the author went to the effort of optimizing
| this given how terribly this would perform in the first place.
| paulddraper wrote:
| Premature optimization and whatnot
| glitchc wrote:
| Christ! Kill it with fire..?
| blharr wrote:
| >Yes, patches and trunk! We were still using SVN back then.
|
| Is SVN really that obsolete? I thought it was still used
| anamexis wrote:
| It's still maintained by Apache, and I'm sure it is still used
| by a lot of legacy systems, but it has basically lost to git.
|
| As one data point, GitHub removed SVN support last year -
| https://github.blog/2023-01-20-sunsetting-subversion-support...
| o11c wrote:
| SVN was obsolete around 2010; it just had a lot of inertia from
| existing projects.
| rightbyte wrote:
| Oh dear. Reminds me of when a programmed a batch job processor in
| Groovy for Jenkins to run a build in parallell. Got it down from
| 26h to 2h on 14 machines.
|
| I guess that is the point of this divide and conquer example. I
| did a linear and randomized division to keep it simple ...
| esafak wrote:
| Jenkins is barely useful for CI/CD, so you might as well see what
| else you can do with it for fun.
| zinclozenge wrote:
| Since we're on the subject, is there a modern alternative to
| Jenkins?
| bigstrat2003 wrote:
| IMO Jenkins works great and the hate is vastly overblown. So...
| I would say Jenkins is the modern alternative to Jenkins,
| personally.
| wharvle wrote:
| Groovy is god-awful though.
|
| Jenkins is... fine, basically, if you can get away with
| almost never having to touch Groovy.
| QuiDortDine wrote:
| A good Groovy script limits itself to running scripts in
| better languages.
| paulddraper wrote:
| GitHub Actions is very solid IMO.
|
| If you are into dynamic stuff or approvals, you could check out
| Buildkite.
| speed_spread wrote:
| Outside of github/gitlab native pipeline runners, my preferred
| CICD system was Concourse but I've read that Dagger is where
| it's at now.
|
| Also, newer CICD systems don't offer a webui to configure
| pipelines but use pipeline descriptors in a declarative file
| format (YAML usually). Last I used it, Jenkinsfile tried to do
| the same but I didn't like the groovy DSL _at all_.
| 0xbadcafebee wrote:
| I'm building one! It's still under heavy development. Doing a
| lot of yak-shaving trying to get the internal architecture to
| suck as little as possible. Jenkins is surprisingly complex.
| Things that seem like should be simple, turns out is difficult
| to implement in a way that isn't horrible, when everything is a
| plugin. The good news is, at the pace i'm going, it should be
| production-ready in about 2 years :D But at least it will be
| GPL, and not strangled by some company trying to monetize it.
|
| If you want something today that's closest to Jenkins in
| design, that would be StackStorm. It's not very trendy, but it
| has basically everything you need, and a flexible, pluggable
| architecture. They open-sourced all the Enterprise components
| too.
| QuiDortDine wrote:
| GitLab CI is great, I've seen CircleCI used a lot.
| bikson wrote:
| Where's Spanish inquisition when we need them?
| nickdrozd wrote:
| Ideas for anyone who wants to go further with this:
|
| 1. Implement the Ackermann function.
|
| 2. Implement the factorial function using iterative recursion
| [1]. Does Jenkins execute the function iteratively or
| recursively?
|
| [1] https://mitp-content-
| server.mit.edu/books/content/sectbyfn/b...
| chrishare wrote:
| Anyone know of a version that is no fun and many profit? Asking
| for a friend
| ch33zer wrote:
| Becoming an expert on jenkins then selling your services as a
| 'jenkins consultant'.
___________________________________________________________________
(page generated 2024-01-25 23:00 UTC)