DevChoco

실전 코드와 디버깅 맥락을 남기는 개발 지식 아카이브

Tech News
조회 102분 읽기

Show HN: GlyphLang – An AI-first programming language

GlyphLang은 AI에 의해 생성되도록 설계된 프로그래밍 언어로, 기존 언어보다 더 효율적으로 토큰을 사용하여 코드의 맥락을 유지합니다. 초기 벤치마크에 따르면, Python보다 약 45%, Java보다 약 63% 적은 토큰을 사용합니다.

#glyphlang#ai-programming#programming-language#tokenization#machine-learning

출처: Hacker News — https://news.ycombinator.com/item?id=46571166

  • GlyphLang의 특징
    • AI에 의해 생성되고 인간이 검토하는 방식으로 설계됨
    • 기존 언어보다 더 적은 토큰 사용
    • 코드 예시
      • Python: @app.route('/users/') def get_user(id): user = db.query("SELECT * FROM users WHERE id = ?", id) return jsonify(user)
      • GlyphLang: @ GET /users/:id { $ user = db.query("SELECT * FROM users WHERE id = ?", id) > user }
    • 사용 가능한 기능
      • 바이트코드 컴파일러, JIT, LSP, VS Code 확장, PostgreSQL, WebSockets, async/await, 제네릭
    • 문서 및 리포지토리 링크

의견

댓글/토론에서 나온 의견을 참고용으로 정리했습니다. (사실로 단정하지 말고 맥락 확인 권장)

  • Hacker News · @rubyn00bie: I think there’s a certain amount of novelty to this, and the aesthetic of the language I find pleasing, but I’m a little confused… Admittedly, I didn’t read the entire doc and only quickly glanced at the source… But is it just transpiling Golang code to and from this syntax, or is it intended to be a whole language ev…
  • Hacker News · @goose0004: That's an awesome tool! I think textclip.sh solves a different problem though (correct me if I'm wrong - this is the first I've been exposed to it). Compression at the URL/transport layer helps with sharing prompts, but the token count still hits you once the text is decompressed and fed into the m…
  • Hacker News · @noosphr: I've found that short symbols cause collisions with other tokens in the llms vocabulary. It is generally much better to have long descriptive names for everything in a language than short ones. An example that shocked me was using an xml translation of C for better vector search. The lack of curly braces made the…
  • Hacker News · @rubyn00bie: Yeah, big plus one from me. I recently tried to investigate some sort of alternative encoding to/from “the prompt,” and was swiftly told that was both not possible and would work against me. As you pointed out, the LLMs are trained on language and language itself is often not terse. Trying to skirt that will caus…
  • Hacker News · @jbritton: I had a conversation with Claude about what language to work in. It was a web app and it led me to Typescript mainly because of the training data for the model, plus typing and being able to write pure functions. Haskell might have been preferred except for the lower amounts of training data.
  • Hacker News · @jaggederest: Funny, I've been noodling on something that goes the other direction - avoiding symbols as much as possible and trying to use full english words. Very underbaked but https://github.com/jaggederest/locque

같이 읽으면 좋은 글

같은 주제이거나 태그가 겹치는 글을 연결해 탐색 흐름을 강화했습니다.

Tech News 전체 보기

이전 글

Caltrain shows why every region should be moving toward regional rail

다음 글

Tmp.tf: 채널 이름만으로 기기 간 텍스트 전송하기

댓글

불러오는 중…