frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Iceland declares ocean-current instability a national security risk

https://www.dagens.com/news/iceland-declares-ocean-current-instability-a-national-security-risk
130•donohoe•2h ago•49 comments

It's Always the Process, Stupid

https://its.promp.td/its-always-the-process-stupid/
163•DocIsInDaHouse•3h ago•62 comments

DNS LOC Record (2014)

https://blog.cloudflare.com/the-weird-and-wonderful-world-of-dns-loc-records/
83•mikejeays•3h ago•24 comments

Hachi: An Image Search Engine

https://eagledot.xyz/hachi.md.html
68•warangal•3h ago•10 comments

Bronze Age mega-settlement in Kazakhstan has advanced urban planning, metallurgy

https://archaeologymag.com/2025/11/bronze-age-mega-settlement-in-kazakhstan/
52•CGMthrowaway•1w ago•4 comments

Testing Shows Automotive Glassbreakers Can't Break Modern Automotive Glass

https://www.core77.com/posts/138925/Testing-Shows-Automotive-Glassbreakers-Cant-Break-Modern-Auto...
30•surprisetalk•2h ago•13 comments

Hardening the C++ Standard Library at scale

https://queue.acm.org/detail.cfm?id=3773097
7•ndesaulniers•6d ago•1 comments

AccessOwl (YC S22) Is Hiring a Technical Account Manager (IAM)

https://www.ycombinator.com/companies/accessowl/jobs/dGC3pcO-technical-account-manager-identity-a...
1•philipeller•51m ago

The CRDT Dictionary: A Field Guide to Conflict-Free Replicated Data Types

https://www.iankduncan.com/engineering/2025-11-27-crdt-dictionary/
48•birdculture•5h ago•1 comments

System 7 natively boots on the Mac mini G4

https://macos9lives.com/smforum/index.php?topic=7711.0
278•ibobev•14h ago•76 comments

Building road signs at home using a Cricut Machine

https://annanay.dev/build-a-signboard/
15•annanay•3d ago•3 comments

WinApps: Run Windows apps as if they were a part of the native Linux OS

https://github.com/winapps-org/winapps
261•klaussilveira•4d ago•127 comments

Major AI conference flooded with peer reviews written by AI

https://www.nature.com/articles/d41586-025-03506-6
81•_____k•2h ago•46 comments

Airbus A320 – intense solar radiation may corrupt data critical for flight

https://www.airbus.com/en/newsroom/press-releases/2025-11-airbus-update-on-a320-family-precaution...
441•pyrophoenix•20h ago•140 comments

WebR – R in the Browser

https://webr.sh/
63•creata•5d ago•19 comments

We're learning more about what Vitamin D does to our bodies

https://www.technologyreview.com/2025/11/21/1128206/vitamin-d-bodies-bone-health-immune/
21•Brajeshwar•52m ago•4 comments

Garfield's Proof of the Pythagorean Theorem

https://en.wikipedia.org/wiki/Garfield%27s_proof_of_the_Pythagorean_theorem
125•benbreen•11h ago•61 comments

Chainalysis Successful Deanonymization Attack on Monero

https://darkwebinformer.com/chainalysis-successful-deanonymization-attack-on-monero-2/
34•Anon84•5h ago•16 comments

Show HN: Explore what the browser exposes about you

https://neberej.github.io/exposedbydefault/
160•coffeecoders•4d ago•54 comments

Build Your Own Router with URLPattern()

https://jschof.dev/posts/2025/11/build-your-own-router/
42•tobr•4d ago•21 comments

Every mathematician has only a few tricks (2020)

https://mathoverflow.net/questions/363119/every-mathematician-has-only-a-few-tricks
204•nill0•16h ago•52 comments

Imgur geo-blocked the UK, so I geo-unblocked my network

https://blog.tymscar.com/posts/imgurukproxy/
454•tymscar•23h ago•153 comments

Running a Business Means Contact with Reality

https://fredkozlowski.com/2025/11/02/running-a-business-means-contact-with-reality/
56•fkozlowski•3d ago•28 comments

Confessions of a Software Developer: No More Self-Censorship

https://kerrick.blog/articles/2025/confessions-of-a-software-developer-no-more-self-censorship/
315•Kerrick•19h ago•267 comments

Anthony Bourdain's Lost Li.st's

https://bourdain.greg.technology/
130•gregsadetsky•3d ago•31 comments

So you wanna build a local RAG?

https://blog.yakkomajuri.com/blog/local-rag
357•pedriquepacheco•1d ago•90 comments

Show HN: I built Magiclip – an all-in-one AI studio

https://magiclip.io/
31•kokau•5h ago•7 comments

High air pollution could diminish exercise benefits by half – study

https://scienceclock.com/exercise-may-protect-less-when-air-pollution-is-high-study-finds/
140•ashishgupta2209•6h ago•58 comments

Molly: An Improved Signal App

https://molly.im/
390•dtj1123•1d ago•233 comments

The risk of round numbers and sharp thresholds in clinical practice

