Hacker News

Subscribe to Hacker News feed
Hacker News RSS
Updated: 35 min 11 sec ago

Helmholtz Resonance

Tue, 04/01/2025 - 4:15am
Categories: Hacker News

The

Tue, 04/01/2025 - 4:13am

The

Comments URL: https://news.ycombinator.com/item?id=43544108

Points: 1

# Comments: 0

Categories: Hacker News

Show HN: Audentic – Enable Voice AI for your website

Tue, 04/01/2025 - 4:11am

Hey HN!

Have been working on Audentic, a platform that simplifies adding voice AI to your website. Think of it as a copy-paste voice assistant that you can embed directly into your site.

Setting up voice AI has traditionally been a bit of a hassle, often requiring juggling multiple components like speech recognition, text processing, and text-to-speech systems. With Audentic, we've streamlined this into a more straightforward, end-to-end voice model.

While OpenAI's Realtime API has made real-time, multimodal AI interactions more feasible, integrating these capabilities into a website can still be complex. Audentic simplifies this process, allowing you to add voice AI to your site with minimal effort.

You can start using Audentic for free, and when you're ready to expand, you have the option to bring your own API key to continue leveraging our voice agents.

We'd love to hear your thoughts and feedback on Audentic. Let us know what you think!

Demo: https://www.youtube.com/watch?v=8NhMyJwpcqs

Comments URL: https://news.ycombinator.com/item?id=43544090

Points: 1

# Comments: 0

Categories: Hacker News

Webfuse – The Web Augmentation Platform

Tue, 04/01/2025 - 4:07am

Article URL: https://www.webfuse.com

Comments URL: https://news.ycombinator.com/item?id=43544063

Points: 1

# Comments: 1

Categories: Hacker News

Ask HN: A PHP Superset Language

Tue, 04/01/2025 - 4:02am

I'm developing a PHP transpiler and I've created a superset called Simple PHP Superset (SPS). The goal is not to replace PHP but to extend it—making the code easier to read and maintain while preserving full PHP compatibility. Our company’s codebase suffers from numerous issues, and I believe that SPS can help solve these by introducing modern improvements without breaking existing PHP libraries.

Here are the most features of SPS:

- Full Compatibility with PHP 8:

You can mix traditional PHP code (with braces, semicolons, etc.) with SPS syntax. In strict mode, warnings are emitted if you don’t follow the recommended style.

- Minimalist, Clean Syntax:

+ Use `end` instead of braces to close blocks. + Instantiate classes by calling them like functions (no need for `new`). + Use `raise(...)` in place of `throw new`. - Private by Default:

All members (variables, functions, properties) are private by default. Use the keyword `pub` to expose them publicly.

- Immutable by Default:

+ Variables declared with `var` are immutable once assigned, and only variables declared with `mut` can be modified. + Function parameters intended to be modified must be marked as `mut` (transpiling to PHP by-reference). - Strict Static Typing & Union Types:

You must declare explicit types (e.g. `int`, `string`) and use union types (e.g. `int|string`) for enhanced compile‑time safety.

- Modern Data Structures & Manipulation:

+ Slicing: Extract subarrays using the notation `[start:end]` (similar to Python). + Maps & JSON-like Objects: Use the `{ key: value }` notation to define maps and object literals, which is cleaner than PHP’s `=>`. + Destructuring: Easily extract values from arrays, tuples (using parentheses), and JSON-like objects (using braces). - Named Parameters:

Functions can be called with named parameters in any order for improved clarity.

- Concurrency with Coroutines:

Launch concurrent tasks with `php(expr)`, which executes the expression in a Fiber (PHP 8.1–based). Use a scheduler (e.g. `Scheduler.joinAll()`) to wait for all coroutines to complete.

- Enhanced Functional Programming:

An unified standard library (`Standard\`) provides higher‑order functions like `map`, `filter`, and `reduce` in camelCase, with a logical parameter order. Also, most of PHP functions implemented with a logical order.

- System Types for Resources:

It includes classes like `System\File` to wrap system resources (files, sockets, streams) in an object‑oriented manner, providing methods like `read()`, `write()`, and `close()`, with automatic error handling.

- Composition with `compose`:

Emulating Go’s embedding, use `compose` to inject the behavior of a normal class into another. For example, `compose Logger` in a class will automatically create an internal field and delegate its public methods so you can call `this.log(...)` directly without referencing the internal variable.

- Multiple Return Values:

Functions can return multiple values via tuples, making it easier to communicate results without resorting to arrays or ad‑hoc structures.

I've designed SPS to modernize PHP by providing a cleaner (specially to avoid usual mistakes in our codebase), more expressive syntax along with stricter static typing, immutability by default, named parameters, slicing, JSON‑like maps and objects, and enhanced functional programming features—all while being fully compatible with existing PHP code. Wiping code of `<?php`. It also should introduce concurrency through coroutines based on PHP 8.1 Fibers and allows composition via `compose`, letting you embed complete class behavior directly into another class.

I'm actively developing the transpiler and would love to hear feedback from the community. Does this approach make sense? What aspects should I improve or change? Should I abondon it? Any input would be greatly appreciated!

Thank you!

Comments URL: https://news.ycombinator.com/item?id=43544037

Points: 1

# Comments: 1

Categories: Hacker News

CrystalMark Retro

Tue, 04/01/2025 - 3:57am
Categories: Hacker News

Does Baby Have Hat?

Tue, 04/01/2025 - 3:51am
Categories: Hacker News

All Sides – Conjugated Nouns

Tue, 04/01/2025 - 3:50am
Categories: Hacker News

The shebang/hash-bang magic

Tue, 04/01/2025 - 3:21am
Categories: Hacker News

Pages