4 ms·
Quicksort with Jenkins for fun and no profit
- juunpp 3y agoThis 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 3y agoAwesome. I’ve seen worse Jenkins pipelines than this.
- scruple 3y agoI maintain worse Jenkins pipelines than this. Reminds me, I need to restock some whiskey...
- michaelmior 3y ago> …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 3y agoPremature optimization and whatnot
- glitchc 3y agoChrist! Kill it with fire..?
- blharr 3y ago>Yes, patches and trunk! We were still using SVN back then. Is SVN really that obsolete? I thought it was still used
- anamexis 3y agoIt'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/ https://github.blog/2023-01-20-sunsetting-subversion-support...
- o11c 3y agoSVN was obsolete around 2010; it just had a lot of inertia from existing projects.
- ransom1538 3y agoYou can't pry SVN from gaming artists. Good luck. Binary files in git suck.
- bionsystem 3y agogit + nexus maybe would be the way to go ?
- rightbyte 3y agoOh 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 ...
- m463 3y agothat is such a common thing people have to do, why doesn't it do it out-of-the-box? (probably a plugin somehow)
- photonthug 3y agoNative support in job DSL: https://www.jenkins.io/blog/2017/09/25/declarative-1/ https://www.jenkins.io/blog/2017/09/25/declarative-1/
- rightbyte 3y agoThere is some parallell job thing but if I remember correctly there are some limitations. I don't remember the details it was to long time ago.
- esafak 3y agoJenkins is barely useful for CI/CD, so you might as well see what else you can do with it for fun.
- tussa 3y ago[flagged]
- zinclozenge 3y agoSince we're on the subject, is there a modern alternative to Jenkins?
- photonthug 3y agoGitlab and github ci is fine until you're working in an environment with major compliance requirements for self hosted everything and/or basically infinite build history. At that point, sadly you're back in Jenkins world. Another thing that kills Jenkins alternatives is just a sufficiently diverse number of languages/projects/build types. Plugin ecosystem sucks, but it's massive, and some of it will probably work for whatever use case. It's painful but your only alternative is also painful.. curating custom runner-containers for another ci tool with less existing historical effort to leverage
- bigstrat2003 3y agoIMO Jenkins works great and the hate is vastly overblown. So... I would say Jenkins is the modern alternative to Jenkins, personally.
- wharvle 3y agoGroovy is god-awful though. Jenkins is... fine, basically, if you can get away with almost never having to touch Groovy.
- QuiDortDine 3y agoA good Groovy script limits itself to running scripts in better languages.
- roastedfunction 3y agoThis is the way. Groovy isn’t that bad but the CPS interpreter & sandboxing is god awful to develop on and troubleshoot.
- joelwilliamson 3y ago
- bikson 3y agoWhere's Spanish inquisition when we need them?
- deleted 3y ago[deleted]
- nickdrozd 3y agoIdeas 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/books_pres_0/6515/sicp.zip/full-text/book/book-Z-H-11.html#%_sec_1.2.1 https://mitp-content-server.mit.edu/books/content/sectbyfn/b...
- chrishare 3y agoAnyone know of a version that is no fun and many profit? Asking for a friend
- sour-taste 3y agoBecoming an expert on jenkins then selling your services as a 'jenkins consultant'.
- falserum 3y agoBut it’s like a deal with a devil, just instead of selling your soul, you would be giving away a lot of tears. Frequently. In large quantities.
- m463 3y agoThis is like a flower sprouting out of the ground of an abandoned factory. I think jenkins is very useful yet painful.
- xpressvideoz 3y agoI didn't know Jenkins was this powerful. Do GitHub Actions and GitLab CI/CD support something similar? I doubt it because they seem to heavily focus on declarative style, though.
- ransom1538 3y agoGitHub Actions can do anything jenkins can do, you just need to do 300 commits to test it.
- genzer 3y agoThis made me laugh out loud! So much related! Ever since I discovered `act` [1], I made a lot less commits. [1]: https://github.com/nektos/act https://github.com/nektos/act