Better HN
topnewbestaskshowjobs
Log inSign up

clarge1120

263 karma · joined Feb 2, 2021 (5y ago) · 207 submissions

Submissions

comment 1y ago · link · parent

Nice to see someone taking a swing at a C++ GUI framework. Implementing a real on is not for the weak. If it's really works, it'll be expensive to license.

comment 1y ago · link · parent

I got hooked on Pink Floyd's "Momentary Lapse of Reason". Listened to it on a 10 hour drive back home from Houston in my custom VW beetle. It was custom because I "built" it out of several broken down beetles and so it was a tense drive home, checking my car's vitals every so often.

I have never forgotten that long intense drive home, in the summer, with no air conditioning, and playing Pink Floyd on full volume the whole way.

Because of this, "The Wall" has always been Floyd's second best album.

comment 1y ago · link · parent

I love this idea, but wonder if it's really more of a missing feature of WhatsApp.

4.

Show HN: Add RAG to any app in minutes – Dabarqus(github.com ↗)

3 points · by clarge1120 · 2y ago · 1 comment

comment 2y ago · link · parent

In functionality, kindof, but I'm not funded by China.

comment 2y ago · link · parent

Hey HN,

I’m really excited to show off a project I’ve been tweaking and tuning for more than seven months.

One thing that drove me nuts about running LLMs locally was having to use terminals, install Python, and write code for the most basic things. I write software, but I don’t want to have to write it just to use a chatbot. So, I made Wingman with a friendly interface that lets you get started with zero coding or terminals required. It runs on MacOS and Windows, and even evaluates AI models up front to determine if they will run on your machine.

There’s other stuff it does, too, like let you save prompts, set system prompts per conversation, and change AI models mid-conversation. I added a way to sort models by popular or trending. It’s been pretty helpful to me for staying on top of all of the new models dropping.

But it still has a little way to go to be ready for really special things like planning and reasoning. So, I need to get some more feedback from people on different configurations. I’d love it if you checked it out, saw if it was useful, and maybe broke it so I could find fixes.

Thank!

7.

Show HN: Wingman – Open-source Chatbot that's light, functional and not ugly(github.com ↗)

13 points · by clarge1120 · 2y ago · 2 comments

comment 3y ago · link · parent

It's all about getting paid by both sides in a dispute.

comment 3y ago · link · parent

Who are we paying this money to? It is a massive transfer of wealth, but to whom, and what will all this money be spent on?

comment 3y ago · link · parent

The coolest part of this whole discussion is that we can finally compare weed and alcohol.

Before the current weed era, weed was always compared favorably, by smokers, to alcohol with the adage: Weed is illegal, yet I've never seen a bar fight after everyone gets high.

Now we can do a real comparison of the effects of weed smoking on the general public, the same way we've done with drinking.

comment 3y ago · link · parent

“Life-saving Drugs are too Inexpensive to Produce”

It’s a ridiculous headline, I know. But, that is the gist of this article. It just doesn’t say so. Pharmaceutical drugs, and the pharmaceutical industry is highly regulated. It is very expensive to comply with drug manufacturing and distribution regulations. Those regulatory expenses are so high that it is simply not profitable enough for any company to produce these cheap generic drugs at a sustainable profit. It doesn’t make sense for a pharmaceutical company to comply with all regulations and make a profit on inexpensive, generic drugs.

The real headline is “Generic Drugs are Over Regulated, Making Them too Expensive to Produce”

comment 3y ago · link · parent

…says the atheist, by faith.

comment 3y ago · link · parent

Besides, OpenAI dropped all pretense of being open and transparent as soon as they saw how popular their open and transparent technology had become.

comment 3y ago · link · parent

Great example!

comment 3y ago · link · parent

Your bias is showing.

comment 3y ago · link · parent

You mentioned computer graphics and C language, so game development strikes me as a reasonable guess.

comment 3y ago · link · parent

I've added the statement "let's think through the problem step by step" after your instructions. Here's GPT-4's answer. I don't know Rust so let me know if this is a better answer:

---

Sure, let's break down the problem:

1. Identify the topmost window: We can use the `winapi` crate in Rust to interact with the Windows API. The function `GetForegroundWindow` can be used to get a handle to the topmost window.

