Better HN
topnewbestaskshowjobs
Log inSign up

akamoonknight

418 karma · joined Dec 16, 2018 (7y ago) · 68 submissions

Submissions

comment 1y ago · link · parent

Ah, that's a fancy trick! I remember many a time making Linux real angry with my PCIe fiddling. I believe in the end we got Partial Reconfiguration set up, where the PCIe portion of the device would not be reprogrammed but we could reload the rest. It was definitely a trade off though in terms of layout planning and space reservation.

comment 1y ago · link · parent

One of the tactics I end up using in Verilog, for better or worse, is to define enums with a'0 value (repeat 0s for the size of the variable), and '1 value (repeat 1s for the size of the value)

'0 stays as "null"-like (e.g INVALID), and '1 (which would be 0xFF in an 8 bit byte for instance) becomes "something, but I'm not sure what" (e.g. UNKNOWN).

Definitely has the same issues as referenced when needing to grow the variable, and the times where it's useful aren't super common, but I do feel like the general concept of an unknown-but-not-invalid value can help with tracking down errors in processing chains Definitely do run into the need to "beware" though with enums for sure.

comment 2y ago · link · parent

I don't know a word or phrase for this, but I really enjoy any examples of "thinking outside the box" like this because it's something I struggle with in my professional career. Learning not only the right ways to solve problems, but figuring out the questions to ask that make solving the problems you have easier or even in some cases possible. In this case, it's hey, we don't need exact numbers if we can define a probabilistic range given defined parameters. Other problems are gonna have other questions. I guess my hope is that if I see enough examples I'll be able to eventually internalize the thought process and apply it correctly.

comment 2y ago · link · parent

It's funny because in that last sentence I think you're describing something like in the article. "Holding the door open" might not be something that people do to strictly have the potential to hold the door open for a CEO, but they definitely hit on that possibility more often than those who don't hold the door open at all. So is that "blind luck", or in the parent example (and i think sort of the articles) is that more along the lines of "stirring the pot"?

comment 2y ago · link · parent

One thing my mom (an occupational therapist) brought up when seeing this was the potential applications for therapy. I'm not sure of the nuances, but one concept that comes to mind is that you could increase force on a user such that you can get a persons strength increasing without them even noticing it.

I'm not really sure what types of solutions currently exist in these spaces, and I'm sure that this would be a very expensive solution for this topic, but future thinking possibilities of this type of thing seem like they could have applications outside of just VR.

comment 2y ago · link · parent

I believe I read a science fiction book around this topic. Postsingular by Rudy Rucker I believe, related to nanotechnology. Can't remember most of it, but delved a little into how it affects relationships re: every thing being visible always to everyone. Not sure I'd entirely recommend it, but still interesting to see the thoughts and outcomes others come up with in regard to these types of potential technological changes.

comment 3y ago · link · parent

Gotchagotcha, so yeah, to some extent eliminates the time taken to highlight individual brackets at the cost of adding some visual complexity. Thanks.

comment 3y ago · link · parent

In just basic Vim, there's highlighting such that if the cursor is over a start bracket (or end bracket), the opposite bracket is highlighted. I do find that very helpful indeed to find matching brackets (or where a bracket is missing), but I can't quite see why I'd need to have the colorization as well. Essentially I guess I can see colorization as 'highlighting' multiple brackets at once. Any way you could convince me that having this multiple identification has been preferable to the single identification?

comment 3y ago · link · parent

Is there an adaptation of Bayesian statistics that also takes into account timeliness of the data ? e.g. a more recent string of negative reviews would potentially indicate something compared to a more smooth distribution

comment 3y ago · link · parent

That white, black, and red image is amazing! I remember a post here about optimizing 1 bit black and white images some time ago, which also was amazing, but it's crazy the colors that seem to pop out of that image when just adding red as an additional option.

comment 3y ago · link · parent

One thought that came to mind when the author mentioned that GPT-4 seemed to want to use A* was that maybe the problem statement was not formed in a way that would get the best response. I'm not entirely sure if this type of back and forth would be useful, but just struck me as interesting to try.

I put the following prompt into ChatGPT (no GPT-4 access for me yet):

*A problem statement is given as follows:

An agent needs to find the best path on a 10x10 tile grid from their current location to a target location. They have a limited movement range of 5 points. Regular tiles cost 1 point to move through, water tiles cost 2 points to move through. Fire tiles cost 1 point to move through, but they should avoid pathing through them even if it means taking a longer path to their destination (provided the path is still within their limited movement range)

Please point out any parts of the problem statement that require clarification.*

Which returned the following response:

Based on the given problem statement, some potential areas that may require clarification are:

Current location and target location: It is not clear if the current location and the target location are fixed or if they change with each problem instance. If they are fixed, it should be mentioned explicitly. If they are not fixed, it should be specified how they are generated for each problem instance.

