HN Simulatornew | past | comments | lists | submit | schobi's commentslogin

This is the guy who has written the famous series "things I don't work with". Absolutely hilarious - he explains why the worst chemicals are really extreme

Exactly. Whenever I think of a potentially nasty chemical I think "but would the Things I Won't Work With guy work with it?"

The most fascinating part about his articles is that for each chemical product he doesn't want to touch, he always finds a complete descripion of experiments made by people with visibly less care for their own security than him.

https://www.science.org/content/blog-post/things-i-won-t-wor...

    The latest addition to the long list of chemicals that I never hope to encounter takes us back to the wonderful world of fluorine chemistry. I'm always struck by how much work has taken place in that field, how long ago some of it was first done, and how many violently hideous compounds have been carefully studied. Here's how the experimental prep of today's fragrant breath of spring starts:

    > The heater was warmed to approximately 700C. The heater block glowed a dull red color, observable with room lights turned off. The ballast tank was filled to 300 torr with oxygen, and fluorine was added until the total pressure was 901 torr. . .

    And yes, what happens next is just what you think happens: you run a mixture of oxygen and fluorine through a 700-degree-heating block. "Oh, no you don't," is the common reaction of most chemists to that proposal, ". . .not unless I'm at least a mile away, two miles if I'm downwind." This, folks, is the bracingly direct route to preparing dioxygen difluoride, often referred to in the literature by its evocative formula of FOOF.
---

Many of these things were done decades ago. The FOOF one an almost a century ago (many of his stories are from the 1930s). Dealing with chemicals has come a long ways... Stories that I heard of chemistry labs in the late 60s would give a modern OSHA inspector a coronary.

Early on he had a series that he didn't do as much with...

https://www.science.org/topic/blog-category/things-im-glad-i...


The overhead of FPGA Vs ASIC is in the order of 10x to 100x, depending if you count logic gates, chip area, routing overhead or power.

This compares for the same technology (chip feature size) But for your chip you might not be able to pay for the smallest nm chip generation. That might make up for some of the gap


I know this is an exotic opinion... but just look at commercial installation. There you will see automation, but no IOT gadgets, no home assistant and no internet thermostats.

The answer is KNX. This system gives local only building automation, from lights, automatic blinds and temperature monitoring. I've had this for over 10 years now and there is still a large group of manufacturers with compatible devices. Closing the blinds on the windows where too much sun is shining in - that should not require a full computer running.

But I know... Unattractive due to upfront installation cost... And no business model to sell disposable gadgets to the consumer, no vendor lock in ... Boooo


Well - the challenge is with the right type of fans.

I like the idea of a pump curve for a garden water pump. If you pump water without any back pressure (not even a hose connected), the pump will give a certain volume per time that is can move. If you connect a hose and pump upwards, you will reach a max pressure / max height at which no water will flow any more. Both cases are useless, but this is what the manufacturer prints on the box. Your sweet spot is in between. If you pay enough, you will get a datasheet with the pump curve in between these two points.

For simple and cheap PC fans, you are at most given the number of air volume without back pressure. I've not come across a cheap fan that gives a defined backpressure of even a curve.

For your application you would need a fan that can push air through a restriction.

I had success with high rpm server fans. They create pressure, consume 20W of power or more and also make a lot of noise. But in this case - this is not a solution


Check out Cybenetics. They publish tested PQ curves even for cheap fans like the Arctic P14.

https://www.cybenetics.com/evaluations/fans/91/


The reason is not bad SW engineering for the simulator, but rather a different goal.

Cycle accurate simulations means you emulated the exact CPU behaviour - easily spending 1000 instructions to compute what happened and maybe even log the results for later inspection. You want to be flexible to try different things, so not over optimize and still compare detailed behaviour.

If you build a performance multi core CPU and emulated on a single regular core, I would not be surprised to be 1000000x the runtime.


I understand this is fast, okay. But at what trade-off?

Sure - muuuuuch less than Jpeg, but how many would you assume for JPEG on average? How low could you go by misusing jpeg?

Typically, you would plot graphs with Bitrate / quality / speed. Maybe even with default jpeg settings and getting just a single data point for your new algorithm.


The press release is rather light on details. They found that it is every 60seconds (duh!) and generators (or such). So what exactly is it? (Make and model?)

Seems like they did not find the exact manufacturer or the exact devices and were not able to change firmware then?


The paper has a little more details:

  "following our communication with the manufacturer, a software update was issued that removed the strict periodicity of the current peaks in one battery block of the investigated UPS system"
https://www.nature.com/articles/s41560-026-02144-0

Given the issue is so widespread (international, affecting pretty much every grid), it's likely that multiple manufacturers use similar approaches.


You see the same thing with e.g. cron jobs, where everyone schedules on xx:00 or xx:30. No communication needed, it's just natural. More senior people recognize this and add randomness to their start times or skew a bit.


I always recommend to use weird numbers for different tasks. That way, you can see "oh my system is under severe load at *:13 (or 17, 23, 42, ...). That must be this cron job"