2. Check if the window is a Windows Explorer window: We can use the `GetClassNameW` function to get the class name of the window. If the window is a Windows Explorer window, the class name should be `CabinetWClass`.

3. Get the path of the active folder in the Windows Explorer window: This is a bit more complex. We can use the `SHGetPathFromIDListW` function from the Shell API to get the path from an item ID list. However, getting the item ID list for the active folder in a Windows Explorer window is not straightforward. We might need to use COM interfaces like `IShellWindows` to get the `IWebBrowserApp` for the window, and then use `IWebBrowserApp::LocationURL` to get the URL of the active folder.

4. Return the path as a string or a blank string: This is straightforward. We just need to convert the path to a string and return it, or return a blank string if the window is not a Windows Explorer window.

Here is a skeleton of the function in Rust:

  ```rust
  extern crate winapi;

  use std::ptr;
  use std::ffi::OsString;
  use std::os::windows::ffi::OsStringExt;
  use winapi::um::winuser::{GetForegroundWindow, 
  GetClassNameW};
  use winapi::um::shellapi::SHGetPathFromIDListW;
  use winapi::shared::minwindef::MAX_PATH;

  fn get_active_folder_path() -> String {
      // Get the topmost window
      let hwnd = unsafe { GetForegroundWindow() };

      // Get the class name of the window
      let mut class_name = vec![0u16; MAX_PATH + 1];
      unsafe {
          GetClassNameW(hwnd, class_name.as_mut_ptr(), class_name.len() as i32);
      }

    // Convert the class name to a string
    let class_name = OsString::from_wide(&class_name)
          .to_string_lossy()
          .into_owned();

      // Check if the window is a Windows Explorer window
      if class_name.starts_with("CabinetWClass") {
          // TODO: Get the item ID list for the active folder in the Windows Explorer window
          // TODO: Use SHGetPathFromIDListW to get the path from the item ID list
          // TODO: Convert the path to a string and return it
      }

      // If the window is not a Windows Explorer window, return a blank string
      "".to_string()
  }
  ```
Please note that this is a skeleton of the function and it's not complete. The part to get the item ID list for the active folder in a Windows Explorer window and get the path from the item ID list is complex and requires using COM interfaces, which is not straightforward in Rust. You might need to use a crate like `winrt` to interact with COM interfaces in Rust.

---

comment 3y ago · link · parent

Thanks for including this example. It helps me understand what you mean.

ChatGPT is not really equipped to do this level of code design because there are too many steps for it to handle at once. It can handle your instructions if it could first write a detailed design spec, then write code and unit tests, then run them, read the compiler output, and iteratively make changes.

IOW, this would require a purpose-built solution which uses ChatGPT's underlying engine to take your list of requirements and turn them into built and tested code.

comment 3y ago · link · parent

Diversity of opinion is allowed, but not diversity of worldview. If a dissenting worldview is expressed it is quickly removed from the discussion and the dissenter is eliminated.

comment 3y ago · link · parent

Overwork causes burnout.

comment 3y ago · link · parent

This sounds correct. Humans are highly fickle and contradictory when it comes to morality. Even the Golden Rule is hotly contested. LLMs lose touch with reality as they try to navigate humanity’s moral landscape. Our current solution is to align an LLM to a worldview.

The good news is that this will pit one LLM against others, and virtually eliminate any potential for a single powerful AI to emerge and do something harmful.

comment 3y ago · link · parent

Until it works as well with Windows, no soup for me.

comment 3y ago · link · parent

At this rate the earth will burst into flames yesterday.

comment 3y ago · link · parent

In the US, the biggest cities are likely to push for cashless, while the rest of the country won't care, or will resist it.

comment 3y ago · link · parent

Fewer people agree with your premise, and that’s fortunate.

The “AI is dangerous” premise has no basis whatsoever. No one can prove it. No one can present a great thought experiment. Just doomsaying coupled with volume.

It’s starting to come off like a hidden agenda.

comment 3y ago · link · parent

Perfectly describes your non-engineer neighbor or best friend when he encounters an idea he’s never heard of before.

comment 3y ago · link · parent

The classical longtermist loves everyone in general, but no one in particular.

comment 3y ago · link · parent

Great example of how a GPT can reason on your behalf and dramatically improve your performance. For instance, it could watch for inconsistent approaches to design or even continue an complex implementation you’ve started just from examining context signals.
1234567