frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

LT6502: A 6502-based homebrew laptop

https://github.com/TechPaula/LT6502
180•classichasclass•3h ago•50 comments

I Fixed Windows Native Development

https://marler8997.github.io/blog/fixed-windows/
527•deevus•9h ago•270 comments

EU bans the destruction of unsold apparel, clothing, accessories and footwear

https://environment.ec.europa.eu/news/new-eu-rules-stop-destruction-unsold-clothes-and-shoes-2026...
443•giuliomagnifico•3h ago•323 comments

With Apple: Fortify your app: Essential strategies to strengthen security

https://developer.apple.com/events/view/TUHA23T82K/dashboard
11•pjmlp•24m ago•0 comments

Towards Autonomous Mathematics Research

https://arxiv.org/abs/2602.10177
41•gmays•1h ago•8 comments

Show HN: VOOG – Moog-style polyphonic synthesizer in Python with tkinter GUI

https://github.com/gpasquero/voog
13•gpasquero•54m ago•1 comments

Gwtar: A static efficient single-file HTML format

https://gwern.net/gwtar
113•theblazehen•4h ago•27 comments

Real-time PathTracing with global illumination in WebGL

https://erichlof.github.io/THREE.js-PathTracing-Renderer/
71•tobr•3d ago•8 comments

State Attorneys General Want to Tie Online Access to ID

https://reclaimthenet.org/40-attorneys-general-back-ids-online-safety-act
42•computerliker•45m ago•25 comments

I love the work of the ArchWiki maintainers

https://k7r.eu/i-love-the-work-of-the-archwiki-maintainers/
837•panic•19h ago•149 comments

Hideki Sato, designer of all Sega's consoles, has died

https://www.videogameschronicle.com/news/hideki-sato-designer-of-segas-consoles-dies-age-75/
223•magoghm•4h ago•18 comments

Modern CSS Code Snippets: Stop writing CSS like it's 2015

https://modern-css.com
17•eustoria•2h ago•0 comments

Palantir Gets Millions of Dollars from New York City's Public Hospitals

https://theintercept.com/2026/02/15/palantir-contract-new-york-city-health-hospitals/
167•cdrnsf•2h ago•55 comments

Flashpoint Archive – Over 200k web games and animations preserved

https://flashpointarchive.org
294•helloplanets•14h ago•74 comments

Oat – Ultra-lightweight, semantic, zero-dependency HTML UI component library

https://oat.ink/
380•twapi•12h ago•110 comments

Palantir vs. the "Republik": US analytics firm takes magazine to court

https://www.heise.de/en/news/Palantir-vs-the-Republik-US-analytics-firm-takes-magazine-to-court-1...
136•cdrnsf•3h ago•54 comments

Show HN: Microgpt is a GPT you can visualize in the browser

https://microgpt.boratto.ca
6•b44•1h ago•0 comments

How Is Data Stored?

https://www.makingsoftware.com/chapters/how-is-data-stored
113•tzury•5d ago•8 comments

1940s Irish sci-fi novel features early mecha and gravity assists

https://github.com/cavedave/Manannan
40•donohoe•5h ago•18 comments

An Enslaved Gardener Transformed the Pecan into a Cash Crop

https://lithub.com/how-an-enslaved-gardener-transformed-the-pecan-into-a-cash-crop/
59•PaulHoule•4h ago•38 comments

Reversed engineered game Starflight (1986)

https://github.com/s-macke/starflight-reverse
83•tosh•8h ago•40 comments

LEDs Enter the Nanoscale, But efficiency hurdles challenge the smallest LEDs yet

https://spectrum.ieee.org/nanoled-research-approaches
6•oldnetguy•3d ago•1 comments

The Spy Who Found T. Rex

https://nautil.us/the-spy-who-found-t-rex-1267359/
8•speckx•3d ago•0 comments

Show HN: Knock-Knock.net – Visualizing the bots knocking on my server's door

https://knock-knock.net
22•djkurlander•3h ago•9 comments

My smart sleep mask broadcasts users' brainwaves to an open MQTT broker

https://aimilios.bearblog.dev/reverse-engineering-sleep-mask/
576•minimalthinker•1d ago•239 comments

Editor's Note: Retraction of article containing fabricated quotations

https://arstechnica.com/staff/2026/02/editors-note-retraction-of-article-containing-fabricated-qu...
74•bikenaga•2h ago•54 comments

RynnBrain

https://github.com/alibaba-damo-academy/RynnBrain
57•jsemrau•4d ago•5 comments

Amazon, Google Unwittingly Reveal the Severity of the U.S. Surveillance State

https://greenwald.substack.com/p/amazons-ring-and-googles-nest-unwittingly
561•mikece•7h ago•396 comments

The seam through the center of things

https://usefulfictions.substack.com/p/the-seam-through-the-center-of-things
40•surprisetalk•3d ago•6 comments

Court orders Acer and Asus to stop selling PCs in Germany over H.265 patents

https://videocardz.com/newz/acer-and-asus-are-now-banned-from-selling-pcs-and-laptops-in-germany-...
4•ledoge•28m ago•0 comments
Open in hackernews

Linear Programming for Fun and Profit

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

Comments

ayhanfuat•9mo 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•9mo ago
It's the answer, a vector of integers
ayhanfuat•9mo ago
Simplex cannot give a vector of integers though, unless the constraint matrix is unimodular. Maybe the integrality constraint was relaxed.
cweld510•9mo 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•9mo 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•9mo 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•9mo 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•9mo ago
You are basically doing a heurstic. Your solutions are not guaranteed to be optimal. Integer programming is the way to do.
cweld510•9mo 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•9mo 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•9mo ago
Well, kantorovich did win the Nobel for inventing that.
underanalyzer•9mo 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•9mo 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•9mo 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•9mo ago
The most interesting question is how you scrape the prices. The cloudprovider really need to provide an API.