https://www.nature.com/articles/s41746-025-02079-y
57•asplake•1w ago•24 comments
Open in hackernews

Linear Programming for Fun and Profit

https://modal.com/blog/resource-solver
62•hmac1282•6mo ago

Comments

ayhanfuat•6mo ago
> X = [x1, ..., Xn]: instances of each type to launch

Is this a continuous variable? Seems discrete to me. I am surprised it is solved by simplex.

Frummy•6mo ago
It's the answer, a vector of integers
ayhanfuat•6mo ago
Simplex cannot give a vector of integers though, unless the constraint matrix is unimodular. Maybe the integrality constraint was relaxed.
cweld510•6mo ago
You're right -- we do relax the integrality constraint, gaining performance at the expense of some precision, and we're generally able to paper over the difference at scheduling time. We've investigated integer linear programming for some use cases, but for solves to run quickly, we have to constrain the inputs significantly.
ayhanfuat•6mo ago
Thanks for the clarification. I guess it wouldn’t matter much if the numbers are large. Initially I thought they were mostly ones and zeros.
stncls•6mo ago
If this is business critical for you, you may want to switch to a faster solver. Glop is very nice, but it would be reasonable to expect a commercial solver (Gurobi, XPress, COpt) to be 60x faster [1]. By the same measure, the best open source solvers (CLP, HiGHS) are 2-3x faster than Glop.

Actually, the commercial solvers are so fast that I would not be surprised if they solved the IP problem as fast as Glop solves the LP. (Yes, the theory says it is impossible, but in practice it happens.) The cost of a commercial solver is 10k to 50k per license.

[1] ... this 60x number has very high variance depending on the type of problem, but it is not taken out of nowhere, it comes from the Mittelmann LP benchmarks https://plato.asu.edu/ftp/lpopt.html There are also benchmarks for other types of problems, including IP, see the whole list here: https://plato.asu.edu/bench.html

petters•6mo ago
If you are able to paper over the fractional numbers and get a usable solution, an integer solver should also be able to find a feasible solution easily. Perhaps not optimal, but better than just solving the LP and rounding
hustwindmaple1•6mo ago
You are basically doing a heurstic. Your solutions are not guaranteed to be optimal. Integer programming is the way to do.
cweld510•6mo ago
Great to see this post here -- really enjoyed writing it! I think it's really cool how an algorithm from an operational research context can play a critical role in a high-availability large-scale cloud service.
sumtechguy•6mo ago
LP is a shockingly good way to optimize a system. If you can put inputs/outputs into the correct form. Had an econ prof that loved these things for doing supply/demand maxima and minimum finding. He didnt outright say it but I think it was his current line of study when I was taking classes from him the 90s. I thought that, as he managed to bring it up in every class he taught.
Onavo•6mo ago
Well, kantorovich did win the Nobel for inventing that.
underanalyzer•6mo ago
Neat article. I do wish it mentioned that there are polynomial time algorithms to solve linear programming problems. According to the Google ortools docs it has the option to use those as well (but not with the GLOP solver). Might be good for when simplex is struggling (https://developers.google.com/optimization/lp/lp_advanced)
stncls•6mo ago
You're right, but it's very subtle and complicated.

In theory, the simplex method is not known to be polynomial-time, and it is likely that indeed it is not. Some variants of the simplex method have been proven to take exponential time in some worst cases (Klee-Minty cubes). What solvers implement could be said to be one such variant ("steepest-edge pricing"), but because solvers have tons of heuristics and engineering, and also because they work in floating-point arithmetic... it's difficult to tell for sure.

In practice, the main alternative is interior-point (aka. barrier) methods which, contrary to the simplex method, are polynomial-time in theory. They are usually (but not always) faster, and their advantage tends to increase for larger instances. The problem is that they are converging numerical algorithms, and with floating-point arithmetic they never quite 100% converge. By contrast, the simplex method is a combinatorial algorithm, and the numerical errors it faces should not accumulate. As a result, good solvers perform "crossover" after interior-point methods, to get a numerically clean optimal solution. Crossover is a combinatorial algorithm, like the simplex method. Unlike the simplex method though, crossover is polynomial-time in theory (strongly so, even). However, here, theory and practice diverge a bit, and crossover implementations are essentially simplified simplex methods. As a result, in my opinion, calling iterior-point + crossover polynomial-time would be a stretch.

Still, for large problems, we can expect iterior-point + crossover to be faster than the simplex method, by a factor 2x to 10x.

There is also first-order methods, which are getting much attention lately. However, in my experience, you should only use that if you are willing to tolerate huge constraint violations in the solution, and wildly suboptimal solutions. Their main use case is when other solvers need too much RAM to solve your instance.

underanalyzer•6mo ago
Very interesting! Thanks for the reply. I wonder if they tried these other solvers and decided they were either too slow b/c their problems were too small or the answers were too inaccurate
Onavo•6mo ago
The most interesting question is how you scrape the prices. The cloudprovider really need to provide an API.