HackerTrans
TopNewTrendsCommentsPastAskShowJobs

opticfluorine

no profile record

comments

opticfluorine
·30 days ago·discuss
Wow, what a portfolio! This one in particular caught my eye: https://adazshen.com/Viral-Placenta

I have little artistic ability myself, but I am continuously in awe of what artists create. It makes me hope for the optimistic outlook of AI where UBI frees people to pursue creative and intellectual pursuits, rather than constantly trying to push a stock price uphill.
opticfluorine
·7 months ago·discuss
I wonder if you could generate it via a Roslyn incremental source generator instead of as a file to bypass this limit. I'm guessing not, but it does sound like fun.
opticfluorine
·9 months ago·discuss
Minor nit, Joule-Thomson is not just the ideal gas law - it is a separate thermodynamic effect entirely. Case in point, for certain gases the change in temperature due to Joule-Thomson has the opposite sign that you would predict from the ideal gas law alone.

This has interesting applications. For example, you can exploit this with dilute metal vapor in an expanding helium gas to cool the metal vapor to very low temperature - the Joule-Thomson expansion of helium increases the helium's temperature by converting the energy of the intermolecular forces into heat. This draws out energy from the metal vapor. If done in a vacuum chamber, then in the region before the shockwave formed by the helium, the supercooled metal atoms will form small van der Waals clusters that can be spectroscopically probed in the jet. This was an interesting area of study back in the 80s that advanced our understanding of van der Waals forces.
opticfluorine
·10 months ago·discuss
I have occasionally, just for fun, written benchmarks for some algorithm in C++ and an equivalent C# implementation, them tried to bring the managed performance in line with native using the methods you mention and others. I'm always surprised by how often I can match the performance of the unmanaged code (even when I'm trying to optimize my C++ to the limit) while still ending up with readable and maintainable C#.
opticfluorine
·7 years ago·discuss
The issue is that strncpy doesn't guarantee that the destination string is null-terminated after a copy, particularly in the case where n is shorter than the original string, so you could run into overflows if you then ran strlen() or similar against it.

Here's a good explanation from Raymond Chen: https://devblogs.microsoft.com/oldnewthing/?p=36773
opticfluorine
·7 years ago·discuss
Yes, and interestingly, because even when used correctly they "complicate audits". This is an interesting use of preprocessor macros, I'm strongly debating introducing something like this at work.