Readit News logoReadit News
alblue commented on Java 18 / JDK 18: General Availability   mail.openjdk.java.net/pip... · Posted by u/todsacerdoti
krzyk · 3 years ago
Question is why would you pick any vendors implementation?

OpenJDK is reference one build from the source which is then taken by vendors and tweaked and built.

alblue · 3 years ago
Oracle’s OpenJDK is the only one that is built without supporting Shenandoah GC.
alblue commented on Running C unit tests with Pytest   p403n1x87.github.io/runni... · Posted by u/p403n1x87
slowking2 · 4 years ago
You can use tempfiles and (on OSX) use the private API of ctypes to dlclose to close the handle. Different call on Windows I think. Something like

  import _ctypes
  import shutil
  import tempfile

  @pytest.fixture
  def libfact():
      tmp = tempfile.NamedTemporaryFile(delete=True)
      shutil.copy2("./fact.so", tmp.name)
      lib = CDLL(tmp.name)
      yield lib
      _ctypes.dlclose(lib.handle)
EDIT: fixed error mentioned in reply.

alblue · 4 years ago
Did you mean to have the `tmp.name` as the library passed into `CDDL`? If not, what’s the purpose of the copy?
alblue commented on How UTF-8 Works   sethmlarson.dev/blog/utf-... · Posted by u/SethMLarson
alblue · 4 years ago
If you’re more into watching a presentation, I recorded “A Brief History of Unicode” last year, And there’s a YouTube recording of it as well as the slides:

https://speakerdeck.com/alblue/a-brief-history-of-unicode-45...

https://youtu.be/NN3g4JbbjTE

alblue commented on Ask HN: Software you hate but can't replace?    · Posted by u/andrecarini
alblue · 4 years ago
iOS auto incorrect. It’s just ducking awful.
alblue commented on A Crash Course in Modern Hardware (2010)   infoq.com/presentations/c... · Posted by u/Tomte
alblue · 4 years ago
You might also like my recent presentation on understanding micro architecture:

https://speakerdeck.com/alblue/understanding-cpu-microarchit...

The presentation was recorded and is on YouTube

https://youtu.be/Pa_l3aHCoGc

alblue commented on Beer Cache Hierarchy   speakerdeck.com/alblue/un... · Posted by u/alblue
alblue · 4 years ago
The link is supposed to be https://speakerdeck.com/alblue/understanding-cpu-microarchit... but for some reason HN has stripped the last parameter off, which means it is more pointing to the beginning of the deck instead of slide 20.
alblue commented on England takes leap into the unknown, lifting Covid rules as cases surge   cnbc.com/2021/07/19/uk-li... · Posted by u/Karsteski
dave4420 · 4 years ago
(July 2021)
alblue · 4 years ago
True, but as it turns out in 2022 we are in exactly the same problem, as our bitterly incompetent Prime Minister is trying to save his own job at the cost of thousands of lives (152k and rising)

https://www.bbc.co.uk/news/uk-60047438

alblue commented on Understanding CPU micro architecture for performance   speakerdeck.com/alblue/un... · Posted by u/alblue
alblue · 4 years ago
I gave this presentation; if you have any questions, I’d be happy to answer them as best I can.

u/alblue

KarmaCake day1569November 5, 2013
About
Java Champion, Eclipse guru, Mac fanatic and occasional fair weather pilot. Blogs occasionally at https://alblue.bandlem.com and writes for InfoQ. Can be found as @alblue on Twitter.
View Original