lolpanda
Re:Oldest GUI application that still runs on Windows 11
on Monday October 26, 2026 @03:22PM (#50249510)
In 2026 does it still make sense to build new Windows app using Win32 API? I was building a simple image viewer similar to QuickLook on Mac using Win32. I found it's very responsive. The code is less readable compared to React. For me Win32 is a good option if the UI state machine is simple enough.
Re:Standard Completions
on Wednesday June 04, 2025 @12:06AM (#44177128)
I actually think the legacy completion API is superior to the newer chat creation API. The completion API takes all the input as a single string, whereas the chat API expects input as a list of messages. Given today's common use of agentic workflows, the model often has to process a large amount of input—RAG data, function calls, and other metadata—in addition to the user and assistant messages. The conversation itself might be just a small part of the overall prompt.
I’ve found it more intuitive to format the conversation as <conversation>...</conversation> within one unified text prompt, alongside all the other input data.
OpenAI’s new completion API supports both a single large string or a list of messages, which is great. I briefly experimented with the prompting tool in Claude—it essentially builds a big prompt that includes instructions and examples in XML format.
Re:Go Data Structures
on Thursday February 06, 2025 @02:46AM (#42960080)
oh i never thought about y = append(x, ...) in which scenario would make sense to have different x and y?
Re:Launch HN: Pinch (YC W25) – Video conferencing with immersive trans...
on Tuesday February 04, 2025 @02:26PM (#42937338)
Great idea! The demo looks impressive. What are your thoughts on real-time translated captioning compared to AI voice? I guess it's still difficult to mimic nonverbal elements like laughter and pauses.
Re:Deep Research
on Sunday February 02, 2025 @11:14PM (#42914900)
"synthesize large amounts of online information" does it heavily depend on the search engine performance and relevance of the search results? I don't see any mention of Google or Bing. Is this using their internal search engine then?
Re:SQL NULLs Are Weird
on Thursday January 09, 2025 @10:13PM (#42652083)
I actually like how NULLs behave in SQL. They mean "I don't know" In the modern programming language we all care about Null safety. But no matter how you model your data, you will always run into the situations when you don't know everything. So I believe NOT NULL is not very practical. NULLs in SQL handle these case very well - when the input is unknown your output is unknown
Re:Hyperview – Native mobile apps, as easy as creating a website
on Wednesday January 08, 2025 @12:25AM (#42631233)
Those mini apps are built on the same web stack. I believe the main advantages of creating mini apps are that the platform provides identity (allowing you to know who the users are upon permission approval) and payment APIs.
Re:iTerm2 critical security release
on Thursday January 02, 2025 @07:02PM (#42580471)
I'm a heavy use of tmux integration in iterm2. this allows seamless mouse scroll in a tmux window. I haven't seen any other terminals that provide the same tmux support.
Re:Tldraw Computer
on Friday December 20, 2024 @03:25AM (#42469253)
this looks like the workflows in gumloop.com
Re:Show HN: open source framework OpenAI uses for Advanced Voice
on Saturday October 05, 2024 @02:47AM (#41748157)
so the WebRTC helps with the unreliable network between the mobile clients and the server side. if the application is backend only, would it make sense to use WebRTC or should I go directly to realtime api?
Re:Wcurl Is Here
on Friday August 23, 2024 @06:37PM (#41333683)
the only reason i use wget over curl is that when i'm downloading a file, i don't have to specify the output file name with wget lol
Re:Cursor Has Raised $60M
on Thursday August 22, 2024 @10:48PM (#41325830)
i think cursor is the only player that forked vscode. i've been using cursor for a week and i really like it. it's able to auto complete/correct code in multiple places at the same time. other copilot extensions in vscode were not able to do this. but i assume microsoft will quickly add this feature in vscode and others will catch up soon. i don't know if it's a true advantage to stay as a fork of vscode.
Re:Postgres.new: In-browser Postgres with an AI interface
on Monday August 12, 2024 @01:49PM (#41227307)
I like the UI. The chat interface is a good fit for this task. How do you prevent or should you prevent users from entering "write me a fib(n) in python" in the chat? To me the chat is solely designed for table creation directives.
Re:Marta File Manager: Back on Track
on Friday August 09, 2024 @05:41PM (#41205591)
what do people think about installing new software from less well known companies and giving the app full access to all your files? how would i convince myself that this software won't upload my data in the background?
Re:Anthropic is scraping websites so fast it's causing problems
on Tuesday July 30, 2024 @05:10PM (#41114172)
Cloudflare has a switch to block all the unknown bots other than the well behaved one. Would this be a simple solution to most of the sites? I wonder if the main concern here is that the sites don't want to waste bandwidth/compute for AI bots or they don't want their content to be used for training.
Re:HuggingFace: Scaling open source community 300%/yr with No OKRs and...
on Tuesday July 16, 2024 @03:33PM (#40979541)
I'm curious here how do they make money? i heard that they have ai consulting service. is that sufficient to run the company? i don't think any researchers i know pay for hugging face.
Re:I Received an AI Email
on Wednesday July 03, 2024 @03:51AM (#40863735)
ok does it mean an end to email? it's nearly free to send emails to anyone. for comparison, it's much more expensive to send linkedin messages or create ads on social networks. did anyone attempt to create a paid email service (pay to send)?
Re:Python Modern Practices
on Tuesday July 02, 2024 @07:22PM (#40861397)
what are the pros and cons with pydantic models vs data classes? i like the runtime validation in pydantic models.
the pattern i landed on is that 1) only use primitive data types such as str, int, pydantic models and pandas dataframes to present data. 2) no classes with methods, no polymorphism, only use module functions.
Re:Google Gemini: Context Caching
on Thursday May 16, 2024 @06:13PM (#40383954)
i think llama.cpp has context caching with "--prompt-cache" but it will result in a very large cache file. i guess it's also very expensive for any inference api provider to support caching as they have to persist the file and load/unload it each time.
Re:No Abstractions: our API design principle
on Thursday April 25, 2024 @08:00PM (#40164492)
Good point. it's not a problem with JSON. It's just that most of the JSON libraries by default parse numbers into floats.
Re:No Abstractions: our API design principle
on Thursday April 25, 2024 @05:18PM (#40163152)
for any APIs related to money, should the currency be in strings as opposed to in floats? This will prevent accidental float arithmetic in the code. I always find it tricky to work with currency in javascript.
Re:World's Smallest CSV Parser (C#)
on Wednesday April 10, 2024 @06:34PM (#39996407)
I reviewed the code in this project and it looks pretty reasonable. I thought CSV was a loosely specified format. In my past experience, I never had a smooth experience moving data from one system to another using CSV. I had a lot of trouble with Snowflake -> CSV -> Clickhouse. I now use JSONL for pretty much everything.
Re:Launch HN: Aqua Voice (YC W24) – Voice-driven text editor
on Tuesday March 26, 2024 @06:21PM (#39833516)
I love this idea. Wish there's a browser extension so I can dictate in my emails.
Re:Show HN: Flyde – an open-source visual programming language
on Thursday March 07, 2024 @07:19PM (#39636257)
I don't think visual programming language can or should replace code in plaintext. I like the idea of visual programming at higher level. It can be very good at communicating data flow, business logic and processes. But each of the building blocks can still be implemented in programming languages today. I feel like AWS Step Function is very close to what I wanted. They also have a very nice builder UI.
Re:Show HN: I made an app to use local AI as daily driver
on Tuesday February 27, 2024 @11:26PM (#39533985)
Oh thanks! didn't know there are quite a few ChatGPT local alternatives. I was wondering what users they are targeting. Engineers or average users? I guess average users will likely choose ChatGPT and Perplexity over local apps for more recent knowledge of the world.
Re:Mistral Large
on Monday February 26, 2024 @04:36PM (#39517013)
This is not true. For LLM data labeling, the knowledge workers are very well paid. The hourly rate is way above minimum wage. The questions oftentimes require domain knowledge. They are complex enough and cannot be answered by random person on the internet. AFAIK most of them are located in US.
Re:Google Secures $60M Deal for Real-Time Access to Reddit Data
on Thursday February 22, 2024 @04:37PM (#39473624)
Reddit blocks all search engines from crawling their comments, essentially blocking all user generated contents.
See this directive in https://www.reddit.com/robots.txt `Disallow: /r//comments////*`
But I can still search Reddit on Google. How does Google manage to get the data?
Re:Show HN: I scraped 200M Shopify products to build a search engine
on Wednesday February 21, 2024 @10:07PM (#39462707)
Oh is the site currently down? I tried a few queries, including the ones on the landing page. It gave me empty results.
Re:LlamaCloud and LlamaParse
on Tuesday February 20, 2024 @06:30PM (#39448373)
I was hoping to get structured data. For example, parsing an voice will give results like
{"title"... "line_items": [...], "date":...}
Re:LlamaCloud and LlamaParse
on Tuesday February 20, 2024 @05:16PM (#39447730)
I think LlamaParse is trying to solve a hard problem. Many enterprise customers I know have strong need to parse PDF files and extract data accurately.
I found the interface a bit confusing. From your blog post, LlamaParse can extract numbers in tables, but it appears that the output isn't provided in tabular format. Instead, access to these numbers is only available through a question-answering. Is this accurate?