Movement range: It is not specified whether the agent's movement range is circular or square. If it is circular, it means that the agent can move to any tile that is within a distance of 5 from its current location. If it is square, it means that the agent can move to any tile that is within a range of 5 tiles in both the horizontal and vertical directions. The shape of the movement range needs to be specified.

Fire tiles: The problem statement mentions that the agent should avoid pathing through fire tiles even if it means taking a longer path to their destination, but it is not clear how the agent knows which tiles are fire tiles. It should be specified how the agent perceives and distinguishes fire tiles from regular tiles.

Tile costs: The problem statement mentions that regular tiles cost 1 point and water tiles cost 2 points, but it is not specified what happens if the agent moves diagonally. It should be specified whether diagonal moves are allowed and how much they cost.

Objective function: It is not specified how the "best path" is defined. It should be mentioned whether the objective is to find the shortest path or the path that minimizes some other cost function (e.g., total cost of the path).

comment 3y ago · link · parent

I feel like humans in general work fairly well when story or myth is tied to an explanation, but can understand that's not for everyone. I'm reminded of oral histories that humans make in order to warn about tsunamis. Her linking her brother's ailments with the state of the planet drew me in and I learned a few things that I can look into myself. For example, The Great Unconformity I'm sure I can look up a bit about (and sources are provided in the article) and similarly for the possibilities of things that might give us insight into that time period (also referenced and sourced in the article). My experience is that Nautlius in general has this type of lyrical prose and doesn't really pose itself as a peer-reviewed journal or anything. All that to say that to minimize the story as about "some writers day" feels disingenuous to me.

comment 4y ago · link · parent

https://galactica.org/?prompt=High+Impedance

"High Impedance is the debut album by Canadian musician Colin James, released in 1988."

Not...exactly...what I was expecting.

comment 4y ago · link · parent

Thanks, I'm sure Signal devs to some extent look at HN, but was looking for a way to concretely let them know about the potential damage I see this causing.

comment 4y ago · link · parent

