Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
0x09
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
0x09
3y ago
It's partly an artifact of BCPL where the only type was one representing the machine word. So with a word-sized type you don't get portability in the range of values the type can represent, but can portably know that you won'
2.
▲
by
0x09
3y ago
>Can be macro'd at the function definition, but it's ugly. I wonder if typeof in c23 has changed this at all. Previously there was no sense in defining an anonymous struct as a function's return type. You could do it, but
3.
▲
by
0x09
4y ago
I'm the author of the extension that the vtab and define function in that module were adapted from. It allows you to create something like a parameterized view, but the way it works is fairly simple: a prepared statement is created fro
4.
▲
by
0x09
4y ago
Doxygen has the ability to generate these with its CALL_GRAPH/CALLER_GRAPH config, at least from each function individually. It can look quite funny when the depth isn't limited: https://i.imgur.com/3LMV71N.png
5.
▲
by
0x09
5y ago
Something of an informal reverse engineering of SimCity 3000 existed in sc3000.com's Knowledge Neighborhood. The original site is only partially available via the wayback machine now, though fortunately the articles have been preserved
6.
▲
by
0x09
6y ago
This and Annex J.2 Undefined Behavior and Annex L.3 Analyzability Requirements both also specifically include: "The value of a pointer that refers to space deallocated by a call to the free or realloc function is used (7.22.3)."
7.
▲
by
0x09
6y ago
The article doesn't touch on this, but in C pointer types are also the only kind that can be invalidated without any apparent change to their value: void *x = malloc(...); free(x); if(x); // undefined behavior Note
8.
▲
by
0x09
6y ago
Though scan-build is usually the simpler option, clang itself does have an --analyze flag which writes analysis results in various formats, including the same html reports that scan-build would generate. But to see this on standard out
9.
▲
by
0x09
6y ago
Not about the language exactly, so maybe not fair game, but: how did you all find yourselves joining ISO? And maybe more generally, what's the path for someone like a regular old software engineer to come to participate in the standard
10.
▲
by
0x09
7y ago
Apple did submit a proposal based on the then-new blocks extension in 2010: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1451.pdf There was an analysis of this and the C++11 lambda specification
11.
▲
Ask HN: Resources for First Time Acquisitions
2 points
by
0x09
7y ago
|
0 comments
12.
▲
by
0x09
8y ago
I like using pointer-to-array types for this purpose as (like an array in struct) the array's length is encoded in the type, and thus likewise allows the compiler to warn if an incompatible array is provided. e.g. void f(char (*n)
13.
▲
by
0x09
8y ago
The linked discussion on the memory model is particularly interesting to me as it covers a number of issues and ambiguities with the current specification for strict aliasing and what kind of accesses should/shouldn't be allowed,
14.
▲
by
0x09
8y ago
This is known as scalable coding and has been included as an extension or profile in at least every ISO and ITU standard since MPEG-2, see for example https://en.wikipedia.org/wiki/Scalable_Video_Coding (this article s
15.
▲
by
0x09
9y ago
Putting the logic into a more flexible configure script that generates definitions for your Makefile and imitates the autotools build process without actually using autotools is a good/obvious compromise. Even some large projects like
16.
▲
by
0x09
9y ago
The problem comes in as soon as you need conditionals, which is likely when attempting to build something portably. There may be some gymnastics that can be done to write around the lack of their presence in standard make, but otherwise you
17.
▲
by
0x09
9y ago
Apparently unrelated to Flang the 2013 LLVM GSOC project to implement a Fortran frontend. https://github.com/hyp/flang The name re-use was a bit confusing.
18.
▲
by
0x09
9y ago
The code copies the origin string up to and including the null terminator, which must exist as strlen was used to obtain the size.
19.
▲
by
0x09
9y ago
> You can't just have an mp4 (well, x264) file because that's patent-troubled. This was true of gif until the mid 2000s, well after it became popular.
20.
▲
by
0x09
9y ago
Looking at the script, it doesn't write any history itself, it just loads whatever is in the existing .bash_history into its db when `hist import` is invoked (when a new shell is started if you add it to your .profile like the readme r
21.
▲
by
0x09
10y ago
The BSDs, Windows, OS X, and Mac OS classic and their corresponding filesystems all supported this for decades. Linux is the only major holdout, because according to Linus, "it's all totally useless and people can't even agre
22.
▲
by
0x09
10y ago
I've done a similar thing with https://github.com/0x09/watch It's extremely simple but it allows me to do things like plot a color coded calendar of app usage, which can provide very revealing info about thin
23.
▲
by
0x09
10y ago
I've gotten myself into a stupid situation where I have purchased something like 4 adapters that don't accomplish what I thought they would when I bought them. USB-C to DisplayPort -> DisplayPort to HDMI -> Monitor - doesn&#
24.
▲
by
0x09
10y ago
I published a set of utilities that I developed for playing and to help myself learn about frequency analysis here, you might find them interesting: https://github.com/0x09/dspfun
25.
▲
by
0x09
10y ago
It is an open standard. Anyone can purchase and implement it, and it was developed by ISO. The technologies are not royalty free in the US. Don't conflate the two. * Edit: I emphasize this mainly because the terms have a specific meani
26.
▲
by
0x09
10y ago
> I'm certain you will never see ads in MacOS as part of the OS "features." How certain? http://appft.uspto.gov/netacgi/nph-Parser?Sect1=PTO1&Sect2=H...
27.
▲
by
0x09
10y ago
Remember that a brickwall band pass filter (low, high, or anywhere else) is equivalent to convolution with this https://www.dsprelated.com/josimages_new/mdft/img1768.png in the spatial domain. Any time quantizatio
28.
▲
by
0x09
10y ago
This, the standard document itself (it's not very long, and drafts are freely available), and the C tag on stackoverflow (often contains comprehensive answers by well informed people) are my recommended resources. http://por
29.
▲
by
0x09
10y ago
It's cheaper not to if you take less than 14 rides a week, which is not unusual at all in places like the East Village.
30.
▲
by
0x09
11y ago
Late reply but you can actually do this with the library as is. It's not designed for it so you'll have to use fftw yourself and call some borderline internal stuff, but it ought to work the same. float* samples = ... /
More ›