HNHacker News
TopNewBestAskShowJobs

Cadwhisker

389 karma · joined January 29, 2017

submissionscomments
Cadwhisker··on The Essence of Mathematics Through Elementary Problems
Excellent; I missed this on my first pass. Many thanks.
Cadwhisker··on The Essence of Mathematics Through Elementary Problems
This looked very promising, starting from good foundations and moving on to more complex ideas/methods, even taking time to explain why the steps are useful. However one thing that spoils it for me is that it doesn't provide solutions to the problems. Some are explained in the text that follows, others are just "cross your fingers you got it right".
Cadwhisker··on Vim Modes Transition Diagram
I never learned Vim commands (*) because I couldn't get past how different it is to use compared to everything else. I found the selection of editor modes confusing because I'm used to just typing where the cursor is. This is the first diagram/cheat sheet which has made some sense of what's going on.

Thanks for posting this; bookmarked.

(*) apart from :q!

Cadwhisker··on Mega65 – Open 8-Bit Computer
A curious mix of old-style and new for the keyboard, but one thing that really stands out is a key labelled "Help". I wish this had become part of standard keyboard layouts decades ago.

Other keys that would have been great to become standard: Load, Save, Undo, Redo

Cadwhisker··on Facebook will ignore data collection ban issued in Germany over WhatApp rules
Facebook and governments are very experienced at spinning news in a way that makes them look good.

The Australian government was looking for mandatory negotiations with media companies, forcing them to pay for content. They relaxed that "mandatory" clause a bit and added longer periods for notification and negotiation.

In the past year, Facebook has signed revenue-sharing deals with most of the major news platforms in Australia (ongoing) and on Monday of this week, they announced they would be investing $15 million in regional news media. https://www.fool.com.au/2021/05/10/facebook-to-invest-15-mil...

Google has also signed contracts with some of the major media companies.

Cadwhisker··on Trades made by U.S. Senators in two years benchmarked against the S&P500
The graphs and charts appear if I don't use the 'old' Reddit link:

https://www.reddit.com/r/FluentInFinance/comments/n94az6/i_a...

Cadwhisker··on The global chip shortage is starting to have consequences
I work at a decent-sized electronics company with several dozen products on the market at any one time. Lead times for chips were usually 12 weeks in normal times. We have forecast sales going off at least 6 months or a year away. We have known where the shortages will be for some months now.

We have already re-spun PCB designs to work in alternate ICs for some of the ones that we know will become unavailable; dual-footprint in case the originals come back. This took time and effort to design and verify and all that work could have gone into the design of new products, but it had to be done. This has put us some number of months behind our original planned dates for our new products.

The problem is that we can see shortages coming up which we cannot work around. We cannot buy enough parts, the lead-times are astonishing. At some point we are going to have to get lucky or halt production.

Cadwhisker··on ZenithOS is a modernized fork of the 64-bit Temple Operating System
This reminds me of the ethics behind modern British air-sea rescue techniques, where they learned to lift people from freezing water in a horizontal position instead of vertical because this had a higher rate of survival. The data behind the science came from Nazi experiments in Dachau.

"Victims are ethically owed many things: recognition that what was done to them was indeed wrong, a credible indication that the society takes this seriously, an effort to identify, apprehend and punish the perpetrators, and compensation for their ongoing suffering and disadvantage. But beyond this, we have an obligation not to forget, and not to whitewash."

https://www.abc.net.au/religion/is-it-ethical-to-use-data-fr...

Cadwhisker··on How do you do parental controls in 2021?
I have 2x wifi access points; one for the adults and one for the kids. The kids' one is on a mains power timer.

As for content, that's tough and I don't have an easy answer.

Cadwhisker··on First genetically modified mosquitoes released in the United States
I reject the idea that humans should make mosquitos extinct; they are a key part of the food chain.

If that's not a good enough reason, I have a dumb hypothesis that mosquitos have played a part in evolution for millions of years, based on the premise that they spread viruses/retroviruses and retroviruses are capable of modifying DNA. They also spread other diseases which may cause certain genetic lines to survive over others. This hypothesis could be complete junk, but who is going to be able to run a scientific experiment that would take 10,000 years or more?

The food chain reason is immediately obvious, but is anyone considering the impact over massive timescales?

Cadwhisker··on Show HN: Mandelwave: A mandelbrot inverse spectrogram with Griffin-Lim algorithm
Parts of that sound like it comes straight from 2001: A Space Odyssey.
Cadwhisker··on The Acorn Archimedes was the first desktop to use the ARM architecture
I fired up my Armbook to write this comment. It's just an original Pinebook with a special SD card to boot into RiscOS, but it's quite neat and very fast.

