Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wallstprog
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
wallstprog
5y ago
Another fan of Beyond Compare here, but I want to point out something everyone else has missed so far, which is that BC is great for comparing all sorts of files, not just code. For example, I use its "Table Compare" feature to co
32.
▲
by
wallstprog
5y ago
Back in the late 90's, one of the largest financial services firms in the US was still running its order-routing network on PDP-11s. One reason was that the code relied on the physical layout of the RK05 disks. They had people around
33.
▲
by
wallstprog
5y ago
You are paying for gmail, in a coin that Google accepts: your personal information. It's not "free" ...
34.
▲
by
wallstprog
5y ago
> Which reminds me: what is a good tool for analyzing / viewing a C++ programs call tree? As already mentioned, perf can capture call stacks, but those are statistical samples, so not necessarily complete. callgrind ( https:/&#
35.
▲
by
wallstprog
5y ago
Similar but different -- in the 70's Daryl Hall recorded a pretty "alt" album, which RCA refused to release because they were afraid it would freak out Hall & Oates fans ( https://en.wikipedia.org/wiki/
36.
▲
by
wallstprog
5y ago
True story -- someone (not me) decided to initialize a C++ virtual class by defining a default ctor which does a "memset(this, 0, sizeof(*this))", then uses placement new to re-create the vptr. Newer compilers complained more and
37.
▲
by
wallstprog
5y ago
Depends -- there are so-called "body shops" that only care about billable hours, and these are the worst. But in general as a consultant your time is the product that the co. is selling. Never forget that.
38.
▲
by
wallstprog
6y ago
Thanks -- good to know about clang, although it does appear that the most recent version supported is clang 7 (Ubuntu defaults to 10, and supports 11). That's to be expected with RH/Centos, which again is one reason why e.g., Ubu
39.
▲
by
wallstprog
6y ago
A couple of things: - RH devtoolset doesn't support clang, only gcc -The compilers installed with the devtoolset packages on RH/CentOS 6 & 7 do not support the _GLIBCXX_USE_CXX11_ABI flag -- the old ABI (COW strings) is the on
40.
▲
Moving from CentOS to Ubuntu
(btorpey.github.io)
3 points
by
wallstprog
6y ago
|
5 comments
41.
▲
by
wallstprog
6y ago
> To my knowledge, neither Infer or Clang has ever been compared to other static analysis tools in an article similar to this. I beg to differ: http://btorpey.github.io/blog/categories/static-analysis/
42.
▲
by
wallstprog
6y ago
The one thing I really miss about Windows is the Visual Studio debugger -- it was frickin' awesome even back w/VS 2005 and I have to believe it's gotten better. On Linux I use ddd, and while it's definitely quirky (in th
43.
▲
by
wallstprog
6y ago
For instance, see this recent post about using TLA+ to find a concurrency bug in glibc's implementation of pthreads: https://probablydance.com/2020/10/31/using-tla-in-the-real-w...
44.
▲
by
wallstprog
6y ago
Interesting that the Java VM installs signal handlers for SEGV, rather than checking for null pointers: https://www.ateam-oracle.com/why-am-i-seeing-sigsegv-when-i-...
45.
▲
by
wallstprog
6y ago
FWIW this technique is described in "Unix Network Programming" by W. Richard Stevens ( http://www.kohala.com/start/unp.html ) in section 6.1: "Passing File Descriptors"
46.
▲
by
wallstprog
6y ago
Interestingly, Eno composed the startup sound for Win95: http://www.synthtopia.com/content/2015/08/24/the-coolest-fea... Even more interesting is that Robert Fripp (a frequent Eno collaborator) composed
47.
▲
by
wallstprog
6y ago
What happened to "forked from"?
48.
▲
by
wallstprog
6y ago
It's not that simple -- as Churchill said about democracy: "It's the worst form of government ever invented -- except for all the other ones". I switched to Mac almost 10 years ago, and I'm basically pretty happy wi
49.
▲
by
wallstprog
6y ago
We have the same issue, except in both directions -- we use open-source projects as part of our software, and have also open-sourced a component that we developed, so we need to be able to go both ways. The following seems to be working r
50.
▲
by
wallstprog
6y ago
For now, I'll just address the one point -- obsolete? NOT! We've been working with ZeroMQ a lot over the past couple of years, and have gotten to know some of the maintainers -- we've been very favorably impressed by their ab
51.
▲
by
wallstprog
6y ago
I much preferred the original title of the post -- why change it?
52.
▲
by
wallstprog
6y ago
+inf to BC: http://www.scootersoftware.com/
53.
▲
by
wallstprog
7y ago
Pretty low-tech, but what we do is to create an md5 hash of the whole stack trace as a single string. Before hashing, we munge some bits to help make similar stack traces hash to the same value: - remove file/line# - omit the bottom (
54.
▲
by
wallstprog
7y ago
From "Zen and the Art of Motorcyle Maintenance" ( https://archive.org/details/ZenAndTheArtOfMotorcycleRepair-R... ) > "But they’re from the factory," John says. > "I’m from the factory too,
55.
▲
by
wallstprog
7y ago
Another very interesting take on this from Andrei Alexandrescu: https://youtu.be/WjTrfoiB0MQ https://github.com/CppCon/CppCon2015/blob/master/Presentatio...
56.
▲
by
wallstprog
7y ago
"There are no stupid questions, only stupid people." Sorry -- couldn't resist ;-)
57.
▲
by
wallstprog
7y ago
I wrote a few posts on this topic that may be helpful: http://btorpey.github.io/blog/categories/static-analysis/
58.
▲
by
wallstprog
7y ago
If Jenkins works for you, great. It does seem to support both clang and cppcheck, although not PVS-Studio (which is one of the better tools out there in my experience). Personally, I'm happier with plain old text files that can be man
59.
▲
by
wallstprog
7y ago
I think one of the unstated problems with static analysis is just keeping track of the results. I know that when I started working with these tools, it was a huge PITA just dealing with the various output files. That's why I created t
60.
▲
by
wallstprog
7y ago
Just a quick reminder -- if you want people to actually read your stuff, medium is the wrong place. There is no way I'm signing up for whatever it is they want you to sign up for.
More ›