Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
exDM69
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
60 ms
·
631.
▲
by
exDM69
9y ago
It's not just disrupting YouTube, it's also about creating a sustainable service. Video streaming has enormous costs which you need to get back somehow. Unless your niche audience is willing to pay per minute, it is going to be di
632.
▲
by
exDM69
9y ago
Here's my "simple" makefile for C. It's for building a simple executable and a static library. I don't use Make for more complex projects. It has a bunch of extra features, like coverage and profiling and tags files
633.
▲
by
exDM69
9y ago
Put -MMD to CFLAGS and you can drop the rules to build dependency files. The compiler will then generate the deps files when compiling. Don't use wildcards in clean target. Use $(RM) $(OBJS) $(DEPS) instead.
634.
▲
by
exDM69
9y ago
Either you should not write it, or disable all built-in rules of Make with a flag. Doing both is asking for trouble. Make has lots of built-in rules for lots of languages, C, C++, Fortran, Lex, Yacc, etc.
635.
▲
by
exDM69
9y ago
The corporations in question pay very little taxes in the first place, getting them to pay their fair share would be nice. But I don't think that would change their negative influence on the society.
636.
▲
by
exDM69
9y ago
No, that was just spoofing the PCI VID:PID to the kernel. It did not enable hardware features, just fooled the driver into thinking it was another device. You could do the same with a patched kernel if you don't want to solder.
637.
▲
by
exDM69
9y ago
You can't rely on autovectorization because it's a really brittle optimization that only works at the best of times, and generally only with simple loops. For anything more complex, you need to write SIMD code explicitly. Getting
638.
▲
by
exDM69
9y ago
I've had success using C vector extensions in GCC and Clang [0]. With a simple typedef, you get a portable SIMD vector type and basic arithmetic operators working. It's compatible with platform-specific intrinsics (SSE, NEON, etc)
639.
▲
by
exDM69
9y ago
The business model of consoles is selling hardware at discounted price which is not profitable, then selling games at a premium price. All the game sales give a cut to the console company. This only works if there isn't a lot of piracy
640.
▲
by
exDM69
9y ago
Smartphones stopped being status symbols years ago and the development of phones has stagnated. I could not tell the difference between my old and my current phone apart from battery life. Looking back 10 years doesn't make sense becau
641.
▲
by
exDM69
9y ago
I'm not. I do need a browser and maps. I've been considering moving to a dumb phone, but I do need some basic features.
642.
▲
by
exDM69
9y ago
A phone that will last for 10+ years. Easy change of battery, glass, display, connectors, etc without specialist tools. Doesn't matter if it's a bit bigger than a nice form factor phone, I'm just sick and tired of phones dyin
643.
▲
by
exDM69
9y ago
It's the relentless overcast cloud cover. By sunlight, I mean actual sun visible. I should have said sunshine . There's very little difference in the number of day/night hours, only the little variations where our calendars
644.
▲
by
exDM69
9y ago
Greetings from 60 degrees northern latitude. When I woke up at 9 a.m. today, it was still dark. The sunrise is at 9.24 am and sunset is 3.11 pm. At midday when the sun is at its highest, it's barely above the treeline, 6.5 degrees abov
645.
▲
by
exDM69
9y ago
Scaling requires interpolation, but nearest neighbor sampling was good and fast enough for old school rotozoom effect.
646.
▲
by
exDM69
9y ago
> The sheer operations still require interpolation (just that, you don't need to do 2D interpolation, 1D works out), Back in the day, the "rotozoom" coefficients were chosen at a nearest integer to avoid interpolation. Thi
647.
▲
by
exDM69
9y ago
I think that using a series of skew operations for rotation could still be useful. Bilinear/trilinear texture lookup will always look a bit blurry. Most graphics processing apps are still done using the CPU for most basic operations. A
648.
▲
by
exDM69
9y ago
Was it a licensed Taxi or an Uber? Or some unlicensed driver at the airport? A licensed Taxi is very unlikely to be stopped by the police in Helsinki, and lots of taxi drivers are black or other immigrant background. There is something odd
649.
▲
by
exDM69
9y ago
> ISP are by law required to hand over this information if the users has shared something illegally to "a significant degree". ISP's only hand over data by court order but in the past few years, court orders have granted t
650.
▲
by
exDM69
9y ago
> This doesn't matter much for AAA games but smaller games and most non-game applications don't need and shouldn't want to use Vulkan. Most apps don't want to directly use OpenGL either. It's a terrible API that&
651.
▲
by
exDM69
9y ago
Cyberbullying is another big motivator for banning mobile phones. Perhaps even bigger than the distraction aspect. It's also frustrating for teachers when bullying is happening online, outside of school hours but it still takes place b
652.
▲
by
exDM69
9y ago
> That's not even close to being true. Google Music, Apple Music, Amazon Prime whatever it's called, regular ol' Youtube videos and playlists The others have pretty small consumer base but more importantly, suffer from all
653.
▲
by
exDM69
9y ago
The issue is twofold. Like you say, most people want their easy music and Spotify delivers. The downside of that is the fact that commercially produced music is now targeting Spotify consumption aggressively and using all those fancy analyt
654.
▲
by
exDM69
9y ago
> Instead of cramming as much optimization into undefined behavior as you can, maybe don't allow the undefined behavior in the first place? A compiler that doesn't allow any undefined behavior in C or C++ code will reject most
655.
▲
by
exDM69
9y ago
> then the shareholders can sue the company for not acting in their best interest. I hear this argument often with tax avoidance and I'm not buying it. Has this ever happened to any company out there?
656.
▲
by
exDM69
9y ago
> Would being able to tinker with WASM not help development of compilers? There are tools, even web based ones, that allow you to tinker with WASM, compile C, C++ or Rust code to WASM, print out the WAT representation, turn WAT into WASM
657.
▲
by
exDM69
9y ago
You can do that but why would you want to? The tool you're looking for is wat2wasm, which converts the human readable WAT source to WASM binary, and here [0] is an online tool if you want to tinker with it. Compiler IR's like WA
658.
▲
by
exDM69
9y ago
> I thought modern languages optimized code into SIMD instructions where it could automatically... Kinda-sorta yes, but not really. Auto-vectorization is a very brittle optimization that only works at the best of times and the slightest
659.
▲
by
exDM69
9y ago
This has to be done at a granularity coarse enough that the function call overhead doesn't kill the performance. It has to be entire loops, for example, not just some primitive operation like a dot product (which has at least 3 differe
660.
▲
by
exDM69
9y ago
> Dirt Rally is not for me ... unrealistic hard while not be very realistic Dirt Rally is probably the most realistic rally simulator out there, or at least second after Richard Burns Rally. There's nothing that's comparable
More ›