Hacker News new | past | comments | ask | show | jobs | submit | ckocagil's comments login

For any consumer use to play back audio I can't image a scenario where TL071 wouldn't be enough. And you'd rarely even need an op-amp when integrated solutions are available.

Potential replacements for ultra low THD would be: OPA1612, OPA1656 and OPA1642 with bipolar, cmos and jfet inputs respectively.

There's a massive (old) list of them in Horowitz & Hill TAOE 3e Table 8.3a p. 522. I'm sure you can just go to Digikey or Octopart and do a parameter search for high-voltage, low-noise, BJT-input op-amps too. If one wanted to "use a Ferrari to go the grocery store", they could always use a $20 AD797 or LT1115 for audio applications. :o)

I picked those particular chips is due to their extremely good performance at a reasonable cost. Check their THD against AD797 and LT1115! :)

Fun fact: a rectangular sheet of resistor with a specific thickness and terminals at both sides has a resistance unit of: ohms per square. Not square meters, just square!


The problem with the common CO2 sensor modules is they don't have DC accuracy. Meaning they rely on the device being present in place where it regularly (e.g at least once a week) gets exposed to fresh air, which the module sets as its baseline. This works because fresh air has roughly the same CO2 concentration everywhere.

Hopefully this method doesn't have the same restriction.


Performance. JS would need to run 60 times a second without hiccups. But JS is single-threaded, therefore any time something clogs your main thread you'll skip a frame. Plus, as incredible as modern JS engines are they're still not as efficient as the native code, which leads to extra CPU usage and that spells trouble for battery life.


The way animations are done in react native for instance, is that you use JS to define the animation and send it to the native code which actually executes it.

JS should just do the same in the browser instead of relying on an arcane language not designed for this


JS animation libraries let you declaratively define and hook into CSS animations.

"Arcane language" not only is CSS one of the core languages of the web, but also if you find this arcane I wonder what you think of the "native" code that react native is generating for the animations.

CSS as an animation engine is completely acceptable, and it's limitations (like the one in TFA) are slowly being pushed back.


  >"Arcane language" 
  >"native" code that react native is generating for the animations.
  >CSS as an animation engine is completely acceptable, and it's limitation
  >TFA
No way that pun is intended, but CSS is kinda a Tunable/Timed Finite Automaton; but being of a lower class of technically-capable expression than Javacscript, which is of a higher set of class of automata.


Good news! You can with the Web Animations API.


Just recently I had to code a little but complex animation and I ended up using the web animations API. It's nice, it was a lot less code than the css counterpart.

But, if I* have to write this same animation in two years and @property is widely available, I'll reach up for that first.

*To be honest, it will be 100% an LLM that writes it for me.


Which are CSS animations underneath


Yes, but you define them with Javascript rather than in CSS which is a key difference since the syntax is more intuitive for some (myself included)


So since the original comment was questioning the necessity of animations in CSS, and JS is essentially using CSS animations for many things, I'd say the answer is yes. It's also a great way for UI designers to use subtle movement to hint at actions/status/next steps/etc without having to execute any JavaScript. When you've got a purely visual task, I'd say involving a general purpose programming tool is the unnecessary part— like using sed or the like vs opening up a repl in Python or whatever.


No - CSS and JavaScript are two ways of defining the same thing, an animation. Safari runs its accelerated animations with CoreAnimation - is CoreAnimation a CSS animation?


Shhh, don't tell him that.


Whether a language is arcane or not depends on the levels of comfort one is familiar with the language, or how approximately familiar someone is with similar languages.


It explicitly is designed for this, what are you talking about


Also just moving problems to the graphics card. The common rotate, transform, and so on, are all classic graphics hardware tasks.


You still need the CPU to tell the GPU what to do


Right, so you have simple statically defined optimized routines written in c/c++ calling the GPU, like any high performance graphics engine.


Valgrind didn't catch it?


It was before valgrind. Besides, valgrind isn't always available, it requires all code paths to be tested, and it can be really slow making it impractical for some code.

Default initialization, on the other hand, gives 100% coverage. Experience with it in D is a satisfying success.


May have been impractical to run valgrind eg embedded. A decent compiler should catch this anyway? -Wall?


Testing all code paths means all code paths must be available to the compiler. This is not always practical.


"stackoverflow please help me how do i fix memory fragmentation"


Didn't Samuel L. Jackson hold board members hostage at his school, and among the members was MLK Sr.? And he wasn't even part of a radical movement like Fred Hampton and the Black Panthers.


Then what's the course of action when every store in the city requires your written authorization to shop from there?


As I mentioned above: outlaw the practice of preventing people from shopping if they haven't opted into your dystopian facial recognition software.

It will essentially kill it immediately but still allow research.


Using the clockwise spiral rule.

https://c-faq.com/decl/spiral.anderson.html


The spiral rule is not real and fails on even basic examples like

    char * foo[10][5];
The OP article shows you how to actually read the declarations, not a fake trick that will lead you astray.


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

Search: