Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zvrba
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
391.
▲
by
zvrba
10y ago
Programming in C# feels almost like scripting. Blazing-fast compilation with the added benefit of static type system. If only MS took a different path of cross-platform support in the beginning.
392.
▲
by
zvrba
10y ago
You're too optimistic about what it can do, here's a sample output: https://github.com/endrazine/wcc/wiki/wcch This is not what I'd call an "API dump"; all prototypes return void poin
393.
▲
by
zvrba
10y ago
> WCC unlinks machine code into a library, allowing you to interact with the object code and reliably include and call its functions from your own code, as if it were a shared system library rather than a black box. Shared library is as
394.
▲
by
zvrba
10y ago
Waiting for version 5 to try it out because it has clang-based completion.
395.
▲
by
zvrba
10y ago
A colleague uses it on OSX, and it's awful: unstable, crashes, hangs during debugging, the debugger doesn't always update the displayed values, doesn't grok auto declarations, etc. So far, Netbeans is the best free C++ IDE I&
396.
▲
by
zvrba
10y ago
I tried to use it for C++ development on Linux. A project I'm working on uses Qt, and I put QT's include directories into the configuration file as was described in documentation. I was unable to get autocompletion to work with Qt
397.
▲
by
zvrba
10y ago
Oh, we have to read only the first part; it was ~250 A5 pages.
398.
▲
by
zvrba
10y ago
I remember having to read Proust's In Search of Lost Time in school when I was something like 16-17 years old. I remember the book as excruciatingly boring. It's a small book and I used whole two weeks to read it because of that a
399.
▲
by
zvrba
10y ago
>Let's talk about this fabled exchange between Norvig and McCarthy, where McCarthy asks if Python can gracefully manipulate code as data, and Norvig said no, and supposedly a thousand words were said in the ensuing silence. Python h
400.
▲
by
zvrba
10y ago
You know about metalua, right? http://metalua.luaforge.net/
401.
▲
by
zvrba
10y ago
You're funny. gotos are used to emulate cleanup both of which you get in a more structured manner with RAII and exceptions. Rmember Apple's infamous "goto bug" in OpenSSL?
402.
▲
by
zvrba
10y ago
Do you know the relative performance of Power7 and Haswell? The implementation is not wait-free on Power7 because of HW limitation, and has significantly lower throughput than Haswell in the benchmarks.
403.
▲
by
zvrba
10y ago
With exceptions you can use something like scoped exit ( http://www.boost.org/doc/libs/1_61_0/libs/scope_exit/doc/htm... ) for automatic rollback and neat cleanup even in multilevel "transac
404.
▲
by
zvrba
10y ago
>> C++ is hard enough to get right without exceptions > In what manner? I guess he's referring to noexcept/basic/strong exception guarantees. Yes, writing code with strong guarantees is hard, but what makes it hard i
405.
▲
by
zvrba
10y ago
A colleague of mine is working on a C++ Qt application which can encounter failures in many different ways. It is not feasible to restart the application, the user must get a proper error message instead. He didn't use exceptions becau
406.
▲
by
zvrba
10y ago
Not "recent". It's disabled in Haswell where it debuted, but it's OK from Broadwell on. From wikipedia, with citation: The bug was fixed in F-0 steppings of the vPro-enabled Core M-5Y70 Broadwell CPU in November 2014.[22
407.
▲
by
zvrba
10y ago
Hmm.. why bother with a complicated approach now that transactional memory (Intel TSX) is available in HW now? What are the advantages and disadvantages of this approach vs using TSX?
408.
▲
by
zvrba
10y ago
> signals not being queueable real-time signals are queueable.
409.
▲
by
zvrba
10y ago
That's correct.
410.
▲
by
zvrba
10y ago
Actually, structured exception handling (SEH) is the closest equivalent of UNIX synchronous signals (SIGSEGV, etc., those that are caused by the program itself) on Win32. As for asynchronous signals, there's APC (asynchronous procedure
411.
▲
by
zvrba
10y ago
> but I'd argue that signals are beautiful in their simplicity and extremely powerful. There's nothing beautiful when you have a MT program which also has to handle signals for various reasons. Signals are an abomination, not t
412.
▲
by
zvrba
10y ago
You can easily hot-swap classes in a running program as long as their interface doesn't change. I.e., you can tune your algorithm w/o restarting the server. I went wow the first time I edited a program during a debugging session a
413.
▲
New, non-invasive method developed to wipe out cancerous tumors
(sciencedaily.com)
2 points
by
zvrba
10y ago
|
0 comments
414.
▲
by
zvrba
10y ago
> Python isn't commonly used in situations where you'd consider embedding Guile. Which situations would that be?
415.
▲
by
zvrba
10y ago
Is it just me who has the impression that Python "won" as a glue and application extension language?
416.
▲
by
zvrba
10y ago
You're talking about serialization, and I agree that using reflection for that is both an overkill and somewhat hacky (you still have to define the serialization format). Reflection on the other hand is immensely useful if you want to,
417.
▲
by
zvrba
10y ago
We already do have it, except nobody bothered to package it: DWARF4 debugging information. It's nicely structured, well-documented, easily accessed throught libdwarf; the only remaining thing to do is to package it nicely and submit to
418.
▲
by
zvrba
10y ago
I've read/maybe even briefly participated in a discussion about Zed's book a couple years ago, and the technical debate went like this: Z: K&R's strcpy is broken, e.g., you can forget to null-terminate the string. Mi
419.
▲
by
zvrba
10y ago
The reply is that way because the OP didn't seem to acknowledge that using unique_ptr in this case has serious problems. He still insists on using unique_ptr, reasoning boiling down to "you should avoid writing code because you ma
420.
▲
by
zvrba
10y ago
Which part of "recursion", "stack overflow" and "crash" did you not understand? Do you think std::list uses smart pointers?
More ›