Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Const-me
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
331.
▲
by
Const-me
2y ago
I mostly work on Windows apps. People still complain when software drops support of Windows 7 released in 2009, or Windows 8 released in 2012. Despite none of them are supported by Microsoft.
332.
▲
by
Const-me
2y ago
I don’t have particularly strong emotional reaction, but IMO the ad is horrible. Destroying functional stuff with a hydraulic press is a waste of planet’s resources. Destroying musical instruments, sculptures and other cultural artifacts is
333.
▲
by
Const-me
2y ago
> Meant no offense None taken. > computervison project in c# Yeah, for CV applications nuget.org is indeed not particularly great. Very few people are using C# for these things, people typically choose something else like Python and O
334.
▲
by
Const-me
2y ago
in .NET, the problem with that impedance mismatch is IMO very minor. I’ve been programming C# for living for more than a decade, and I can’t remember a single case when I needed to block a current thread waiting for a task to complete. Mode
335.
▲
by
Const-me
2y ago
> using a chinese front name is a very interesting detail I have recently read that book https://www.ifitssmartitsvulnerable.com/ The author mentions a malware which at the first glance looked to originate from China (e.
336.
▲
by
Const-me
2y ago
> all the rest seem to be enterprise-milking, poor wrappers or sdk for some cloud service Here’s 8 third-party libraries I have published on nuget in the last ~7 years: https://www.nuget.org/profiles/ConstMe Only on
337.
▲
by
Const-me
2y ago
> a solution to this problem A solution is obvious – use await instead. Modern versions of the language even support async main function.
338.
▲
by
Const-me
2y ago
> I, and I'm pretty sure most other gamers, would rather a fully-finished "perfect" game that took twice as long I have recently completed Cyberpunk Phantom Liberty. The game crashed 4-5 times during 100-150 hours of gamep
339.
▲
by
Const-me
2y ago
Cursor placement is hard to do portably because every OS has incompatible ways for that. You gonna need SetConsoleCursorPosition on Windows, and multiple versions of these terminal escape codes on Linux. printf( "\rsomething "
340.
▲
by
Const-me
2y ago
Same applies to C#. The standard library has pretty good APIs for dealing with file names and paths. In my experience, a program written in modern .NET 5+ and tested on Windows has a high probability to run flawlessly on Linux, without even
341.
▲
by
Const-me
2y ago
> it's up to the application or C library to tokenize it Technically yes, but practically the only correct way to tokenize these command line strings is CommandLineToArgvW WinAPI implemented by Shell32.dll.
342.
▲
by
Const-me
2y ago
> CR is a waste for computing... it literally does nothing beneficial CR enables to update a line of text. Print some text without newline at the end, print CR, print another line, and the old text will be overwritten with the new one. S
343.
▲
by
Const-me
2y ago
On Android, I think you can ignore the app store. I have never agreed to the ToS so none of the google’s services work on my phone, and I never used google account on the device. The play store is unavailable, yet I can install programs pac
344.
▲
by
Const-me
2y ago
I agree with most of that article, but the answer to the question in the title is “it depends on the practices”. Some of software engineering best practices are universally applicable, and they really matter. Using version control for sourc
345.
▲
by
Const-me
2y ago
> almost all workloads aren't anywhere near saturating the AVX instruction max bandwidth on a CPU since Haswell That’s true, but GPUs aren’t only good at FLOPs, the memory bandwidth in them is also an order of magnitude faster than
346.
▲
by
Const-me
3y ago
Try unchecking that checkbox: https://www.howtogeek.com/742678/how-to-turn-off-animations-... I’ve recently installed Win11 on my new computer, and immediately discovered Microsoft decided to implement keyboard lag in
347.
▲
by
Const-me
3y ago
> Actual peak power for the AMD chip will be at least 2x higher or 18-60w which isn’t that different Agree on the wattage, but it’s still 2x difference. Intel says maximum turbo power for that chip is 115W, here’s the specs https:/
348.
▲
by
Const-me
3y ago
Intel Core Ultra 7 155H can be configured to 20-65W TDP. AMD Ryzen Z1 Extreme can be configured to 9-30W. Similar performance level at twice the power consumption doesn’t look particularly impressive. Which is sad because things tend to sta
349.
▲
by
Const-me
3y ago
> If there is a future with this idea, its gotta be just shipping the LLM with game right? That might be a nice application for this library of mine: https://github.com/Const-me/Cgml/ That’s an open source Mist
350.
▲
by
Const-me
3y ago
> If at some point we see a need to create more incentives for people to reproduce, that sounds fime to me Population is declining in about half of the world countries, see that table: https://en.wikipedia.org/wiki/L
351.
▲
by
Const-me
3y ago
I think the most important lesson, it’s borderline impossible to design any good system without clear use cases. Ukraine has these use cases, also high motivation to tackle them. Ukrainians are controlling battlefield with commodity compute
352.
▲
by
Const-me
3y ago
Yeah, it’s clear why you can’t have a single optimized C version. However, can’t you have 5 different non-portable optimized C versions, just like you do with the assembly code? SIMD intrinsics are generally portable across compilers and OS
353.
▲
by
Const-me
3y ago
You don’t need assembly to leverage AVX2 or AVX512 because on mainstream platforms, all modern compilers support SIMD intrinsics. Based on the performance numbers, whoever was writing that test neglected to implement manual vectorization fo
354.
▲
by
Const-me
3y ago
> writing video codecs for years These people aren’t the only ones writing performance-critical SIMD code. I’ve been doing that for more than a decade now, even wrote articles on the subject like http://const.me/articles&
355.
▲
by
Const-me
3y ago
> Realy? No, not really. My point is, in modern compilers SSE and AVX intrinsics are usually pretty good, and assembly is not needed anymore even for very performance-sensitive use cases like video codecs or numerical HPC algorithms. I t
356.
▲
by
Const-me
3y ago
> show us your results Not GP but here’s an example where intrinsics outperformed assembly by an order of magnitude: https://news.ycombinator.com/item?id=36624240 They were AVX2 SIMD intrinsics versus scalar assembly, bu
357.
▲
by
Const-me
3y ago
Note assembly language is OS-specific because different OSes have different ABI. Unfortunately, this is very relevant to SIMD https://learn.microsoft.com/en-us/cpp/build/x64-software-con... And causes real-li
358.
▲
by
Const-me
3y ago
> 'delete ptr' in a destructor, not 'delete this' in a Release function That approach requires client and server to be written in the same language, use the same memory allocator, and same compiler. For COM objects, o
359.
▲
by
Const-me
3y ago
These glyphs are indeed defined in terms of vector paths (quadratic or cubic Bezier splines depending on the font format), but it’s rarely a good idea to directly render these shapes to display text. Performance optimizations mentioned in t
360.
▲
by
Const-me
3y ago
Sadly, the C++ standard bodies are actually breaking old code in new versions of the language. For example, C++/11 introduced UTF8 string literals. Great feature which does what you’d expect – declare a string literal in source code, g
More ›