/explore
|
You are here |
krystism.is-programmer.com | ||
| | | | |
twilweb.wordpress.com
Having been bitten by this bug multiple times, i am posting a small program that illustrates Thread Safety issues in using SimpleDateFormatter from java . import java.text.ParseException; import java.text.SimpleDateFormat; import java.time.LocalDateTime; import java.time.ZoneId; import java.time.format.DateTimeFormatter; import java.util.Date; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.Atomic... |
|
| | | | | ||
| | | | |
componenthouse.com
I wanted tocompare how Java, C++ and C perform whenreading a text file line by line and printing the output. I've implemented some possibilities and, at the end, we can compare the speed of each execution. Java 7 version (BufferedReader) import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; public class Main7 { private static final... |
|
| | | | | ||
| | | | |
mariocarrion.com
I'm starting the Mono POSIX shared memory wrapping, decided to begin dllimporting shm_open, however doesn't seems to be easy at all, my current effort is: using System; using System.Runtime.InteropServices; namespace Mono.Posix { public class SharedMemory { public SharedMemory () { } [DllImport ("librt", EntryPoint="shm_open", CharSet=CharSet.Ansi, CallingConvention=CallingConvention.StdCall)] public static extern IntPtr Open ( [MarshalAs (UnmanagedType.LPStr)] string name, int oflag, int mode_t); public... |
|
| | | | | ||
| | | | |
stuartsierra.com
[AI summary] The author benchmarks various ways to run Clojure in 2019, comparing traditional JVM launchers like Leiningen with faster alternatives such as Babashka, Joker, and GraalVM-compiled native binaries against a basic C program. |
|
| | | |||