151 karma · joined Jan 27, 2025 (1y ago) · 93 submissions
comment 1d ago · link · parent
The idea of HLS is that you get decoupled from the hardware and can concentrate on high-level types and the algorithm design instead. A good HLS compiler will be able to make a near optimal mapping of that for pipelines, for example using SAT solving.
In DSP algorithms things like rounding and saturation is absolutely terrible to write in HDLs if you want to do it with sufficient clock speeds. With untimed HLS it's a breeze.
In short it's a tradeoff, the right tool for the right job. If you need accurate timing or absolutely want a specific structure or to take advantage of FPGA primitives, sure an HDL is probably the right choice. If you need it quickly, with high performance and free of bugs go with your favorite (and preferably homemade :)) HLS
comment 3w ago · link · parent
A rough benchmark of a version of that against the original shows it to be close to twice as fast for unpredictable input with GCC (4.5 ns vs 2.72 ns) on my old machine. With predictable input where x values often are the same the original version is quicker
int sparse_8_jump(int x, int val) {
unsigned int idx = (unsigned int)x >> 3;
if (idx > 5)
return 0;
if (x & 7)
return 0;
switch (idx) {
case 0:
return f0(val);
case 1:
return f1(val);
case 2:
return f2(val);
case 3:
return f3(val);
case 5:
return f4(val);
default:
return 0;
}
}comment 3w ago · link · parent
It could not because that would ensure that 7 values for each case would be handled by function calls instead of the default case - 0/8 is 0, but 3/8 is also 0
comment 1mo ago · link · parent
I did it accidentally during my last move and it was a pain in the behind
And it expires after a year by default so it feels rather pointless
comment 1mo ago · link · parent
But I don't drink my go-to Zinfandel anymore as it has a big ass flag printed on the box. It's embarrassing feeling the cashier's judgemental gaze. They know I'm a drunk of course but I don't want them thinking I support the US
Tell the wine makers to stop putting that flag on there and maybe exports may pick up again
comment 2mo ago · link · parent
In my view the worst that can happen for China is that Trump gets limited by anything. He's hurting US relations more than he's hurting China short or long-term. Relations take longer to build than trade
"Don't interrupt your opponent when they're making a mistake"
comment 5mo ago · link · parent
But I think they should. Not only for the practical reason, but because it leads to better software in my opinion
Limitations foster creativity. Abundance kills innovation.
In my company: - All computers are refurbished and at least 10 years old. - Cloud deployments use Hetzner or self hosted machines. - All hardware in general is a bit dodgy. Our main CI/CD setup is on a very unreliable network with varying availability and bandwidth
It can be annoying once in a while but it reflects our customers reality. And it catches a lot of usability and performance bugs that we wouldn't otherwise catch
I can only recommend it
comment 5mo ago · link · parent
Interesting for my 8GB VRAM system, but the system RAM requirement seems to balloon quickly, and it starts misspelling words. Also token/s drops off quickly it seems
comment 5mo ago · link · parent
An AI being used for offensive purposes would be so easy to counter due to Brandolini's Law. A much simpler AI could probably easily create dumb honey pot systems that looked like real systems with holes in them to lead more advanced and expensive systems on a wild goose chase.
Suddenly an AI creating security vulnerabilities is a core part of a future cyber defence strategy. Surely someone must be doing that already
comment 7mo ago · link · parent
All without congressional approval. And apparently without the US population knowing about it.
Why risk using US tech?
It costs more, and the people running it likely may not be my friends
comment 7mo ago · link · parent
For my company it's about the "pulling the plug" usecase. We create a SaaS product for semi-critical infrastructure - we don't need 99% uptime but more than a few hours and it's problematic.
Sure, most cloud/VPS providers have sites in the US as well, but worst case only those places would be affected if the US decided to do a Special Military Operation on Greenland for example.
comment 7mo ago · link · parent
/S trying to highlight how stupid it sounds when you try to retrofit sense into this conflict
comment 7mo ago · link · parent
If those numbers are at all right it puts it in useful territory. Very much so for a first spin
For a first spin it looks overall pretty useful. The only nitpick I have would be that `operation` on the DSP tile should be from fabric instead of config (hardcoded in bitstream) otherwise I don't see a convenient way of resetting the accumulator(?)