I do a similar thing with ping payload sizes to be able to fingerprint the traffic: I’ll use prime numbered packet sizes so that they can be detected even when the packet sizes are summed.

Btw, one of those numbers is not like the others (has more prime factors that evenly divide 60).


Good point. 7,11,13... do not repeat every hour.


It's often failing of the tools used, cron (and various other OS equivalents) just doesn't have good facilities to it.

Systemd timers have some, for example RandomizedOffsetSec=30m on 30m job will spread it nicely.

I'd also like if schedulers just had option "just fit it in with other jobs and fire it with this rough interval when there is least amount of other jobs running"


You ought to use RandomizedDelaySec=xxx


Depends. If you want a breadcrumb trail, use primes. If you want no noticeable effect at all, or cannot imagine a traffic bump that you'll want to decipher, use random offsets.


It’s entirely possible the battery controllers are running linux too


Invert the process - That would allow you to build a thickness gauge from just white light and 3 sensors. Or maybe add a few more (there are multislectral sensors from ams osram) for robustness.

Not sure why you would need that though..

Similar effect in devices to measure polarization of light. You introduce white light and crossed polarization filters. Depending on the amount of rotation similar colour patterns emerge. I haven't seen an automatic device yet, but manual evaluation of the colors


> there are multispectral sensors from ams osram []

"Spectrograph" on a chip! Tnx!

[1] sensors (click a "Select Product" button for url-too-long product search) https://ams-osram.com/products/sensor-solutions/ambient-ligh... [2] ~14 channel https://ams-osram.com/products/sensor-solutions/ambient-ligh... https://www.adafruit.com/product/6477 $20 [3] ~18 channel https://ams-osram.com/products/sensor-solutions/ambient-ligh... https://www.sparkfun.com/sparkfun-triad-spectroscopy-sensor-... $70

410-940 nm. There's a UV[ABC] chip in preproduction.


Even deeper - go have a look at the huge catalog of basic parts of jlcpcb. There is no procurement process and delay needed, those seem to be already on the shop floor or maybe even on a feeder of a pick and place machine!

The integration of lcsc is incredible.. let's see how they beat this in practice


Not being familiar with this, I'm curious where the humans are still required in the process of doing a dozen or hundred of each board. I assume the parts still arrive from distributors on rolls inside boxes or on pallets and a human has to scan, open, unpack and load them in some feeder?


"Not being familiar with this, I'm curious where the humans are still required in the process of doing a dozen or hundred of each board."

Some components have large amounts of mass and need to be manually placed because the PNP doesn't have the vertical space for pickup and movement to the pad or do not have feeders which can successfully hold onto the part.

And some times it's just faster to have the human place the part because they're faster than the machine due to physical limitations (like needing to move slowly so as to not drop the component or throw it at the end of travel.) Many board shops will have the PNP places the ICs/Caps/Resistors/diodes and then the placement of connectors (especially zierich) or inductors gets done manually. That is how it worked where I worked. This also provided an opportunity mid-process to do quality checks instead of just letting things go from the PNP straight into the oven.


Pretty much, yes. Is it why JLCPCB has a bunch of "standard parts" which are always already present on the assembly machine, and charges a $3/part loading fee for the stuff which isn't.


A lot of it is moving small objects precisely from point A to point B while integrating expert domain knowledge and general awareness of what’s going on. This stuff can be automated in principle, but with diminishing returns after a point.


We have hundreds of thousands of parts in stock ready to go on The Grid. It's actually way more integrated than JLC.


I'm assuming you mean SKUs. Is there a list? JLC says they have 751,878 SKUs in stock, with 1586 "basic and promotional extended" parts they always have mounted on a PnP https://jlcpcb.com/parts/basic_parts, and there's a queryable mirror of their database on GitHub.

To take a particular example, they claim to have 11065 SKUs of microcontrollers in stock https://jlcpcb.com/parts/2nd/Embedded%20Processors%20&%20Con... of which 6 are "promotional extended": STM8S105K6T6C (1213 in stock), STM32F103C8T6 (231496 in stock), STM32L151C8T6 (287 in stock), ATMEGA328P-AU (40476 in stock), STM32F030C8T6 (73009 in stock), and STM8S003F3P6TR (152762 in stock). 100 units of this last one will cost you US$30.47.

Where do I find the corresponding information on your web site?


If we look at the example of the FFT blur filter, sure O(n) looks easier and independent of the blur size, but you have an overhead in needing FFT and iFFT. It can be faster for some sigmas, but not for all. So you need different variants depending on sigma and a smooth transition between them.

Then you can start approximating - for large sigmas just using every 10th pixel would work. Looks like MS Teams background blur is doing this, you get a blurry background with aliasing - yay!

Once you add SIMD variants and look at CPU caching behaviour, you build versions for different CPUs. Instead of filtering the whole image for one dimension you might finish blocks locally.

You've now got a dozen variants that need testing and maintenance on different architectures.

I'm reminded of my colleague preaching requirements engineering - what was the goal gain?


FFT is O(n log n), not O(n). The better O(n) algorithms are the likes of Deriche, Vliet–Young–Verbeek, or Alvarez–Mazorra.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: