Some examples related to my tweet rant https://twitter.com/dsymetweets/status/1294276915260522496
In project programming this hit me this week with a bug:
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Threading; | |
using System.Threading.Channels; | |
using System.Threading.Tasks; | |
using Akka; | |
using Akka.Actor; | |
using Akka.Streams; |
static void ConvertLine(string line) | |
{ | |
const string Define = "#define "; | |
if (!line.StartsWith(Define)) | |
return; | |
var begin = Define.Length; | |
var end = begin; |
Some examples related to my tweet rant https://twitter.com/dsymetweets/status/1294276915260522496
In project programming this hit me this week with a bug:
Note: "Forked" from Latency Numbers Every Programmer Should Know
Event | Nanoseconds | Microseconds | Milliseconds | Comparison |
---|---|---|---|---|
L1 cache reference | 0.5 | - | - | - |
Branch mispredict | 5.0 | - | - | - |
L2 cache reference | 7.0 | - | - | 14x L1 cache |
Mutex lock/unlock | 25.0 | - | - | - |
#!/bin/sh | |
set -x | |
if [ 64 = "`getconf LONG_BIT`" ] | |
then | |
libdir='lib64' | |
else | |
libdir='lib' | |
fi |
/*********************************************************************** | |
* Header: | |
* Deque | |
* Summary: | |
* This class contains the notion of a deque: a bucket to hold | |
* data for the user. This is just a starting-point for more advanced | |
* constainers such as the vector, set, stack, queue, deque, and map | |
* which we will build later this semester. | |
* | |
* This will contain the class definition of: |
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Graphics, Games, Programming, and Physics Blogs</title> | |
</head> | |
<body> | |
<outline text="Tech News" title="Tech News"> | |
<outline type="rss" text="Ars Technica" title="Ars Technica" xmlUrl="http://feeds.arstechnica.com/arstechnica/index/" htmlUrl="https://arstechnica.com"/> | |
<outline type="rss" text="Polygon - Full" title="Polygon - Full" xmlUrl="http://www.polygon.com/rss/index.xml" htmlUrl="https://www.polygon.com/"/> | |
<outline type="rss" text="Road to VR" title="Road to VR" xmlUrl="http://www.roadtovr.com/feed" htmlUrl="https://www.roadtovr.com"/> |
Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
php > echo (0 == null ? "Yes" : "No"); | |
Yes | |
php > echo (1 > null ? "Yes" : "No"); | |
Yes | |
php > echo (0 > null ? "Yes" : "No"); | |
No | |
php > echo (-1 > null ? "Yes" : "No"); | |
Yes |