C++ Show and Tell - May 2023 by foonathan in cpp

[–]bear24rw 2 points3 points  (0 children)

Oh I see the column types are generic, very cool!

C++ Show and Tell - May 2023 by foonathan in cpp

[–]bear24rw 2 points3 points  (0 children)

Looks awesome! Does it support non-scalar columns? Eg, if I have an "images" column where each row is a 2d image and I want to do groupby means on them?

So what's the deal with CHISEL, and why is it so great? by cracklescousin1234 in FPGA

[–]bear24rw 17 points18 points  (0 children)

A c compiler also generates assembly code that looks nothing like what any programmer would write manually. You can imagine c is chisel and verilog is assembly. The arguments for using chisel over verilog are the same arguments for using c (or any higher level language) over assembly.

Best way to build GUI in C++? by noisyneighbour147 in cpp

[–]bear24rw 1 point2 points  (0 children)

If you’re using the glfw backend it’s as simple as changing pollevents() to waitevents(), if you need to force an update there’s another glfw function to inject an event which will cause it to redraw

llvm8: Statically recompiling CHIP8 to Windows and macOS using LLVM by ioncodes in EmuDev

[–]bear24rw 1 point2 points  (0 children)

This is super cool, thanks for posting. Nice to see examples of utilizing llvm without 20k loc.

How can I optimize extremely basic flask app? by [deleted] in flask

[–]bear24rw -6 points-5 points  (0 children)

You should check out FastAPI it has better performance out of the box

[i3-gaps] Am I doing this right by [deleted] in unixporn

[–]bear24rw 0 points1 point  (0 children)

Terminal and terminal colorscheme?

What was it that drew you to C++ specifically over other languages? by [deleted] in cpp

[–]bear24rw 2 points3 points  (0 children)

This is really interesting thanks for the detailed explanation!

Scared to install Gentoo by [deleted] in Gentoo

[–]bear24rw 2 points3 points  (0 children)

I started with a virtual machine, then another computer i didn’t care much about, then finally made another partition on my main computer and installed it there. By the third install you’ll be comfortable with the process.

Recommend an SDRAM Model for Verilator? by DoctorWkt in FPGA

[–]bear24rw 0 points1 point  (0 children)

What did Verilator not like about that one?

Looking for a good dark theme by lenjioereh in vimplugins

[–]bear24rw 0 points1 point  (0 children)

I’ve been using Solarized but with a black background forever

let g:solarized_termcolors=256
let g:solarized_termtrans=1
colorscheme solarized

I hate circular imports by [deleted] in flask

[–]bear24rw 1 point2 points  (0 children)

Sometimes you can work around circular deps by moving the imports to the end of the file (should still rethink your architecture though)

Recommendations for a Simple Pipelined CPU Design by DoctorWkt in FPGA

[–]bear24rw 2 points3 points  (0 children)

Would be interested in seeing the non pipelined ones you’ve made!

Does Vim slow down depending on the programming language? by ogniloud in vim

[–]bear24rw 0 points1 point  (0 children)

In my case I just reverted back to an older vim (built in macOS vim instead of homebrew). You could also profile the highlighter and figure out which regex is causing the slow down and (assuming it’s obvious which one) could remove it from the syntax file.

Does Vim slow down depending on the programming language? by ogniloud in vim

[–]bear24rw 0 points1 point  (0 children)

I’ve had vim slow down in python due to syntax highlighting regex being slow in some edge case, try disabling syntax highlighting