Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Ace17
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
72 ms
·
241.
▲
by
Ace17
9y ago
Decompiled programs are full of approximations and guesses, and generally can't be recompiled without manual tweaking of the source code. For example, "mov eax, 0x0040137C" Is is this an address or a numeric constant? Should
242.
▲
by
Ace17
9y ago
> > The Command pattern, in its most basic form, could also be considered as implementing 1st class functions by wrapping them into objects. > BTW, that's not really true; first class functions are not a replacement for comman
243.
▲
by
Ace17
9y ago
The Visitor pattern mostly addresses the shortcomings of the type system (i.e no "match" statement). The Command pattern, in its most basic form, could also be considered as implementing 1st class functions by wrapping them into o
244.
▲
by
Ace17
9y ago
> then why deviate from something like Steam? Maybe, portability (don't have to build three binaries) and security (VM sandboxing)? However, the performance hit (I'm using emscripten/asmjs) isn't negligible (and the b
245.
▲
by
Ace17
9y ago
Not saying that creating military killer robots counts as "trying to do good", however ... if we're talking about a terminator-like scenario, let's not forget the robots from the movie initially are human-designed milita
246.
▲
by
Ace17
9y ago
Yeah, I was referring to polymorphism as we have in OO, where old code can call new code. I didn't even know "closed polymorphism" was a thing (is it equivalent to algebraic types?).
247.
▲
by
Ace17
9y ago
polymorphism?
248.
▲
by
Ace17
9y ago
Garbage collection, RAII, dynamic typing, template metaprogramming, macros, type inference, exceptions ... are not "syntactic" features of programming languages. Those are semantic features, that happen to have a syntax. Reducing
249.
▲
by
Ace17
9y ago
Code formatting mostly is a solved issue. Configure a tool like clang-format/uncrustify, and make it run automatically by your test scripts. We've been doing this at work for years, and I'm still amazed at the results: nobody
250.
▲
by
Ace17
9y ago
> since they behave poorly across library boundaries on many platforms thanks to the lack of properly standardized ABI, The same also holds for, say, std::string. You can't pass them across library boundaries without a unified ABI.
251.
▲
by
Ace17
9y ago
I have always though it was good practise (because it reduces the verbosity) ; Could you please prove me wrong? :-)
252.
▲
by
Ace17
9y ago
> When naming things, are you charged by the character? Do you get a bonus for acronyms? Funny you're saying this, because it took me a while to understand what you meant by "DL" (which is required to understand what code
253.
▲
by
Ace17
9y ago
> First step is to recognize that IP is a propaganda term, designed to confuse issues and appeal to an entirely different set of laws and moral frameworks. Exactly. BTW, equating non-profit copyright infringement with attacking ships als
254.
▲
by
Ace17
9y ago
> most devs believe they don't have time to refactor Try asking them: "if you had the time to do it 'well', what would you have done differently?" (By the way, the same works for testing: "if you had the tim
255.
▲
by
Ace17
9y ago
> If I suck at writing code there's no reason to believe I wouldn't suck at writing tests to check that code. Actually, there is ; providing the difficulty is algorithmic. Take "sort", for example. // test c
256.
▲
by
Ace17
9y ago
Yes, but reference counting allows for deterministic destruction. This is a game changer to leverage the power of destructors.
257.
▲
by
Ace17
9y ago
Extract from the pages you linked: "However, note that calculating object reachability is computationally expensive. Defaults to false." "it is off by default and generally advised against on performance reasons." > &
258.
▲
by
Ace17
9y ago
> Except that languages which try to provide facilities for this principle have bolted it on in the wrong way and we as an industry have come to accept some other feature ("public/final/private" keyword languages) to
259.
▲
by
Ace17
9y ago
> This looks like github configuration This also doesn't work on gitlab. $ git clone -q --depth=10 https://gitlab.com/fdroid/fdroidclient.git $ cd fdroidclient $ git fetch --depth=1 origin 5d2c2bc6e636e40eee80c
260.
▲
by
Ace17
9y ago
$ git init Initialized empty Git repository in /tmp/phobos/.git/ $ git remote add origin https://github.com/dlang/phobos.git $ git fetch --depth=1 origin 6e5cdacfa6ac018c6ef42aa9679893676f293f21 er
261.
▲
by
Ace17
9y ago
I don't want HEAD, I want a specific commit. How do I specify this from a "git clone" command line, as you're suggesting?
262.
▲
by
Ace17
9y ago
Long time user of both bazaar and git here. > To be fair git is junk; git's UI could certainly benefit from some simplification ; this doesn't make git junk, especially considering that it's incredibly fast and reliable. &
263.
▲
by
Ace17
9y ago
Exactly. If you abstract things but don't give meaningful enough names, you loose everything (because your callers are still forced to lookup the definitions of your abstractions, and now this definition can be hard to search for).
264.
▲
by
Ace17
9y ago
https://vimeo.com/9270320 (Greg Wilson - What We Actually Know About Software Development, and Why We Believe It’s True). It seems we have scientific data showing that the number of code lines one can review per day doesn&#
265.
▲
by
Ace17
9y ago
Knowing that LLVM has a wasm backend ; could someone explain what role binaryen plays here?
266.
▲
by
Ace17
9y ago
A good tutorial: https://medium.com/@mbebenita/lets-write-pong-in-webassembly...
267.
▲
by
Ace17
9y ago
> Consider how well documented projects under the GNU banner are. For end-user documentation I would agree ; does it still stands for developer documentation?
268.
▲
by
Ace17
9y ago
Has anyone tried to build a code version of Wikipedia?
269.
▲
Why Optimistic Merging Works Better
(hintjens.com)
2 points
by
Ace17
9y ago
|
0 comments
270.
▲
by
Ace17
9y ago
Except for the use of OS-provided General MIDI soundbank (Windows has gm.dls), which seems to be common practice now.
More ›