Makes me think of potentially using sound as a way for humans to conceptualize higher dimensional spaces. I feel very bound to 3 dimensional visualizations frequently and often wish that conceptualizing that next step to even 4 dimensional spaces would be more 'obvious'. E.g. space time diagrams (even though I can't say that I'm good at evaluating movement in even one dimension of space and one dimension of time on a 2-d plot, I can't even comprehend trying to 'visualize' movement through three dimensions of space and one of time.) For some reason feels more possible in audio space.

comment 4y ago · link · parent

Ah makes sense it'd be something that would be useful to track and then provides information that people can arbitrage.

I had tried some initial URL hacking that didn't work, but think I found the set here: https://usda.library.cornell.edu/concern/publications/k35694...

comment 4y ago · link · parent

Definitely some interesting info. Has this been produced for previous years? I'm intrigued how the sentiment in the weather highlights might have changed over time.

comment 4y ago · link · parent

This is a fascinating use case that wouldn't have occurred to me at all, quite cool, even if it "doesn't know anything about anything at all".

It even does pretty good with Verilog, which I assumed it would have issues with, admittedly some of this is just "google-able", but even so. It can even create a reasonable attempt at a testbench (even though it doesn't quite get it right), which is crazy to me.

*Explain this code:

module my_module(a,c,y); input a,c; output y; assign y= c ? a : 1'bz; endmodule*

This code is a Verilog module that defines three inputs (a, c, y) and one output (y). The output y is assigned to the value of a if c is true, otherwise it is assigned to 1'bz.

*What is 1'bz ?*

1'bz is a Verilog constant that represents a bit value of 'z', which is used to indicate a high impedance state.

*Why is high impedance used ?*

High impedance is used in digital circuits to allow multiple drivers to share a single bus without contention. When two or more drivers attempt to drive the same bus at the same time, a contention can occur and the bus voltage can become undefined. By using high impedance, drivers can avoid contention and allow the bus to remain stable.

*Give me a testbench for this module*

module testbench; reg a; reg c; wire y;

  my_module dut(a, c, y);
  
  initial begin
    a = 1'b0;
    c = 1'b0;
    #1;
    a = 1'b1;
    c = 1'b1;
    #1;
    a = 1'bz;
    c = 1'b1;
    #1;
    a = 1'bx;
    c = 1'b1;
    #1;
    $stop;
  end
endmodule

*Create the same testbench but add validation of the output.*

module testbench; reg a; reg c; wire y;

  my_module dut(a, c, y);
  
  initial begin
    a = 1'b0;
    c = 1'b0;
    #1;
    a = 1'b1;
    c = 1'b1;
    #1;
    a = 1'bz;
    c = 1'b1;
    #1;
    a = 1'bx;
    c = 1'b1;
    #1;
    $stop;
  end
  
  always @(*) begin
    if (c == 1'b0)
      assert(y == 1'b0);
    else if (c == 1'b1)
      assert(y == a);
    else if (c == 1'bz)
      assert(y == 1'bz);
    else if (c == 1'bx)
      assert(y == 1'bx);
  end 
endmodule

comment 4y ago · link · parent

I don't know that your topic is their specific aim, but I remember Popcorn Linux coming up on HN before: http://www.popcornlinux.org/ To some extent their goal is to enable better improve the interoperability of heterogeneous hardware.

comment 4y ago · link · parent

I think there's been a fair amount of discussion about the interplay between quantum and classical computing. It feels like it may be better to think of things as a collaborative environment in that algorithms found via quantum computing can lead to improvements in their classical counterparts.

https://physics.aps.org/articles/v15/19 as an example.

comment 4y ago · link · parent

Apologies for the naivety of this question, but it's it possible to "wean" yourself off of Google (or any one income source)? that is, maybe "pretend" that by default you're only receiving 50% of your total income and then during leaner times you have some buffer to figure something out. I can understand there might be no way to do this in some (or maybe all) industries, but wondering what kind of resilience like this is possible in smaller businesses.

comment 4y ago · link · parent

I feel like this isn't exactly what you're asking for, but the storytelling in: https://www.sbnation.com/a/17776-football feels like it opened up new my thoughts on how something could be communicated via the medium of the Internet and just made me think to some extent how woefully underutilized the browser/internet has been used as a story telling medium (at least to my limited experiences of these things)

comment 4y ago · link · parent

Being a person who works with FPGAs. For all their difficulties, waveforms of both simulation and real-time tapping capabilities are indispensable for tracking what happens before, during, and after an erroneous event occurs. One thing I always miss when going back to software development is some sort of 'waveform' of what the process has done over time and tracking the state of the system over that same course of time. Admittedly dealing with CPU instructions and a program's function calls and overlapping threads is orders of magnitude more difficult than tracking how a bit is changing in a waveform over time, but it definitely seems like tools are getting closer and closer to something that's equivalent and that's pretty awesome to see.

comment 4y ago · link · parent

I think to some extent it's a frame of mind thing. For instance, my friend's vacuum broke for some reason or another, some plastic piece that wasn't super complicated, but was required for functionality. And rather than buying a new one, he was able to model and print the piece that broke and the vacuum is able to work again, but mileage in general probably varies.

comment 4y ago · link · parent

Making an assumption here about Proxima Centauri's own Oort Cloud, but seems like if it's the same size as ours, they'd overlap? Seems like a potentially interesting way for "stuff" to get transferred from one solar system to another.

comment 4y ago · link · parent

Took me a bit, but that's definitely a depressing read. Useful though. Makes me think of how a civilization survives when problems are "caused" by lack of knowledge (profit motive complicates things as well), but that knowledge takes time to accumulate, but by the time you accumulate the knowledge, it might be too late to properly handle the issue. I guess the "stance" that humanity has taken so far is that if there's a problem, we'll eventually find a solution. But when does that run out? Maybe that's The Great Filter, when a civilization has created a problem for itself that it's not able to find a solution for.

comment 5y ago · link · parent

One thing sort of related to language that I see (as an entire outside observer to the field) as being required is some sort of shared communication 'channel'. Biological life works with atoms to form proteins that seem to do much of the communication that eventually guides higher level functions. Computers and computational processes can work on bytes and bits and package those into messages or results but on their own I'm not sure what it means for one process to consume another processes bytes/bits/messages, whereas proteins have physical results that lead to responses. Not that biological life should necessarily be the goal, but its definitely been good at guiding us in a lot of different ways. It seems like some sort of shared medium (that can be dynamically combined/recombined as needed) is required to communicate between disparate processes is required to dynamically change/improve systems and I just don't have any idea what that really looks like.

comment 5y ago · link · parent

Language is pretty fun. My favored multi-contraction is y'all'r'nt, similar in flavor of feeling natural/fun to say and use, but looking really ridiculous written out (not even sure I've even done it right...)

I feel like there's also something in this topic that relates to things like "going to" getting reduced to "gonna".

comment 5y ago · link · parent

Very interesting, seems your remembering looks correct to me.

x / (x+y+1) :: https://www.wolframalpha.com/input/?i=plot+x+%2F%28x+%2B+y+%...

horrendous formula :: https://www.wolframalpha.com/input/?i=plot+%28%28x%2F%28x%2B...

Much less prone to typos.

comment 5y ago · link · parent

A ways down after a fair amount of skimming:

"Here’s the proposal I’m offering in all seriousness. We avoid the time wars by accessing unconditional love on a global scale."

123