Skip to main content

Posts

Showing posts with the label Computing

String to Unicode Converter Online: JavaScript Functions and Sample Code

There are a number of ways to convert a string to its Unicode representation in JavaScript, depending on the desired format of the output. Here are a few approaches, each with explanations and examples:    Method 1: Using charCodeAt() for individual characters This method iterates through each character in the string and uses charCodeAt() to get its Unicode code point. It's suitable when you need the individual code points for each character. function stringToUnicodeCodePoints(str) { let codePoints = []; for (let i = 0; i < str.length; i++) { codePoints.push(str.charCodeAt(i)); } return codePoints; } let myString = "Hello, world!"; let unicodePoints = stringToUnicodeCodePoints(myString); console.log(unicodePoints); // Output: [72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33]   Explanation: The function stringToUnicodeCodePoints takes a string str as input. It initializes an empty array codePoints to store the Unicode code points. ...

New Quantum Computing Approaches: Photonic Chips, Topological Qubits and Trapped Atoms Show Promise

Quantum computing has seen remarkable progress in recent years. After the first demonstrations of “quantum supremacy” or “quantum advantage”, companies are now publishing roadmaps projecting commercial quantum computers with millions of qubits within a decade.  Meanwhile, new quantum computing approaches based on photons, atoms and topology are catching up to the early leaders using superconducting circuits and ion traps. The fundamental building blocks of quantum computers are qubits (quantum bits). Unlike regular bits, qubits can exist in a superposition of 0 and 1, allowing massive parallelism. When entangled together, qubits enable certain computations like simulation of quantum systems to be done exponentially faster. The catch is quantum states are fragile and error-prone. The threshold for useful applications is estimated to be between hundreds of thousands to millions of physical qubits. In 2019, Google announced its 53-qubit Sycamore processor achieved quantum supremacy by...

The Geopolitics of Semiconductors: Analyzing China's 7nm Chip Capabilities, Progress and Challenges

China's largest semiconductor foundry, Semiconductor Manufacturing International Corporation (SMIC), has recently announced a major breakthrough - mass producing 7nm chips without using the advanced extreme ultraviolet (EUV) lithography machines. SMIC's new 7nm Kirin 9000 mobile processor is designed by Huawei's chip company HiSilicon. It is comparable in performance to Qualcomm's Snapdragon 888 processor built on superior 4nm technology, despite the large process gap.  The Kirin 9000 is used in Huawei's high-end smartphones as an alternative to Qualcomm's market-leading chips. This demonstrates impressive engineering and execution by SMIC to be able to produce advanced 7nm chips using older deep ultraviolet (DUV) lithography tools instead of the latest EUV systems. In reality, the numbers like 7nm, 5nm or 3nm that are used to name process nodes no longer actually refer to any physical transistor dimension on the chips. Below 16nm, these names are ...