It's also the first true ARM/RiscOS laptop that has been made since the original Acorn A4. That machine was the first portable ARM device ever made.

Operating systems have been born and died between the arrival of these 2 machines.

Cadwhisker··on Xrdp: An open source RDP server
For me, XPRA has been a revelation for how I use Linux remotely. It's the GUI version of the "screen" command.

For those who haven't used it and want to try it, you install "xpra" on your Linux box with "yum" or "apt", then fire up an xpra server with "xpra start" (or "nohup xpra start &"), then make a note of which extra display it has added (like ":1"). It's not replacing the display manager (as far as I'm aware).

Download a windows client from xpra.org, then connect through SSH. Once connected, you get a small icon in the Windows taskbar with lots of menu options. Under the "Start" option, you have sub-menus which give you access to all the Linux desktop programs on the target machine.

For example, I use XPRA to connect to my Ubuntu 20.04 laptop and run "Start -> Accessories -> Terminal Emulator". It opens an XFCE4 terminal on my Windows desktop, looking as if it was a native Windows application. In the terminal, I can type "thunar" and a new Thunar file manager window will open on the Windows desktop, or "xemacs" for a text editor.

It's very fast because it's only sending 1 window at a time, not the whole desktop. I can disconnect, then re-connect and the windows will re-appear as I had left them.

It's not perfect (some dialog boxes don't respond to mouse clicks), but it is worth playing with.

Cadwhisker··on Jitsi Meet, the open source Zoom alternative, was downloaded 1.4M times in March
I haven't used Zoom and I'm not going to because of all the privacy/security issues that I've read about. I tried Jitsi met (https://meet.jit.si) for the first time yesterday for a team meeting with 11 people and it worked pretty well. We had the Brady-bunch display of heads and could hear each other clearly.

If you're going to try it, I do suggest having a trial run in small groups first because your browser may/may not be happy giving webcam/mic permissions. A few people had to switch to the Brave browser and give camera/mic/autoplay permissions before it worked.

Cadwhisker··on Ask HN: How to get started developing with FPGA?
You could start by buying an FPGA board, but it will probably sit around for a few weeks while you develop some code to run on it. Instead, you can do an awful lot without having a development board and I suggest getting familiar with the development tools first, with zero $$$ upfront.

Text Editor: There's a very nice article choosing a text editor, here: https://www.fpgarelated.com/showarticle/37.php

Simulation: ModelSim is the industry-standard simulator and (as someone has already mentioned here), there is a free version on the Intel (was Altera) web site. You will need to sign up to get the download. This version of ModelSim will let you run any design up to a certain number of lines of code, but it's plenty to get started with.

Xilinx Vivado has a built-in simulator, but I have spent most of my career using ModelSim, and I haven't had the need to switch. You also need to sign up to download Vivado; the free version is called Vivado HL WebPACK (Device Limited).

Synthesis and Place/Route: Synthesis turns your HDL code into a netlist which uses the primitive logic blocks of the FPGA that you're targeting and defines how they are logically connected to each other. Place and Route takes those blocks, finds a place for them to go in the FPGA and tries to connect them up so that the logic delay from one flip-flop (through combinatorial logic + wire delays) to the next flip-flop will meet your target clock speed.

When it comes to seeing what your HDL code will turn into once it's been put into an FPGA, I find that Xilinx have the most advanced FPGA toolchain (Vivado) with some excellent visualisation features for learners. Stay away from Vivado HLS for now; if you want to learn HDL code, the HLS tool is a distraction that won't teach you core HDL design concepts. Vivado does not support Spartan-6 parts; only 7-series and newer.

Using Vivado, take a sample piece of code and try running it through synthesis (don't place/route yet). Look at the result in the schematic viewer. Look at the hierarchy viewer, too. Try to trace a line in the source code to its synthesised result. Once you're happy that you can do this, try running place/route (Run Implementation). You can cross-probe from the schematic view to the chip view and highlight wires and blocks with your choice of bright colours. Take a look at how the schematic primitive blocks end up getting placed and routed in the chip.

Note: If you don't care about connecting up I/O pins in Vivado and you just want to see what a small bit of logic looks like, you can specify "-mode out_of_context" under "Project Manager -> Settings -> Project Settings -> Synthesis -> Options -> More options".

Advanced Stuff: Anyone can make an FPGA design work at 10MHz or 20MHz, so try something harder. Start off by setting a slow clock speed constraint (50MHz), then try increasing the speed in 50 or 100MHz increments until you hit 300MHz (400MHz or 500MHz if you're adventurous). When does your timing fail? What do you need to do to your logic to make it meet timing?

← PreviousPage 5 of 5